:root {
  --canvas: #f2f7fb;
  --surface: #ffffff;
  --surface-subtle: #f6f9fc;
  --ink: #161c23;
  --ink-soft: #64707c;
  --line: #dce4eb;
  --line-strong: #c8d3dc;
  --accent: #078df3;
  --accent-hover: #0078d7;
  --accent-soft: #e7f4ff;
  --success: #16794a;
  --success-soft: #e7f6ee;
  --danger: #b53a36;
  --danger-soft: #fff0ef;
  --info: #3267a8;
  --info-soft: #edf4ff;
  --sidebar: #ffffff;
  --sidebar-soft: #eef7ff;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgb(14 36 56 / 5%), 0 7px 22px rgb(14 36 56 / 5%);
  --shadow-lg: 0 22px 60px rgb(14 36 56 / 20%);
  --sidebar-width: 248px;
  --mobile-nav-height: 72px;
  --test-banner-height: 54px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
  scroll-behavior: smooth;
}

html.has-overlay,
html.has-overlay body {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.test-environment-banner {
  position: sticky;
  z-index: 10000;
  top: 0;
  display: flex;
  height: var(--test-banner-height);
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 3px solid #7f1d1d;
  background: #dc2626;
  box-shadow: 0 5px 18px rgb(127 29 29 / 28%);
  color: #fff;
  text-align: center;
}

.test-environment-banner strong {
  font-size: 15px;
  font-weight: 950;
  letter-spacing: .08em;
}

.test-environment-banner span {
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 620px) {
  .test-environment-banner {
    display: grid;
    gap: 1px;
  }

  .test-environment-banner span {
    font-size: 11px;
  }
}

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

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

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

button {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.icon {
  display: block;
  flex: 0 0 auto;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 78%, white);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: none;
  width: var(--sidebar-width);
  padding: 22px 16px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  color: var(--ink);
}

.has-test-environment-banner .sidebar {
  top: var(--test-banner-height);
}

.brand {
  display: flex;
  align-items: center;
  min-height: 52px;
  gap: 12px;
  padding: 0 6px;
}

.brand__mark {
  display: grid;
  width: 58px;
  height: 48px;
  place-items: center;
  align-content: center;
  gap: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--accent);
  line-height: 1;
}

.brand__mark img {
  display: block;
  width: 48px;
  height: 48px;
}

.brand__mark strong {
  font-size: 25px;
  font-weight: 950;
  letter-spacing: -.1em;
}

.brand__mark small {
  margin-top: 1px;
  font-size: 5px;
  font-weight: 950;
  letter-spacing: .02em;
}

.brand__text {
  display: grid;
  line-height: 1.2;
}

.brand__text strong {
  font-size: 16px;
}

.brand__text small {
  margin-top: 3px;
  color: #7a8792;
  font-size: 12px;
}

.sidebar__nav {
  display: grid;
  gap: 6px;
  margin-top: 38px;
}

.nav-label {
  margin: 0 12px 7px;
  color: #8a97a2;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 13px;
  padding: 0 13px;
  border-radius: 12px;
  color: #53616d;
  font-size: 14px;
  font-weight: 680;
  transition: background .15s ease, color .15s ease;
}

.nav-item__badge {
  display: inline-grid;
  min-width: 23px;
  height: 23px;
  margin-left: auto;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  background: #e3edf5;
  color: var(--accent-hover);
  font-size: 10px;
  font-weight: 850;
}

.nav-item.is-active .nav-item__badge {
  background: rgb(255 255 255 / 20%);
  color: #fff;
}

.nav-item:hover {
  background: var(--sidebar-soft);
  color: var(--accent-hover);
}

.nav-item.is-active {
  background: var(--accent);
  color: #fff;
}

.sidebar__footer {
  position: absolute;
  right: 16px;
  bottom: 18px;
  left: 16px;
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-subtle);
}

.profile-chip__avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 800;
}

.profile-chip__body {
  display: grid;
  min-width: 0;
}

.profile-chip__body strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-chip__body small {
  color: #7a8792;
  font-size: 10px;
}

.profile-chip--button {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.profile-chip--button > .icon {
  margin-left: auto;
  color: var(--ink-soft);
}

.app-frame {
  min-height: 100vh;
  padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 82px);
}

.app-shell--guest .app-frame {
  margin-left: 0;
  padding-bottom: 0;
}

.login-page {
  display: grid;
  min-height: calc(100vh - 40px);
  place-items: center;
  padding: 20px 0;
}

.login-card {
  width: min(100%, 450px);
  padding: clamp(22px, 6vw, 34px);
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 20px 55px rgb(23 29 24 / 12%);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-brand__mark {
  display: grid;
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 15px;
  background: var(--accent);
  color: #fff;
  line-height: 1;
}

.login-brand__mark img {
  display: block;
  width: 66px;
  height: 66px;
}

.login-brand__mark strong {
  align-self: end;
  font-size: 25px;
}

.login-brand__mark small {
  align-self: start;
  margin-top: 4px;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: .06em;
}

.login-brand__eyebrow {
  margin-bottom: 4px;
  color: var(--accent-hover);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.login-brand h1 {
  margin: 0;
  font-size: clamp(28px, 8vw, 38px);
  letter-spacing: -.04em;
}

.login-card__lead {
  margin: 18px 0 20px;
  color: var(--ink-soft);
  font-size: 13px;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form .button {
  margin-top: 2px;
}

.login-error,
.login-security-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 18px;
  padding: 12px;
  border-radius: 11px;
  font-size: 12px;
  line-height: 1.5;
}

.login-error {
  border: 1px solid #efc1bf;
  background: var(--danger-soft);
  color: var(--danger);
}

.login-security-note {
  margin: 20px 0 0;
  background: var(--accent-soft);
  color: #315b78;
}

.login-error .icon,
.login-security-note .icon {
  flex: 0 0 auto;
  margin-top: 1px;
}

.login-security-note p {
  margin: 0;
}

.logout-form {
  margin: 0;
}

.logout-button {
  display: inline-flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #6d7881;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.logout-button:hover {
  background: var(--surface-subtle);
  color: var(--ink);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  min-height: 76px;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 4px solid var(--accent);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(12px);
}

.has-test-environment-banner .topbar {
  top: var(--test-banner-height);
}

.topbar__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.topbar__brand {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.topbar__brand img {
  display: block;
  width: 40px;
  height: 40px;
}

.topbar__title {
  min-width: 0;
  overflow: hidden;
}

.topbar__eyebrow {
  display: block;
  overflow: hidden;
  margin-bottom: 2px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.topbar h1 {
  overflow: hidden;
  margin: 0;
  font-size: 20px;
  font-weight: 790;
  letter-spacing: -.025em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.topbar__feature-status {
  display: inline-flex;
  flex: 0 0 auto;
}

.user-switcher-button {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.user-switcher-button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.user-switcher-button__avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 10px;
  font-weight: 850;
}

.user-switcher-button__body,
.user-switcher-button > .icon {
  display: none;
}

.preview-mode-bar {
  position: sticky;
  z-index: 19;
  top: 76px;
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 7px 18px;
  border: 0;
  border-bottom: 1px solid #b9dcf8;
  background: #e9f6ff;
  color: #1b5f90;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.preview-mode-bar > .icon:last-child {
  margin-left: auto;
}

.preview-mode-bar[hidden],
[data-permission-module][hidden],
[data-manager-only][hidden],
[data-admin-only][hidden],
[data-operational-money][hidden] {
  display: none !important;
}

html[data-preview-role="worker"] [data-operational-money] {
  display: none !important;
}

.topbar__actions > .button {
  display: none;
}

.icon-button {
  display: inline-grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-subtle);
}

.app-main {
  width: min(100%, 1260px);
  margin: 0 auto;
  padding: 20px 16px 34px;
}

.page-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 2px 24px;
}

.page-intro__eyebrow,
.section-heading__eyebrow {
  margin-bottom: 7px;
  color: var(--accent-hover);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.page-intro h2 {
  margin-bottom: 7px;
  font-size: clamp(27px, 7vw, 42px);
  font-weight: 830;
  letter-spacing: -.045em;
  line-height: 1.06;
}

.page-intro p:last-child {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.page-intro__desktop-action {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 760;
  line-height: 1;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}

.button:active {
  transform: translateY(1px);
}

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

.button--primary:hover {
  background: var(--accent-hover);
}

.button--secondary {
  border-color: var(--line-strong);
  background: var(--surface);
}

.feature-action--real.button--primary {
  background: linear-gradient(135deg, #078df3, #006fd0);
  border-color: #078df3;
}

.feature-action--demo.button--primary {
  background: linear-gradient(135deg, #6d3b89, #8d55aa);
  border-color: #6d3b89;
}

.button--wide {
  width: 100%;
}

.module-section {
  margin-top: 4px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -.025em;
}

.section-heading__count {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.module-grid {
  display: grid;
  gap: 10px;
}

.module-tile {
  display: flex;
  min-height: 104px;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 4px solid #b7c3cc;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

a.module-tile:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgb(23 29 24 / 8%);
  transform: translateY(-1px);
}

.module-tile--disabled {
  border-top-color: #c9d2d9;
  box-shadow: none;
  color: #697068;
}

a.module-tile {
  border-top-color: var(--accent);
}

.module-tile__icon,
.catalog-callout__icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

.module-tile--disabled .module-tile__icon {
  background: #f0f2ee;
  color: #777f75;
}

.module-tile__body {
  min-width: 0;
  flex: 1;
}

.module-tile__title-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.module-tile__title {
  overflow: hidden;
  margin: 0;
  font-size: 16px;
  font-weight: 780;
  letter-spacing: -.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-tile__description {
  display: -webkit-box;
  overflow: hidden;
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.module-tile__arrow {
  color: #8d948b;
}

.badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef0ec;
  color: #60675e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
}

.badge--success {
  background: var(--success-soft);
  color: var(--success);
}

.catalog-callout {
  display: flex;
  min-height: 86px;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 52%);
}

.catalog-callout:hover {
  border-style: solid;
  background: var(--surface);
}

.catalog-callout__body {
  display: grid;
  min-width: 0;
  flex: 1;
}

.catalog-callout__body strong {
  font-size: 14px;
}

.catalog-callout__body span {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-primary-action {
  position: fixed;
  z-index: 18;
  right: 12px;
  bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 10px);
  left: 12px;
  padding: 6px;
  border: 1px solid rgb(220 228 235 / 94%);
  border-radius: 17px;
  background: rgb(255 255 255 / 90%);
  box-shadow: 0 10px 34px rgb(20 27 21 / 16%);
  backdrop-filter: blur(12px);
}

.mobile-nav {
  position: fixed;
  z-index: 25;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  min-height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
  grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
  padding: 7px 6px max(7px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(14px);
}

.mobile-nav__item {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 55px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #687067;
  font-size: 10px;
  font-weight: 720;
  cursor: pointer;
}

.mobile-nav__badge {
  position: absolute;
  top: 2px;
  left: calc(50% + 8px);
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
}

.mobile-nav__item.is-active {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.drawer-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  background: rgb(15 20 16 / 54%);
  opacity: 0;
  transition: opacity .22s ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
}

.mobile-drawer {
  position: fixed;
  z-index: 90;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  max-height: min(85vh, 760px);
  max-height: min(85dvh, 760px);
  overflow: hidden;
  padding: 8px 16px 0;
  border-radius: 24px 24px 0 0;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateY(105%);
  transition: transform .22s ease;
}

.mobile-drawer.is-open {
  transform: translateY(0);
}

.mobile-drawer__handle {
  flex-shrink: 0;
  width: 44px;
  height: 5px;
  margin: 2px auto 14px;
  border-radius: 999px;
  background: #d4d9d1;
}

.mobile-drawer__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mobile-drawer__header h2 {
  margin: 0;
  font-size: 21px;
}

.mobile-drawer__list {
  display: grid;
  gap: 5px;
  overflow-y: auto;
  min-height: 0;
  flex: 1 1 auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(22px + env(safe-area-inset-bottom));
  margin-top: 17px;
}

.drawer-link {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 13px;
  padding: 0 14px;
  border-radius: 13px;
  background: var(--surface-subtle);
  font-weight: 690;
}

.toast-region {
  position: fixed;
  z-index: 120;
  top: 12px;
  right: 12px;
  left: 12px;
  display: grid;
  justify-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  width: min(100%, 440px);
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border: 1px solid #343b33;
  border-radius: 14px;
  background: #20251f;
  box-shadow: var(--shadow-lg);
  color: white;
  font-size: 14px;
  font-weight: 650;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .2s ease, transform .2s ease;
}

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

.toast__dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #57b4ff;
}

.empty-page {
  display: grid;
  min-height: 58vh;
  place-items: center;
  align-content: center;
  padding: 24px;
  text-align: center;
}

.empty-page__icon {
  display: grid;
  width: 70px;
  height: 70px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent);
}

.empty-page h2 {
  margin-bottom: 6px;
  font-size: 25px;
}

.empty-page p {
  max-width: 390px;
  margin-bottom: 20px;
  color: var(--ink-soft);
}

@media (min-width: 680px) {
  .app-main {
    padding: 28px 26px 44px;
  }

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

  .user-switcher-button {
    width: auto;
    min-width: 176px;
    justify-content: flex-start;
    padding: 0 10px;
  }

  .user-switcher-button__body {
    display: grid;
    min-width: 0;
    flex: 1;
    text-align: left;
  }

  .user-switcher-button__body strong,
  .user-switcher-button__body small {
    overflow: hidden;
    max-width: 124px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .user-switcher-button__body strong {
    font-size: 11px;
  }

  .user-switcher-button__body small {
    color: var(--ink-soft);
    font-size: 9px;
  }

  .user-switcher-button > .icon {
    display: block;
    color: var(--ink-soft);
  }
}

@media (min-width: 960px) {
  .sidebar {
    display: block;
  }

  .app-frame {
    margin-left: var(--sidebar-width);
    padding-bottom: 0;
  }

  .topbar {
    min-height: 88px;
    padding: 16px 34px;
  }

  .topbar h1 {
    font-size: 23px;
  }

  .preview-mode-bar {
    top: 88px;
    padding-right: 34px;
    padding-left: 34px;
  }

  .topbar__actions > .button {
    display: inline-flex;
  }

  .app-main {
    padding: 36px 34px 58px;
  }

  .page-intro {
    padding: 14px 2px 34px;
  }

  .module-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .module-tile {
    min-height: 155px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 19px;
  }

  .module-tile__body {
    width: calc(100% - 64px);
  }

  .module-tile__arrow {
    margin-left: auto;
  }

  .catalog-callout {
    margin-top: 18px;
  }

  .mobile-nav,
  .mobile-primary-action,
  .mobile-drawer,
  .drawer-backdrop {
    display: none !important;
  }

  .toast-region {
    right: 24px;
    left: auto;
    justify-items: end;
  }
}

.topbar__search {
  display: inline-flex;
  flex-shrink: 0;
}

@media (max-width: 430px) {
  .topbar {
    gap: 8px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .topbar__identity {
    gap: 7px;
  }

  .topbar__brand {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .topbar__brand img {
    width: 34px;
    height: 34px;
  }
}

@media (min-width: 1240px) {
  .module-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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