:root {
  --turquoise: #00c8cb;
  --navy: #1a1d5a;
  --coral: #ffa37d;
  --mist: #e6e7ea;
  --ink: #171a34;
  --muted: #687080;
  --paper: #ffffff;
  --soft: #f6f8fb;
  --line: #dce2ea;
  --line-strong: #c4ceda;
  --success: #147a58;
  --warning: #9f6400;
  --shadow: 0 18px 44px rgba(26, 29, 90, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--soft);
  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;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  grid-template-rows: auto 1fr;
  background: linear-gradient(180deg, #f8fafc 0%, #eef3f7 100%);
}

.public-topbar {
  position: sticky;
  top: 0;
  z-index: 18;
  grid-column: 1 / -1;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.public-topbar-logo {
  width: 180px;
}

.top-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  min-width: 0;
}

.top-menu button {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.45rem 0.7rem;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-weight: 900;
}

.top-menu button.active,
.top-menu button:hover,
.top-menu button:focus-visible {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.cart-pill {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 0.35rem;
  color: #fff;
  background: var(--coral);
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1;
}

.top-menu button.active .cart-pill,
.top-menu button:hover .cart-pill,
.top-menu button:focus-visible .cart-pill {
  color: var(--navy);
  background: #fff;
}

.auth-hero {
  display: grid;
  align-content: center;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 5rem);
}

.auth-logo {
  width: min(420px, 80vw);
}

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

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--navy);
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: 1.02;
}

h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.15;
}

h3 {
  margin: 0;
  font-size: 1rem;
}

.hero-copy p {
  max-width: 620px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.journey-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  max-width: 760px;
}

.journey-preview div,
.panel,
.metric-card,
.product-card,
.workflow-band div {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.journey-preview div {
  padding: 1rem;
}

.journey-preview span,
.workflow-band span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 0.8rem;
  color: #fff;
  background: var(--navy);
  border-radius: 50%;
  font-weight: 900;
}

.journey-preview strong,
.journey-preview small {
  display: block;
}

.journey-preview small {
  color: var(--muted);
}

.public-panel {
  width: min(860px, 100%);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.public-search {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(180px, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 0.85rem;
}

.public-results,
.public-product-grid {
  display: grid;
  gap: 0.75rem;
}

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

.public-card,
.public-product {
  min-width: 0;
  padding: 0.85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.public-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.85rem;
  align-items: center;
}

.public-card p,
.public-product small {
  color: var(--muted);
}

.public-card p {
  margin: 0.35rem 0;
}

.public-card small,
.public-product small {
  display: block;
}

.public-product {
  display: grid;
  gap: 0.45rem;
}

.public-product span {
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 950;
}

.public-product-header,
.product-card-meta {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: space-between;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 180px) minmax(150px, 190px);
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1rem;
}

.compact-toolbar {
  margin-bottom: 0.8rem;
}

.product-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.product-type-chip,
.sale-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.product-type-chip {
  color: var(--navy);
  background: #effafb;
  border: 1px solid rgba(0, 200, 203, 0.28);
}

.sale-chip {
  color: #7a2b0d;
  background: #fff1eb;
  border: 1px solid rgba(255, 163, 125, 0.45);
}

.tag {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  padding: 0.2rem 0.45rem;
  color: var(--navy);
  background: #effafb;
  border: 1px solid rgba(0, 200, 203, 0.28);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-panel {
  align-self: center;
  margin: 1.25rem;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(26, 29, 90, 0.14);
}

.auth-tabs,
.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.auth-tab,
.segment {
  min-height: 42px;
  padding: 0.55rem;
  color: var(--navy);
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 850;
}

.auth-tab.active,
.segment.active {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.auth-view,
.view {
  display: none;
}

.auth-view.active,
.view.active {
  display: block;
}

.section-head {
  margin-bottom: 1rem;
}

.section-head p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.form-stack,
.task-list,
.cart-items,
.roster {
  display: grid;
  gap: 0.75rem;
}

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

.inline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.field span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 0.6rem 0.7rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--turquoise);
  outline: 3px solid rgba(0, 200, 203, 0.18);
}

.field.compact {
  min-width: 220px;
}

.full {
  grid-column: 1 / -1;
}

.conditional {
  display: none;
  padding: 0.75rem;
  background: #fafbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.conditional.visible {
  display: block;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.primary-button,
.secondary-button,
.menu-button,
.link-button,
.small-button {
  min-height: 40px;
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 900;
}

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

.secondary-button,
.menu-button,
.small-button {
  color: var(--navy);
  background: #fff;
  border-color: var(--line-strong);
}

.link-button {
  min-height: 32px;
  padding: 0.2rem 0;
  color: var(--navy);
  background: transparent;
  border: 0;
}

button:hover,
button:focus-visible {
  outline: 3px solid rgba(0, 200, 203, 0.16);
}

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

.reset-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.captcha-info {
  padding: 0.65rem 0.75rem;
  color: var(--muted);
  background: #fafbfd;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.86rem;
}

.captcha-widget {
  min-height: 0;
}

.captcha-widget:not(:empty) {
  display: grid;
  justify-items: start;
  gap: 0.6rem;
  min-height: 72px;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.captcha-widget iframe {
  max-width: 100%;
}

.captcha-note {
  padding: 0.65rem 0.75rem;
  color: var(--navy);
  background: #effafb;
  border: 1px solid rgba(0, 200, 203, 0.28);
  border-radius: 6px;
  font-weight: 800;
}

.app-screen {
  min-height: 100vh;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(160px, 220px) minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 72px;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.topbar-logo {
  width: 210px;
}

.logged-menu {
  justify-content: center;
}

.menu-button {
  display: none;
}

.session-chip {
  justify-self: end;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 0.35rem 0.6rem;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 850;
}

.app-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}

.side-nav {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  padding: 1rem 0.85rem;
  background: rgba(255, 255, 255, 0.74);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}

.profile-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-card img {
  width: 54px;
  height: 54px;
}

.profile-card strong,
.profile-card span {
  display: block;
}

.profile-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.side-nav nav {
  display: grid;
  gap: 0.35rem;
}

.nav-item {
  min-height: 42px;
  width: 100%;
  padding: 0.6rem 0.7rem;
  color: var(--muted);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 850;
}

.nav-item.active,
.nav-item:hover,
.nav-item:focus-visible {
  color: var(--navy);
  background: #fff;
  border-color: var(--line);
}

.workspace {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 1.25rem;
}

.page-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.page-head h1 {
  font-size: clamp(1.7rem, 2.8vw, 3.1rem);
}

.panel {
  padding: 1rem;
}

.panel-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.panel-head h2 {
  font-size: 1.08rem;
}

.panel-head p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.two-column,
.gallery-layout,
.commerce-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.three-column,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.metric-card {
  display: grid;
  gap: 0.2rem;
  min-height: 126px;
  padding: 1rem;
}

.metric-card span {
  color: var(--muted);
  font-weight: 800;
}

.metric-card strong {
  color: var(--navy);
  font-size: 2rem;
  line-height: 1;
}

.metric-card small {
  color: var(--success);
  font-weight: 800;
}

.task-item,
.result-card,
.cart-row,
.roster-row {
  padding: 0.75rem;
  background: #fafbfd;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.task-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

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

.task-item span,
.result-card {
  color: var(--muted);
}

.brand-panel {
  padding: 0;
  overflow: hidden;
}

.brand-panel img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
}

.rule-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.6rem;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-weight: 850;
}

.totals {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
}

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

.totals dd {
  margin: 0;
  color: var(--navy);
  font-weight: 900;
}

.totals .total {
  border-bottom: 0;
  font-size: 1.1rem;
}

.workflow-band {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.workflow-band div {
  min-height: 134px;
  padding: 0.9rem;
}

.workflow-band strong,
.workflow-band small {
  display: block;
}

.workflow-band small {
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  display: grid;
  grid-template-rows: 138px auto auto;
  overflow: hidden;
}

.product-visual {
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(0, 200, 203, 0.14), rgba(255, 163, 125, 0.18));
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-visual .product-placeholder {
  width: 68px;
  height: 68px;
}

.product-visual .product-type-chip,
.product-visual .sale-chip {
  position: absolute;
  top: 0.65rem;
}

.product-visual .product-type-chip {
  left: 0.65rem;
}

.product-visual .sale-chip {
  right: 0.65rem;
}

.product-placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
  font-weight: 950;
}

.product-body {
  display: grid;
  gap: 0.45rem;
  padding: 0.8rem;
}

.product-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-footer {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem;
  border-top: 1px solid var(--line);
}

.product-restriction {
  margin: 0 0.8rem 0.8rem;
  color: var(--warning);
  font-weight: 800;
}

.product-grid > .result-card {
  grid-column: 1 / -1;
}

.price {
  color: var(--navy);
  font-weight: 950;
}

.price del {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.cart-panel {
  position: sticky;
  top: 88px;
}

.cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 0.75rem;
  align-items: center;
}

.cart-row strong,
.cart-row span {
  display: block;
}

.cart-row span {
  color: var(--muted);
  font-size: 0.86rem;
}

.quantity-control {
  display: grid;
  grid-template-columns: 34px 34px 34px;
  gap: 0.25rem;
  align-items: center;
}

.quantity-control output {
  display: grid;
  place-items: center;
  min-height: 34px;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 900;
}

.quantity-control .small-button {
  min-height: 34px;
  padding: 0;
}

.checkout-section {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.checkout-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.checkout-section h3 {
  font-size: 0.92rem;
  text-transform: uppercase;
}

.terms-row {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: var(--muted);
  font-weight: 750;
}

.checkout-result {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.85rem;
}

.checkout-result strong,
.checkout-result span,
.checkout-result small {
  display: block;
}

.checkout-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.photo-tile {
  display: grid;
  align-content: end;
  min-height: 190px;
  padding: 0.8rem;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(26, 29, 90, 0.08), rgba(26, 29, 90, 0.8)),
    linear-gradient(135deg, #00c8cb, #ffa37d);
  border-radius: 8px;
}

.photo-tile span {
  opacity: 0.9;
}

.check-list,
#mediaSaleForm {
  display: grid;
  gap: 0.65rem;
}

.check-list label,
#mediaSaleForm label {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  min-height: 42px;
  padding: 0.55rem;
  background: #fafbfd;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.pos-panel {
  margin-top: 1rem;
}

.pos-location-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.pos-location-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.85rem;
  align-items: center;
  min-width: 0;
  padding: 0.85rem;
  background: #fafbfd;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.pos-location-card p {
  margin: 0.35rem 0;
  color: var(--muted);
}

.pos-location-card small {
  color: var(--muted);
}

.map-dialog {
  width: min(980px, calc(100vw - 2rem));
  padding: 0;
  background: transparent;
  border: 0;
}

.map-dialog::backdrop {
  background: rgba(23, 26, 52, 0.52);
}

.map-dialog-inner {
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(23, 26, 52, 0.28);
}

.map-dialog-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 0.85fr);
  gap: 1rem;
  align-items: stretch;
}

.geo-map {
  position: relative;
  min-height: 370px;
  overflow: hidden;
  cursor: crosshair;
  background:
    linear-gradient(135deg, rgba(0, 200, 203, 0.2) 0 42%, transparent 42% 100%),
    linear-gradient(150deg, transparent 0 28%, rgba(255, 163, 125, 0.24) 28% 50%, transparent 50% 100%),
    #f8fbfd;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.geo-map:focus-visible {
  outline: 3px solid rgba(0, 200, 203, 0.18);
}

.map-grid-line {
  position: absolute;
  background: rgba(26, 29, 90, 0.14);
}

.map-grid-line.horizontal {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.map-grid-line.vertical {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
}

.operation-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42%;
  aspect-ratio: 1;
  border: 2px dashed rgba(26, 29, 90, 0.32);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.map-pin {
  position: absolute;
  z-index: 2;
  width: 20px;
  height: 20px;
  background: var(--navy);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(26, 29, 90, 0.24);
  transform: translate(-50%, -50%);
}

.map-label {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  max-width: calc(100% - 1.5rem);
  padding: 0.45rem 0.55rem;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 850;
}

.dialog-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  max-width: min(380px, calc(100vw - 2rem));
  padding: 0.85rem 1rem;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(26, 29, 90, 0.22);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .auth-screen,
  .app-layout,
  .two-column,
  .gallery-layout,
  .commerce-layout,
  .map-dialog-grid {
    grid-template-columns: 1fr;
  }

  .side-nav,
  .cart-panel {
    position: static;
    height: auto;
  }

  .product-grid,
  .workflow-band,
  .public-product-grid,
  .pos-location-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .auth-hero {
    padding: 1.2rem;
  }

  .journey-preview,
  .public-search,
  .catalog-toolbar,
  .public-product-grid,
  .public-card,
  .cart-row,
  .checkout-actions,
  .pos-location-list,
  .pos-location-card,
  .three-column,
  .metric-grid,
  .product-grid,
  .photo-grid,
  .form-grid,
  .inline-grid,
  .workflow-band {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    margin: 0.8rem;
  }

  .app-topbar {
    grid-template-columns: auto 1fr;
  }

  .public-topbar {
    position: static;
    align-items: flex-start;
  }

  .public-topbar-logo {
    width: 160px;
  }

  .logged-menu {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .logged-menu {
    flex-wrap: nowrap;
  }

  .topbar-logo {
    width: 170px;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .session-chip {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: space-between;
  }

  .side-nav {
    display: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .side-nav.open {
    display: block;
  }

  .workspace {
    padding: 0.85rem;
  }

  .page-head {
    display: grid;
  }

  .field.compact {
    min-width: 0;
  }
}
