:root {
  --bg: #f4f7f4;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --ink: #1f2522;
  --muted: #65706b;
  --line: #d8dfd9;
  --brand: #0f6f52;
  --brand-strong: #0a523d;
  --accent: #cf3f2f;
  --gold: #d8a03d;
  --blue: #315b80;
  --shadow: 0 18px 60px rgba(24, 43, 34, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  border-radius: 8px;
}

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

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

nav {
  display: flex;
  gap: 6px;
}

.nav-button,
nav a {
  padding: 9px 12px;
  background: transparent;
  border: 0;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
}

.nav-button:hover,
.nav-button:focus-visible,
.nav-button.active,
nav a:hover,
nav a:focus-visible {
  background: #e8efe9;
  color: var(--ink);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  min-height: calc(100svh - 150px);
  padding: 42px 0 34px;
}

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

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 0.96;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 58ch;
  margin: 22px 0 0;
  color: #4d5a54;
  font-size: 1.08rem;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--brand);
  color: #fff;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--brand-strong);
}

.button.secondary {
  background: #eef5ef;
  color: var(--brand-strong);
  border-color: #b9d7c5;
}

.button.danger {
  background: #f8e6e3;
  color: #932719;
  border-color: #efc3bc;
}

.button.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.hero-visual {
  position: relative;
  min-height: 470px;
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(15, 111, 82, 0.16), transparent 45%),
    radial-gradient(circle at 74% 32%, rgba(216, 160, 61, 0.28), transparent 28%),
    #e4ece1;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: auto -8% 0;
  height: 34%;
  background: #c7ad79;
  clip-path: polygon(0 36%, 100% 4%, 100% 100%, 0 100%);
}

.sack {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  color: #26302b;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.6), transparent 34%),
    #f8edce;
  border: 2px solid rgba(76, 58, 24, 0.15);
  border-radius: 8px 8px 18px 18px;
  box-shadow: 0 18px 30px rgba(52, 39, 20, 0.18);
}

.sack::before {
  content: "";
  position: absolute;
  inset: 14px 18px auto;
  height: 8px;
  background: rgba(15, 111, 82, 0.2);
  border-radius: 999px;
}

.sack span {
  margin-top: 16px;
  color: var(--brand-strong);
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sack strong {
  font-size: 2.55rem;
  line-height: 1;
}

.sack-large {
  right: 16%;
  bottom: 13%;
  width: 230px;
  height: 310px;
  transform: rotate(5deg);
}

.sack-large strong {
  text-align: right;
}

.sack-small {
  left: 12%;
  bottom: 19%;
  width: 168px;
  height: 226px;
  transform: rotate(-8deg);
}

.sack-small strong {
  font-size: 2.05rem;
}

.wheat-stem {
  position: absolute;
  width: 8px;
  height: 280px;
  background: var(--gold);
  border-radius: 999px;
  transform-origin: bottom center;
}

.wheat-stem::before,
.wheat-stem::after {
  content: "";
  position: absolute;
  top: 30px;
  width: 24px;
  height: 78px;
  background: var(--gold);
  border-radius: 80% 0 80% 0;
}

.wheat-stem::before {
  right: 5px;
  transform: rotate(-35deg);
}

.wheat-stem::after {
  left: 5px;
  transform: rotate(35deg);
}

.stem-one {
  right: 9%;
  bottom: 12%;
  transform: rotate(18deg);
}

.stem-two {
  left: 8%;
  bottom: 14%;
  transform: rotate(-16deg) scale(0.85);
}

.workflow,
.app-grid,
.details-panel,
.checkout-panel,
.access-panel,
.admin-grid {
  margin-bottom: 28px;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.workflow div {
  min-width: 0;
  padding: 20px;
  background: var(--surface);
}

.workflow span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin-bottom: 16px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 900;
}

.workflow strong {
  display: block;
}

.workflow p {
  margin: 6px 0 0;
  color: var(--muted);
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 22px;
  align-items: start;
}

.catalog-panel,
.order-panel,
.details-panel,
.access-panel,
.orders-panel,
.review-panel {
  padding: clamp(18px, 3vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.order-panel,
.review-panel {
  position: sticky;
  top: 88px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.locked {
  position: relative;
}

.locked::after {
  content: "Complete company details before adding products";
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  min-height: 240px;
  place-items: center;
  padding: 24px;
  color: var(--brand-strong);
  background: rgba(244, 247, 244, 0.76);
  border: 1px dashed #a9c7b3;
  border-radius: 8px;
  font-weight: 900;
  text-align: center;
  backdrop-filter: blur(3px);
}

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

.section-heading.compact {
  margin-bottom: 10px;
}

h2,
h3 {
  margin: 0;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(320px, 100%);
}

.search svg,
.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.search svg {
  position: absolute;
  left: 12px;
  color: var(--muted);
}

.search input {
  width: 100%;
  padding-left: 42px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--surface-strong);
  border: 1px solid #cfc7b8;
  border-radius: 8px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(15, 111, 82, 0.24);
  outline-offset: 2px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.catalog-note {
  margin-bottom: 14px;
  padding: 12px 14px;
  color: var(--blue);
  background: #edf5fb;
  border: 1px solid #c9dceb;
  border-radius: 8px;
  font-weight: 750;
}

.chip {
  min-height: 38px;
  padding: 7px 12px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

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

.product-list {
  display: grid;
  gap: 12px;
}

.product-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-media {
  position: relative;
  width: 88px;
  aspect-ratio: 1;
  overflow: hidden;
  background: #ead8a5;
  border-radius: 8px;
}

.product-media::before {
  content: "";
  position: absolute;
  inset: 16px 22px 12px;
  background: #fff5d5;
  border: 2px solid rgba(54, 48, 34, 0.12);
  border-radius: 6px 6px 13px 13px;
  box-shadow: inset 10px 0 rgba(255, 255, 255, 0.45);
}

.product-media::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 13px;
  width: 24px;
  height: 24px;
  background: var(--brand);
  border-radius: 999px;
}

.product-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.category {
  margin: 0 0 3px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.description {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.product-meta,
.totals {
  display: grid;
  gap: 8px;
  margin: 0;
}

.product-meta {
  grid-template-columns: repeat(2, minmax(0, 150px));
}

.product-meta div,
.totals div {
  min-width: 0;
}

dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 0;
  font-weight: 900;
}

.product-actions {
  display: grid;
  grid-template-columns: 78px 82px;
  gap: 8px;
}

.qty-input {
  text-align: center;
  font-weight: 900;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-items {
  display: grid;
  gap: 10px;
  min-height: 120px;
  margin: 12px 0 16px;
}

.empty {
  display: grid;
  min-height: 120px;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed #c8c0b0;
  border-radius: 8px;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  background: #f2f6f2;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-item h3 {
  font-size: 0.98rem;
}

.cart-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.cart-controls {
  display: grid;
  grid-template-columns: 40px 48px 40px;
  align-items: center;
  text-align: center;
}

.cart-controls button {
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.cart-controls span {
  font-weight: 900;
}

.totals {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.details-panel {
  margin-bottom: 56px;
}

.status {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  background: #eef2f0;
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: capitalize;
}

.status-pill.pending {
  background: #fff3d8;
  color: #8b5d05;
}

.status-pill.accepted {
  background: #e4f5e9;
  color: #0e6436;
}

.status-pill.partial {
  background: #e7f0fb;
  color: #225789;
}

.status-pill.rejected {
  background: #f9e2df;
  color: #962d1e;
}

form {
  display: grid;
  gap: 16px;
}

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

label {
  display: grid;
  gap: 7px;
  color: #3f4944;
  font-weight: 800;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  gap: 22px;
  align-items: start;
}

.admin-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1380px;
  margin: 0 auto 22px;
}

.admin-overview article {
  min-width: 0;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(28, 43, 78, 0.05);
}

.admin-overview span {
  display: block;
  color: var(--portal-muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.admin-overview strong {
  display: block;
  margin-top: 6px;
  color: var(--portal-text);
  font-size: 1.7rem;
}

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

.order-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 14px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
}

.order-row.active,
.order-row:hover {
  border-color: #9bc4aa;
  box-shadow: 0 10px 24px rgba(15, 111, 82, 0.1);
}

.order-row span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.order-row span:last-child {
  justify-items: end;
  text-align: right;
}

.order-row small,
.review-company p,
.review-line span {
  color: var(--muted);
}

.review-detail {
  display: grid;
  gap: 16px;
}

.admin-email-note {
  margin: -6px 0 18px;
  padding: 14px 16px;
  color: #3d4b68;
  background: var(--portal-soft-blue);
  border: 1px solid #d9e7ff;
  border-radius: 8px;
  font-weight: 700;
}

.review-company {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.review-company p {
  margin: 5px 0 0;
}

.review-lines {
  display: grid;
  gap: 10px;
}

.review-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #f5f8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.review-line strong,
.review-line span {
  display: block;
}

.review-line input {
  text-align: center;
  font-weight: 900;
}

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

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 980px) {
  .hero,
  .app-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 360px;
  }

  h1 {
    max-width: 13ch;
  }

  .order-panel,
  .review-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  main {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(2.7rem, 16vw, 4.25rem);
  }

  .workflow,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .search {
    width: 100%;
  }

  .product-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .product-media {
    width: 72px;
  }

  .product-actions {
    grid-column: 1 / -1;
    grid-template-columns: minmax(80px, 1fr) minmax(92px, 1fr);
  }

  .order-row,
  .review-line,
  .decision-actions {
    grid-template-columns: 1fr;
  }

  .order-row {
    display: grid;
  }

  .order-row span:last-child {
    justify-items: start;
    text-align: left;
  }
}

@media print {
  .topbar,
  .hero,
  .workflow,
  .catalog-panel,
  .access-panel,
  .orders-panel,
  .review-panel,
  .form-actions,
  .icon-button,
  .filters,
  .search {
    display: none !important;
  }

  body {
    background: #fff;
  }

  main {
    width: 100%;
  }

  .app-grid {
    display: block;
  }

  .order-panel,
  .details-panel {
    margin: 0 0 18px;
    border-color: #999;
    box-shadow: none;
  }
}

/* Dashboard direction based on the supplied reference */
:root {
  --portal-blue: #00358f;
  --portal-blue-dark: #00246d;
  --portal-soft-blue: #eef5ff;
  --portal-text: #111a34;
  --portal-muted: #53617f;
  --portal-line: #dfe6f1;
  --portal-bg: #f7f9fd;
}

body {
  background: var(--portal-bg);
  color: var(--portal-text);
}

.topbar {
  position: fixed;
  top: 14px;
  left: 18px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 300px;
  min-height: 64px;
  padding: 10px 14px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.18), transparent 26%),
    linear-gradient(180deg, #003f9f 0%, var(--portal-blue-dark) 100%);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 36, 109, 0.2);
  color: #fff;
  backdrop-filter: none;
  transition:
    inset 180ms ease,
    width 180ms ease,
    min-height 180ms ease,
    padding 180ms ease,
    border-radius 180ms ease;
}

.brand {
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  margin-bottom: 0;
  color: #fff;
  text-align: left;
}

.brand-mark {
  display: none;
}

.brand-logo {
  display: block;
  width: 58px;
  max-height: 40px;
  height: auto;
  margin-bottom: 0;
  object-fit: contain;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand small {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  padding: 9px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.sidebar-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

.sidebar-toggle span + span {
  margin-top: 5px;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: none;
  background: rgba(12, 22, 46, 0.24);
  border: 0;
}

body.sidebar-open .sidebar-backdrop {
  display: block;
}

.topbar nav {
  display: none;
}

body.sidebar-open .topbar {
  inset: 0 auto 0 0;
  display: grid;
  align-items: start;
  width: 256px;
  min-height: 100svh;
  padding: 32px 14px;
  border-radius: 0;
}

body.sidebar-open .brand {
  justify-content: center;
  flex-direction: column;
  gap: 0;
  margin-bottom: 42px;
  text-align: center;
}

body.sidebar-open .brand-logo {
  width: 104px;
  margin-bottom: 10px;
}

body.sidebar-open .brand strong {
  font-size: 1.55rem;
}

body.sidebar-open .brand small {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

body.sidebar-open .sidebar-toggle {
  position: absolute;
  top: 18px;
  right: 14px;
}

body.sidebar-open .topbar nav {
  display: grid;
  gap: 14px;
}

.nav-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 58px;
  width: 100%;
  padding: 0 18px;
  color: rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  font-weight: 850;
  text-align: left;
}

.nav-button:hover,
.nav-button:focus-visible,
.nav-button.active {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.nav-button::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-right: 14px;
  border: 2px solid currentColor;
  border-radius: 6px;
}

.nav-button:nth-child(2)::before {
  border-radius: 50%;
}

.nav-button:nth-child(3)::before {
  border-radius: 999px 999px 6px 6px;
}

body.customer-session .admin-nav {
  display: none;
}

body.admin-session .cart-shortcut {
  display: none;
}

body.history-page #ordering-area,
body.history-page #details,
body.history-page #checkout-page,
body.history-page #profile-page,
body.cart-page #ordering-area,
body.cart-page #order-history,
body.cart-page #profile-page,
body.profile-page #ordering-area,
body.profile-page #order-history,
body.profile-page #checkout-page,
body.profile-page #details,
body.profile-page #notifications-page,
body.notifications-page #ordering-area,
body.notifications-page #order-history,
body.notifications-page #checkout-page,
body.notifications-page #details,
body.notifications-page #profile-page,
body.catalog-page #details,
body.catalog-page #checkout-page,
body.catalog-page #profile-page,
body.catalog-page #notifications-page {
  display: none;
}

body.catalog-page #order-history,
body.catalog-page #notifications-page,
body:not(.history-page) #order-history,
body:not(.notifications-page) #notifications-page,
body:not(.cart-page) #checkout-page,
body:not(.cart-page) #details,
body:not(.profile-page) #profile-page {
  display: none;
}

body.history-page .search,
body.history-page .catalog-note,
body.cart-page .search,
body.cart-page .catalog-note,
body.profile-page .search,
body.profile-page .catalog-note,
body.notifications-page .search,
body.notifications-page .catalog-note {
  display: none;
}

.sidebar-logout {
  display: none;
  min-height: 52px;
  width: calc(100% - 4px);
  margin: auto 2px 0;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  font-weight: 900;
  text-align: left;
}

body.sidebar-open .sidebar-logout {
  display: block;
}

.sidebar-logout:hover,
.sidebar-logout:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

main {
  width: auto;
  min-height: 100svh;
  margin: 0;
  padding: 32px;
}

main::before {
  content: "";
  position: sticky;
  top: 0;
  z-index: 20;
  display: block;
  height: 70px;
  margin: -32px -32px 28px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--portal-line);
  backdrop-filter: blur(18px);
}

.account-bar {
  position: fixed;
  top: 18px;
  right: 32px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  color: var(--portal-text);
}

.account-icon {
  position: relative;
  width: 22px;
  height: 22px;
}

.account-icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: #fff;
  color: var(--portal-blue-dark);
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(28, 43, 78, 0.06);
}

.account-icon-button:hover,
.account-icon-button:focus-visible,
body.profile-page .account-icon-button {
  background: var(--portal-blue);
  color: #fff;
  border-color: var(--portal-blue);
}

.account-icon::before,
.account-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: currentColor;
}

.account-icon::before {
  top: 1px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.account-icon::after {
  bottom: 2px;
  width: 18px;
  height: 10px;
  border-radius: 999px 999px 4px 4px;
}

.account-bar strong {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-stack {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.cart-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 10px;
  background: #fff;
  color: var(--portal-blue);
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(28, 43, 78, 0.06);
  font-size: 0.86rem;
  font-weight: 900;
}

.cart-icon {
  position: relative;
  width: 18px;
  height: 16px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 3px;
}

.cart-icon::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 3px;
  width: 8px;
  height: 6px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.cart-shortcut-count {
  display: grid;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  place-items: center;
  background: var(--portal-blue);
  color: #fff;
  border-radius: 999px;
  font-size: 0.74rem;
}

body.cart-page .cart-shortcut {
  background: var(--portal-blue);
  color: #fff;
  border-color: var(--portal-blue);
}

body.cart-page .cart-shortcut-count {
  background: #fff;
  color: var(--portal-blue);
}

.hero,
.workflow {
  display: none;
}

.view.active {
  display: block;
}

.access-panel {
  max-width: 1180px;
  margin: 0 auto 24px;
  border-color: var(--portal-line);
  box-shadow: 0 18px 44px rgba(28, 43, 78, 0.05);
}

.access-panel.customer-ready {
  display: none;
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  max-width: 1380px;
  margin: 0 auto 24px;
}

.catalog-panel,
.order-panel,
.checkout-panel,
.details-panel,
.orders-panel,
.review-panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.catalog-panel {
  padding: 0;
}

.section-heading {
  align-items: start;
  margin-bottom: 24px;
}

.section-heading h2 {
  color: var(--portal-text);
  font-size: 1.9rem;
}

.section-subtitle {
  margin: 6px 0 0;
  color: var(--portal-muted);
  font-weight: 650;
}

.eyebrow {
  color: var(--portal-blue);
}

.search {
  position: fixed;
  top: 21px;
  left: 346px;
  z-index: 40;
  width: min(520px, calc(100vw - 900px));
}

.search input {
  min-height: 52px;
  padding-left: 52px;
  background: #fff;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(20, 42, 81, 0.06);
}

.search svg {
  left: 18px;
  color: #203b72;
}

.filters {
  gap: 14px;
  margin-bottom: 28px;
}

.chip {
  min-height: 46px;
  padding: 10px 24px;
  background: #fff;
  color: var(--portal-text);
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(28, 43, 78, 0.04);
}

.chip.active {
  background: var(--portal-blue);
  border-color: var(--portal-blue);
  color: #fff;
  box-shadow: 0 14px 28px rgba(0, 53, 143, 0.22);
}

.catalog-note {
  position: fixed;
  left: 288px;
  right: 430px;
  bottom: 18px;
  z-index: 25;
  min-height: 48px;
  margin: 0;
  padding: 12px 18px;
  color: #3d4b68;
  background: #eef5ff;
  border: 1px solid #d9e7ff;
  box-shadow: 0 12px 34px rgba(24, 43, 78, 0.08);
}

.product-list {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 18px;
  padding-bottom: 74px;
}

.product-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 360px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(28, 43, 78, 0.05);
}

.product-media {
  justify-self: center;
  width: min(138px, 70%);
  min-height: 128px;
  margin: 0 auto 20px;
  background: transparent;
  border-radius: 0;
}

.product-media.has-image {
  display: grid;
  width: min(168px, 76%);
  place-items: center;
}

.product-image {
  display: none;
}

.product-media.has-image .product-image {
  display: block;
  max-width: 100%;
  max-height: 158px;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(37, 49, 82, 0.14));
}

.product-media.has-image::before,
.product-media.has-image::after {
  display: none;
}

.product-media::before {
  inset: 4px 28px 8px;
  background:
    linear-gradient(180deg, #f8fbff 0%, #f2f4f8 100%);
  border: 1px solid #d9e1ef;
  border-radius: 6px 6px 12px 12px;
  box-shadow:
    16px 18px 22px rgba(37, 49, 82, 0.12),
    inset 0 -22px #0b3f91;
}

.product-media::after {
  right: 34px;
  bottom: 18px;
  width: 34px;
  height: 22px;
  background: #fff;
  border: 1px solid #d3dceb;
  border-radius: 4px;
}

.product-main {
  gap: 12px;
}

.category {
  color: var(--portal-blue);
  font-size: 0.72rem;
}

.product-card h3 {
  min-height: 3.1em;
  color: var(--portal-text);
  font-size: 1.08rem;
  line-height: 1.25;
}

.description {
  min-height: 2.6em;
  color: var(--portal-muted);
  font-weight: 650;
}

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

.product-meta dt {
  display: none;
}

.product-meta dd {
  color: var(--portal-muted);
  font-size: 0.9rem;
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
}

.quantity-stepper,
.cart-controls {
  display: grid;
  grid-template-columns: 44px minmax(70px, 1fr) 44px;
  align-items: center;
  min-height: 44px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
}

.step-button,
.cart-controls button {
  width: 44px;
  height: 44px;
  background: #fff;
  color: var(--portal-blue-dark);
  border: 0;
  font-size: 1.25rem;
  font-weight: 900;
}

.qty-input {
  min-height: 44px;
  padding: 0;
  border: 0;
  color: var(--portal-text);
  text-align: center;
  font-weight: 900;
}

.pack-short {
  color: var(--portal-text);
  font-weight: 900;
  white-space: nowrap;
}

.order-panel {
  position: sticky;
  top: 104px;
  align-self: start;
  max-height: calc(100svh - 126px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 26px 20px;
  background: #fff;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(28, 43, 78, 0.08);
}

.order-panel .section-heading {
  align-items: center;
}

.cart-badge {
  display: inline-grid;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  place-items: center;
  margin-left: 8px;
  background: var(--portal-blue);
  color: #fff;
  border-radius: 999px;
  font-size: 0.95rem;
}

.cart-items {
  display: grid;
  gap: 0;
  margin-top: 10px;
  max-height: min(36svh, 360px);
  overflow: auto;
  padding-right: 4px;
}

.cart-item {
  grid-template-columns: minmax(0, 1fr);
  padding: 18px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--portal-line);
  border-radius: 0;
}

.cart-item h3 {
  color: var(--portal-text);
  font-size: 1rem;
}

.cart-item p {
  color: var(--portal-muted);
}

.cart-controls {
  justify-self: end;
  grid-template-columns: 40px minmax(76px, 1fr) 40px;
  margin-top: 10px;
}

.cart-controls button {
  width: 40px;
  height: 40px;
}

.totals {
  gap: 14px;
  padding-top: 20px;
  border-top: 0;
}

.totals div {
  color: var(--portal-muted);
}

.totals dd {
  color: var(--portal-text);
}

.cart-actions {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.cart-actions .button {
  width: 100%;
}

.cart-note {
  margin-top: 22px;
  padding: 16px;
  color: #3d4b68;
  background: var(--portal-soft-blue);
  border: 1px solid #d9e7ff;
  border-radius: 8px;
  font-weight: 700;
}

.details-panel {
  max-width: 1380px;
  margin: 0 auto 56px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(28, 43, 78, 0.05);
}

.profile-panel {
  max-width: 1180px;
  margin: 0 auto 56px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(28, 43, 78, 0.05);
}

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

.profile-card {
  padding: 20px;
  background: #f8fbff;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
}

.profile-card h3 {
  margin: 0 0 16px;
  color: var(--portal-text);
  font-size: 1.1rem;
}

.profile-card textarea {
  resize: vertical;
}

.checkout-panel {
  max-width: 1180px;
  margin: 0 auto 24px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(28, 43, 78, 0.05);
}

.orders-panel,
.review-panel {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(28, 43, 78, 0.05);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1380px;
  margin: 0 auto 22px;
}

.admin-section {
  display: none;
  max-width: 1380px;
  margin: 0 auto 24px;
}

.admin-section.active {
  display: block;
}

.admin-grid.admin-section.active {
  display: grid;
}

.admin-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 240px);
  gap: 14px;
  margin-bottom: 18px;
}

.product-editor,
.admin-user-form {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
  padding: 18px;
  background: #f8fbff;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
}

.admin-product-list,
.admin-history-list,
.admin-user-list,
.admin-customer-list {
  display: grid;
  gap: 12px;
}

.admin-product-row,
.admin-user-row,
.admin-customer-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 12px;
  background: #fff;
  color: var(--portal-text);
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  text-align: left;
}

.admin-product-row.active,
.admin-product-row:hover,
.admin-product-row:focus-visible {
  border-color: var(--portal-blue);
  box-shadow: 0 10px 28px rgba(0, 53, 143, 0.1);
}

.admin-product-photo {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  background: #f8fbff;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
}

.admin-product-photo img {
  max-width: 58px;
  max-height: 62px;
  object-fit: contain;
}

.admin-product-photo span {
  width: 28px;
  height: 40px;
  background: linear-gradient(180deg, #fff, #eef4fb);
  border: 1px solid var(--portal-line);
  border-radius: 5px;
  box-shadow: inset 0 -12px var(--portal-blue);
}

.admin-product-row strong,
.admin-product-row small,
.admin-user-row strong,
.admin-user-row span,
.admin-customer-row strong,
.admin-customer-row span,
.admin-customer-row small {
  display: block;
}

.admin-product-row small,
.admin-user-row span,
.admin-user-row small,
.admin-customer-row span,
.admin-customer-row small {
  color: var(--portal-muted);
  font-weight: 750;
}

.admin-user-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-customer-row {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: start;
}

.customer-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.customer-stats div {
  padding: 10px;
  background: #f8fbff;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
}

.customer-stats dt {
  color: var(--portal-muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.customer-stats dd {
  margin: 3px 0 0;
  color: var(--portal-text);
  font-weight: 900;
}

.admin-history-item {
  background: #fff;
}

.checkout-panel .section-heading .button {
  min-width: 140px;
  white-space: nowrap;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.checkout-items {
  display: grid;
  gap: 14px;
}

.checkout-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-width: 0;
  padding: 16px;
  background: #f8fbff;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
}

.checkout-media {
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  background: #fff;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
}

.checkout-media img {
  max-width: 82px;
  max-height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(37, 49, 82, 0.12));
}

.checkout-placeholder {
  width: 48px;
  height: 64px;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f4f8 100%);
  border: 1px solid #d9e1ef;
  border-radius: 6px 6px 10px 10px;
  box-shadow: inset 0 -16px #0b3f91;
}

.checkout-product {
  min-width: 0;
}

.checkout-product span,
.checkout-product small {
  color: var(--portal-muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.checkout-product h3 {
  margin: 2px 0 4px;
  color: var(--portal-text);
  font-size: 1.08rem;
}

.checkout-product p {
  margin: 0 0 8px;
  color: var(--portal-muted);
  font-weight: 650;
}

.checkout-summary {
  position: sticky;
  top: 112px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(28, 43, 78, 0.06);
}

.checkout-summary h3 {
  margin: 0 0 16px;
  color: var(--portal-text);
}

.checkout-empty {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 28px;
  background: #f8fbff;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
}

.checkout-empty h3,
.checkout-empty p {
  margin: 0;
}

.history-panel,
.notifications-panel {
  max-width: 980px;
  margin: 0 auto 56px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(28, 43, 78, 0.05);
}

.history-list,
.notifications-list {
  display: grid;
  gap: 16px;
}

.history-item,
.notification-item,
.admin-history-item {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: #f8fbff;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
}

.notification-item {
  grid-template-columns: minmax(0, 1fr) auto;
}

.notification-item p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--portal-muted);
  font-weight: 700;
}

.history-item-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.history-item strong,
.history-item span {
  display: block;
}

.history-item span {
  color: var(--portal-muted);
  font-weight: 700;
}

.history-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
}

.history-products {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.history-products li {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--portal-line);
}

.history-products li:last-child {
  border-bottom: 0;
}

.history-products strong {
  color: var(--portal-blue);
  white-space: nowrap;
}

.history-note {
  margin: 0;
  padding: 12px 14px;
  color: #3d4b68;
  background: var(--portal-soft-blue);
  border: 1px solid #d9e7ff;
  border-radius: 8px;
  font-weight: 700;
}

.button.primary {
  background: var(--portal-blue);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--portal-blue-dark);
}

.button.secondary {
  background: #fff;
  color: var(--portal-blue);
  border-color: #b8c8e3;
}

@media (max-width: 1180px) {
  .product-list {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .search {
    width: min(420px, calc(100vw - 620px));
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
  }

  .profile-card .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .topbar {
    position: fixed;
    top: 12px;
    left: 12px;
    width: min(292px, calc(100vw - 24px));
    min-height: 60px;
    padding: 9px 12px;
  }

  .brand {
    justify-content: flex-start;
    margin-bottom: 0;
  }

  body.sidebar-open .topbar {
    inset: 0 auto 0 0;
    width: min(286px, 88vw);
    min-height: 100svh;
    padding: 32px 14px;
  }

  main {
    margin: 0;
    padding: 92px 20px 20px;
  }

  main::before {
    display: none;
  }

  .search,
  .account-bar,
  .catalog-note {
    position: static;
    width: 100%;
  }

  .account-bar {
    justify-content: flex-end;
    margin-bottom: 18px;
  }

  .app-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 18px;
  }

  .order-panel {
    position: sticky;
    top: 92px;
  }

  .checkout-panel,
  .details-panel,
  .profile-panel {
    padding: 22px;
  }

  .checkout-item {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .checkout-item .cart-controls {
    grid-column: 2;
    justify-self: start;
  }

  .checkout-media {
    width: 88px;
    height: 88px;
  }
}

@media (max-width: 720px) {
  .app-grid {
    grid-template-columns: 1fr;
  }

  .order-panel {
    position: static;
  }

  .product-list {
    grid-template-columns: 1fr;
  }

  .checkout-item {
    grid-template-columns: 1fr;
  }

  .checkout-media {
    width: 100%;
  }

  .checkout-item .cart-controls {
    grid-column: 1;
  }
}

@media (min-width: 721px) and (max-width: 980px) {
  .topbar {
    position: fixed;
    top: 12px;
    left: 12px;
    width: min(292px, calc(100vw - 24px));
    padding: 9px 12px;
  }

  .brand {
    justify-content: flex-start;
    margin-bottom: 0;
  }

  body.sidebar-open .topbar nav {
    grid-template-columns: 1fr;
  }

  main {
    margin-left: 0;
    padding: 92px 24px 24px;
  }

  main::before {
    display: none;
  }

  .search {
    position: static;
    width: 100%;
  }

  .account-bar {
    position: static;
    justify-content: flex-end;
    margin: -16px 0 18px;
  }

  .product-list {
    grid-template-columns: 1fr;
  }
}

.hidden {
  display: none !important;
}

body:not(.app-unlocked) .topbar,
body:not(.app-unlocked) .sidebar-backdrop,
body:not(.app-unlocked) main {
  display: none;
}

.auth-screen {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: start center;
  padding: 44px 20px 64px;
  background:
    radial-gradient(circle at 10% 8%, rgba(0, 53, 143, 0.13), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.admin-entry {
  position: absolute;
  top: 24px;
  right: 28px;
  min-height: 42px;
  padding: 8px 16px;
  background: #fff;
  color: var(--portal-blue);
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(28, 43, 78, 0.08);
  font-weight: 900;
}

.auth-brand {
  display: grid;
  justify-items: center;
  margin: 10px 0 24px;
  color: var(--portal-blue);
  text-align: center;
}

.auth-brand img {
  width: 150px;
  height: auto;
  margin-bottom: 4px;
  object-fit: contain;
}

.auth-brand strong {
  color: var(--portal-blue);
  font-size: 2rem;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
}

.auth-brand small {
  margin-top: 6px;
  color: var(--portal-muted);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-card,
.admin-login-card {
  width: min(480px, 100%);
  padding: 30px;
  background: #fff;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(28, 43, 78, 0.12);
}

.register-card {
  width: min(760px, 100%);
}

.auth-card h1,
.auth-card h2,
.admin-login-card h2 {
  margin: 0 0 10px;
  color: var(--portal-text);
}

.auth-card h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.05;
}

.auth-copy {
  margin: 0 0 22px;
  color: var(--portal-muted);
  font-weight: 650;
}

.auth-card form,
.admin-login-card form {
  display: grid;
  gap: 16px;
}

.auth-card .button.primary,
.admin-login-card .button.primary {
  width: 100%;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.auth-links button {
  padding: 0;
  background: transparent;
  color: var(--portal-blue);
  border: 0;
  font-weight: 850;
}

.auth-status {
  min-height: 24px;
  margin: 16px 0 0;
  color: #8b5d05;
  font-weight: 800;
}

.admin-login-card {
  position: absolute;
  top: 84px;
  right: 28px;
  z-index: 5;
  width: min(390px, calc(100vw - 40px));
}

@media (max-width: 720px) {
  .admin-entry {
    position: static;
    justify-self: end;
    margin-bottom: 18px;
  }

  .admin-login-card {
    position: static;
    margin-top: 18px;
  }

  .auth-links {
    align-items: flex-start;
    flex-direction: column;
  }
}
