:root {
  --brand-orange: #ff6b00;
  --brand-orange-dark: #e85f00;
  --brand-orange-darker: #cc5200;
  --brand-graphite: #171a1f;
  --brand-steel: #2c3440;
  --brand-concrete: #f5f2ec;
  --brand-sand: #e8ded0;
  --brand-success: #19a974;
  --brand-success-dark: #12845b;
  --brand-orange-tint: rgba(255, 107, 0, 0.16);
  --brand-success-tint: rgba(25, 169, 116, 0.14);

  --app-bg: var(--brand-concrete);
  --app-surface: #ffffff;
  --app-surface-muted: #fbf8f3;
  --app-border: var(--brand-sand);
  --app-border-strong: #d8cbbb;
  --app-ink: var(--brand-graphite);
  --app-muted: var(--brand-steel);
  --app-sidebar: var(--brand-graphite);
  --app-sidebar-strong: var(--brand-steel);
  --app-sidebar-line: rgba(232, 222, 208, 0.18);
  --app-sidebar-text: #ffffff;
  --app-sidebar-muted: rgba(255, 255, 255, 0.72);
  --app-orange: var(--brand-orange);
  --app-orange-dark: var(--brand-orange-dark);
  --app-orange-darker: var(--brand-orange-darker);
  --app-sidebar-width: 11.75rem;
  --app-tabs-height: 2.55rem;
  --font-title: "Manrope", Inter, Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

html,
body {
  min-height: 100%;
}

body {
  background: var(--app-bg);
  color: var(--app-ink);
  font-family: var(--font-body);
  font-size: 0.925rem;
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: var(--font-title);
  font-weight: 800;
  letter-spacing: 0;
}

code,
kbd,
pre,
samp,
.font-monospace {
  font-family: var(--font-mono);
}

a {
  color: var(--brand-graphite);
}

a:hover {
  color: var(--brand-orange-dark);
}

.btn-primary {
  --bs-btn-bg: var(--app-orange);
  --bs-btn-border-color: var(--app-orange);
  --bs-btn-hover-bg: var(--app-orange-dark);
  --bs-btn-hover-border-color: var(--app-orange-dark);
  --bs-btn-active-bg: var(--app-orange-darker);
  --bs-btn-active-border-color: var(--app-orange-darker);
  --bs-btn-disabled-bg: #d99a65;
  --bs-btn-disabled-border-color: #d99a65;
  font-family: var(--font-body);
  font-weight: 700;
}

.btn-success {
  --bs-btn-bg: var(--brand-success);
  --bs-btn-border-color: var(--brand-success);
  --bs-btn-hover-bg: var(--brand-success-dark);
  --bs-btn-hover-border-color: var(--brand-success-dark);
  --bs-btn-active-bg: var(--brand-success-dark);
  --bs-btn-active-border-color: var(--brand-success-dark);
  font-weight: 700;
}

.btn-outline-primary {
  --bs-btn-color: var(--app-orange-dark);
  --bs-btn-border-color: var(--app-orange);
  --bs-btn-hover-bg: var(--app-orange);
  --bs-btn-hover-border-color: var(--app-orange);
  --bs-btn-active-bg: var(--app-orange-dark);
  --bs-btn-active-border-color: var(--app-orange-dark);
  font-family: var(--font-body);
  font-weight: 700;
}

.form-control,
.form-select,
.btn,
.badge,
.alert {
  border-radius: 0.375rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 0.18rem rgba(255, 107, 0, 0.2);
}

:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.app-sidebar {
  background: linear-gradient(180deg, var(--app-sidebar), var(--app-sidebar-strong));
  color: var(--app-sidebar-text);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-height: 100vh;
  padding: 1rem 0.8rem;
}

.app-brand {
  color: inherit;
  text-decoration: none;
}

.app-brand:hover {
  color: inherit;
}

.app-sidebar .app-brand {
  display: grid;
  gap: 0.15rem;
  padding: 0.35rem 0 0.55rem;
}

.app-brand-kicker {
  color: var(--app-sidebar-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.app-sidebar .app-brand strong {
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}

.app-sidebar .app-brand small {
  color: var(--app-sidebar-muted);
  font-size: 0.76rem;
  line-height: 1.25;
}

.app-brand-logo {
  background: #ffffff;
  border-radius: 0.45rem;
  display: block;
  max-width: 9.4rem;
  padding: 0.35rem 0.45rem;
  width: 100%;
}

.app-brand-mark {
  align-items: center;
  background: var(--app-orange);
  border-radius: 0.45rem;
  color: #ffffff;
  display: inline-flex;
  font-weight: 800;
  height: 2.15rem;
  justify-content: center;
  width: 2.15rem;
}

.auth-panel .app-brand {
  align-items: center;
  color: var(--app-ink);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth-brand-logo {
  display: block;
  max-width: 11rem;
  width: 100%;
}

.auth-panel .app-brand small {
  color: var(--app-muted);
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-sidebar-nav {
  display: grid;
  gap: 0.54rem;
}

.app-sidebar-link {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--app-sidebar-line);
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 800;
  gap: 0.45rem;
  line-height: 1.1;
  min-height: 3.45rem;
  min-width: 0;
  padding: 0.58rem 0.45rem;
  text-decoration: none;
}

.app-sidebar-link > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-sidebar-link:hover,
.app-sidebar-link.active {
  background: rgba(255, 107, 0, 0.16);
  border-color: rgba(255, 107, 0, 0.45);
  color: #ffffff;
}

.app-sidebar-link.active {
  box-shadow: inset 4px 0 0 var(--brand-orange);
}

.app-sidebar-link.disabled {
  color: rgba(255, 255, 255, 0.42);
}

.app-sidebar-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--app-sidebar-line);
  border-radius: 0.45rem;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  height: 1.82rem;
  justify-content: center;
  width: 1.82rem;
}

.app-sidebar-link.active .app-sidebar-icon {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
}

.app-sidebar-footer {
  border-top: 1px solid var(--app-sidebar-line);
  display: grid;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 1rem;
}

.app-sidebar-user {
  display: grid;
  gap: 0.1rem;
}

.app-sidebar-user span {
  font-family: var(--font-title);
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-sidebar-user small {
  color: var(--app-sidebar-muted);
  font-size: 0.76rem;
}

.app-sidebar-logout {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--app-sidebar-line);
  border-radius: 0.5rem;
  color: var(--app-sidebar-text);
  font-family: var(--font-body);
  font-weight: 800;
  min-height: 2.65rem;
  padding: 0.45rem 0.75rem;
  text-align: left;
  width: 100%;
}

.app-sidebar-logout:hover {
  background: rgba(255, 107, 0, 0.16);
  border-color: rgba(255, 107, 0, 0.45);
  color: #ffffff;
}

.app-main {
  display: grid;
  grid-template-rows: var(--app-tabs-height) minmax(0, 1fr);
  min-width: 0;
}

.workspace-tab-strip {
  align-items: flex-end;
  background: var(--brand-sand);
  border-bottom: 1px solid var(--app-border);
  display: flex;
  gap: 0.55rem;
  min-width: 0;
  overflow: visible;
  padding: 0.35rem 0.75rem 0;
  position: relative;
  z-index: 20;
}

.workspace-tab-strip[data-workspace-tabs-hydrating="true"] .workspace-tabs-viewport,
.workspace-tab-strip[data-workspace-tabs-hydrating="true"] .workspace-tab-add,
.workspace-tab-strip[data-workspace-tabs-hydrating="true"] .workspace-favorite-form,
.workspace-tab-strip[data-workspace-tabs-hydrating="true"] .system-notifications,
.workspace-tab-strip[data-workspace-tabs-hydrating="true"] .workspace-tab-overflow {
  pointer-events: none;
  visibility: hidden;
}

.workspace-tabs-viewport {
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

.workspace-tabs {
  align-items: flex-end;
  display: flex;
  gap: 0.35rem;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  width: 100%;
}

.workspace-tab-overflow {
  flex: 0 0 12rem;
  height: 2.1rem;
  margin-bottom: 0.18rem;
  max-width: 12rem;
}

.workspace-tab-overflow[hidden] {
  display: none;
}

.workspace-tab-item {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 0;
  position: relative;
}

.workspace-tab-item.dirty .workspace-tab-label::before {
  color: var(--brand-orange-dark);
  content: "* ";
  font-family: var(--font-mono);
}

.workspace-tab-item.dragging {
  opacity: 0.55;
}

.workspace-tab-item.drop-before::before,
.workspace-tab-item.drop-after::after {
  background: var(--brand-orange);
  border-radius: 999px;
  content: "";
  height: 1.75rem;
  position: absolute;
  top: 0.28rem;
  width: 0.18rem;
  z-index: 2;
}

.workspace-tab-item.drop-before::before {
  left: -0.24rem;
}

.workspace-tab-item.drop-after::after {
  right: -0.24rem;
}

.workspace-tab {
  align-items: center;
  background: #f1e9de;
  border: 1px solid var(--app-border);
  border-bottom: 0;
  border-radius: 0.45rem 0.45rem 0 0;
  color: var(--brand-steel);
  display: inline-flex;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  height: 2.18rem;
  max-width: 12rem;
  min-width: 6.4rem;
  padding: 0 1.9rem 0 0.7rem;
  text-decoration: none;
  user-select: none;
}

.workspace-tab.active {
  background: var(--app-surface);
  border-color: var(--app-border-strong);
  box-shadow: inset 0 3px 0 var(--brand-orange);
  color: var(--app-ink);
}

.workspace-tab-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-tab-close {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: #6a7484;
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  height: 1.35rem;
  justify-content: center;
  position: absolute;
  right: 0.28rem;
  top: 0.38rem;
  width: 1.35rem;
}

.workspace-tab-close:hover {
  background: var(--brand-orange-tint);
  color: var(--brand-graphite);
}

.workspace-tab-add {
  align-items: center;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 0.45rem;
  color: var(--brand-graphite);
  display: inline-flex;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  height: 2.1rem;
  justify-content: center;
  margin-bottom: 0.18rem;
  text-decoration: none;
  width: 2.1rem;
}

.workspace-tab-add:hover {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #ffffff;
}

.workspace-favorite-form {
  flex: 0 0 auto;
  margin-bottom: 0.18rem;
}

.workspace-favorite-toggle {
  align-items: center;
  background: #f1e9de;
  border: 1px solid var(--app-border);
  border-radius: 0.45rem;
  color: var(--brand-steel);
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 1.02rem;
  font-weight: 700;
  height: 2.1rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 2.1rem;
}

.workspace-favorite-toggle:hover,
.workspace-favorite-toggle:focus-visible {
  background: var(--brand-orange-tint);
  border-color: var(--brand-orange);
  color: var(--brand-graphite);
}

.workspace-favorite-toggle.active {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #ffffff;
}

.system-notifications {
  flex: 0 0 auto;
  margin-bottom: 0.18rem;
  position: relative;
}

.system-notifications-toggle {
  align-items: center;
  background: #f1e9de;
  border: 1px solid var(--app-border);
  border-radius: 0.45rem;
  color: var(--brand-steel);
  display: inline-flex;
  height: 2.1rem;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 2.1rem;
}

.system-notifications-toggle:hover,
.system-notifications-toggle:focus-visible,
.system-notifications-toggle.show {
  background: var(--brand-orange-tint);
  border-color: var(--brand-orange);
  color: var(--brand-graphite);
}

.system-notifications-icon {
  fill: currentColor;
  height: 1.2rem;
  width: 1.2rem;
}

.system-notifications-badge {
  align-items: center;
  background: var(--brand-orange);
  border: 2px solid var(--brand-sand);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  min-width: 1.1rem;
  padding: 0.12rem 0.25rem;
  position: absolute;
  right: -0.34rem;
  top: -0.34rem;
}

.system-notifications-panel {
  border: 1px solid var(--app-border-strong);
  border-radius: 0.5rem;
  box-shadow: 0 1rem 2.5rem rgba(23, 26, 31, 0.18);
  min-width: min(22rem, calc(100vw - 1.5rem));
  padding: 0;
  z-index: 1080;
}

.system-notifications-header {
  align-items: center;
  background: var(--app-surface-muted);
  border-bottom: 1px solid var(--app-border);
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
}

.system-notifications-header strong,
.system-notification-title {
  display: block;
  font-family: var(--font-title);
  font-weight: 800;
}

.system-notifications-header small {
  color: var(--app-muted);
  display: block;
  font-size: 0.74rem;
}

.system-notifications-clear {
  background: transparent;
  border: 0;
  border-radius: 0.35rem;
  color: var(--brand-orange-dark);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.28rem 0.4rem;
  white-space: nowrap;
}

.system-notifications-clear:hover,
.system-notifications-clear:focus-visible {
  background: var(--brand-orange-tint);
  color: var(--brand-graphite);
}

.system-notifications-list {
  max-height: min(26rem, calc(100vh - 7rem));
  overflow-y: auto;
}

.system-notification-form {
  margin: 0;
}

.system-notification-item {
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--app-border);
  border-left: 0.22rem solid var(--brand-orange);
  color: var(--app-ink);
  display: grid;
  gap: 0.18rem;
  padding: 0.72rem 0.85rem;
  text-align: left;
  width: 100%;
}

.system-notification-item:hover,
.system-notification-item:focus-visible {
  background: rgba(255, 107, 0, 0.08);
}

.system-notification-item.level-success {
  border-left-color: var(--brand-success);
}

.system-notification-item.level-warning {
  border-left-color: #d98c00;
}

.system-notification-item.level-danger {
  border-left-color: #c03221;
}

.system-notification-title {
  font-size: 0.88rem;
  line-height: 1.2;
}

.system-notification-message {
  color: var(--app-muted);
  display: block;
  font-size: 0.8rem;
  line-height: 1.35;
}

.system-notification-meta {
  color: #6a7484;
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
}

.system-notifications-empty {
  color: var(--app-muted);
  margin: 0;
  padding: 1rem;
  text-align: center;
}

.app-content {
  min-width: 0;
  overflow: auto;
  padding: 1.35rem;
}

.app-page-title-row {
  align-items: center;
  display: flex;
  gap: 0.72rem;
  min-width: 0;
}

.app-page-title-row h1 {
  min-width: 0;
}

.app-page-title-row .workspace-favorite-form {
  margin-bottom: 0;
}

.app-page-back {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0.45rem;
  color: var(--brand-graphite);
  display: inline-flex;
  flex: 0 0 auto;
  height: 2.35rem;
  justify-content: center;
  text-decoration: none;
  width: 2.35rem;
}

.app-page-back-icon {
  background-color: currentColor;
  display: block;
  height: 2rem;
  mask: url("../img/ui/mundoloc-back-arrow.c9d8a18f9ecd.png") center / contain no-repeat;
  width: 2rem;
  -webkit-mask: url("../img/ui/mundoloc-back-arrow.c9d8a18f9ecd.png") center / contain no-repeat;
}

.app-page-back:hover,
.app-page-back:focus-visible {
  background: var(--brand-orange-tint);
  color: var(--brand-graphite);
}

.home-empty {
  min-height: calc(100vh - var(--app-tabs-height) - 2.7rem);
}

.home-menu-panel {
  max-width: 68rem;
}

.home-menu-heading {
  margin-bottom: 1rem;
}

.home-menu-heading h1 {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 0.25rem;
}

.home-menu-heading p {
  color: var(--app-muted);
  margin: 0;
}

.home-submenu-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
}

.home-favorite-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
}

.home-submenu-card {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 0.5rem;
  color: var(--app-ink);
  display: grid;
  gap: 0.25rem;
  min-height: 5.35rem;
  padding: 0.9rem;
  text-decoration: none;
}

.home-submenu-card:hover {
  border-color: var(--brand-orange);
  color: var(--app-ink);
  box-shadow: 0 0.6rem 1.35rem rgba(55, 55, 55, 0.08);
}

.home-submenu-card.disabled {
  color: var(--app-muted);
  opacity: 0.7;
}

.home-submenu-card strong {
  font-family: var(--font-title);
  font-size: 0.96rem;
  font-weight: 800;
}

.home-submenu-card small {
  color: var(--app-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}

.home-favorite-card {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 0.5rem;
  color: var(--app-ink);
  display: grid;
  gap: 0.25rem;
  min-height: 5.35rem;
  padding: 0.9rem 0.9rem 0.9rem 2.55rem;
  position: relative;
  text-decoration: none;
}

.home-favorite-card::before {
  color: var(--brand-orange);
  content: "\2605";
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  left: 0.9rem;
  position: absolute;
  top: 0.95rem;
}

.home-favorite-card:hover {
  border-color: var(--brand-orange);
  color: var(--app-ink);
  box-shadow: 0 0.6rem 1.35rem rgba(55, 55, 55, 0.08);
}

.home-favorite-card strong {
  font-family: var(--font-title);
  font-size: 0.96rem;
  font-weight: 800;
}

.home-favorite-card small {
  color: var(--app-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}

.queue-tile,
.work-panel,
.auth-panel {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 0.5rem;
}

.queue-tile {
  display: grid;
  gap: 0.65rem;
  min-height: 8.25rem;
  padding: 0.9rem;
}

.queue-tile strong {
  display: block;
  font-family: var(--font-title);
  font-size: 0.98rem;
  font-weight: 800;
}

.queue-tile small {
  color: var(--app-muted);
}

.queue-list {
  --bs-list-group-bg: transparent;
  --bs-list-group-border-color: var(--app-border);
  font-size: 0.86rem;
}

.list-group-item.active {
  background-color: var(--brand-orange);
  border-color: var(--brand-orange);
}

.text-bg-success {
  background-color: var(--brand-success) !important;
}

.alert-success {
  --bs-alert-color: var(--brand-graphite);
  --bs-alert-bg: var(--brand-success-tint);
  --bs-alert-border-color: rgba(25, 169, 116, 0.35);
}

.work-panel {
  padding: 0.9rem;
}

.table {
  --bs-table-hover-bg: rgba(255, 107, 0, 0.08);
  font-family: var(--font-body);
  font-size: 0.875rem;
}

.table thead th {
  background: var(--app-surface-muted);
  border-bottom-color: var(--app-border-strong);
  color: var(--brand-graphite);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.table-sort-link {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 0.28rem;
  min-height: 1.5rem;
  text-decoration: none;
}

.table-sort-link:hover,
.table-sort-link.active {
  color: var(--brand-orange-dark);
}

.table-sort-link span {
  display: inline-block;
  min-width: 0.7rem;
}

.badge {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0;
}

.form-label,
.form-check-label {
  font-family: var(--font-body);
  font-weight: 600;
}

.table > :not(caption) > * > * {
  padding: 0.58rem 0.65rem;
}

.auth-page {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 107, 0, 0.1), transparent 36%),
    var(--brand-concrete);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 1.25rem;
}

.auth-panel {
  box-shadow: 0 1.4rem 3rem rgba(55, 55, 55, 0.08);
  max-width: 26rem;
  padding: 1.5rem;
  width: 100%;
}

.customer-intake-page {
  background:
    linear-gradient(90deg, rgba(255, 107, 0, 0.08), rgba(255, 255, 255, 0) 36%),
    linear-gradient(180deg, #ffffff 0%, #f8f4ed 100%);
  color: var(--brand-graphite);
}

.customer-intake-shell {
  align-items: center;
  display: grid;
  justify-items: center;
  min-height: 100svh;
  padding: 1.5rem;
}

.customer-intake-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(216, 203, 187, 0.52);
  border-radius: 0.5rem;
  box-shadow: 0 1.5rem 4rem rgba(23, 26, 31, 0.09);
  max-width: 31.25rem;
  padding: 1.35rem;
  width: 100%;
}

.customer-intake-card,
.customer-intake-card * {
  box-sizing: border-box;
}

.customer-intake-brand {
  align-items: center;
  display: grid;
  gap: 1rem;
  justify-items: center;
  margin-bottom: 1rem;
  text-align: center;
}

.customer-intake-logo {
  height: auto;
  max-width: 14.5rem;
  width: 62%;
}

.customer-intake-card h1,
.customer-intake-card h2 {
  color: var(--brand-graphite);
  font-size: 1.55rem;
  font-weight: 750;
  line-height: 1.15;
  margin: 0 0 0.65rem;
  text-align: center;
}

.customer-intake-step {
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
}

.customer-intake-step[hidden] {
  display: none !important;
}

.customer-intake-page .d-none {
  display: none !important;
}

.customer-intake-page .visually-hidden {
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
}

.customer-intake-step + .customer-intake-step {
  margin-top: 1.4rem;
}

.customer-intake-card[data-js-ready="true"] .customer-intake-step + .customer-intake-step {
  margin-top: 0;
}

.customer-intake-step-subtitle {
  font-size: 1.05rem;
  margin: -0.35rem 0 0.2rem;
  text-align: center;
}

.customer-intake-success-message {
  color: rgba(44, 52, 64, 0.76);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.45;
  margin: -0.2rem 0 0;
  text-align: center;
}

.customer-intake-field {
  min-width: 0;
}

.customer-intake-card [data-customer-fields] {
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
}

.customer-intake-card .form-control,
.customer-intake-card .form-select {
  background-color: rgba(255, 255, 255, 0.94);
  border: 1px solid #c9c4bc;
  border-radius: 0.35rem;
  color: var(--brand-graphite);
  font-size: 0.98rem;
  font-weight: 650;
  min-height: 3rem;
  padding: 0.55rem 0.72rem;
  width: 100%;
}

.customer-intake-card textarea.form-control {
  min-height: 5.8rem;
}

.customer-intake-card .form-control::placeholder {
  color: rgba(44, 52, 64, 0.46);
  font-weight: 650;
}

.customer-intake-card .form-control:focus,
.customer-intake-card .form-select:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 0, 0.16);
}

.customer-intake-radio-group {
  display: grid;
  gap: 0.45rem;
  margin: 1.15rem 0 1.55rem;
  padding-left: 2.35rem;
}

.customer-intake-radio {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  gap: 0.55rem;
  font-size: 0.98rem;
  font-weight: 700;
}

.customer-intake-radio input {
  accent-color: var(--brand-orange);
  height: 1rem;
  width: 1rem;
}

.customer-intake-actions {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 0.25rem;
}

.customer-intake-actions-single {
  grid-template-columns: 1fr;
}

.customer-intake-button {
  align-items: center;
  border: 0;
  border-radius: 0.35rem;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0;
  min-height: 3.2rem;
  padding: 0.62rem 0.95rem;
  text-decoration: none;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease,
    background-color 160ms ease;
}

.customer-intake-button:hover {
  box-shadow: 0 0.75rem 1.45rem rgba(23, 26, 31, 0.12);
  transform: translateY(-1px);
}

.customer-intake-button:focus-visible {
  outline: 0.18rem solid rgba(255, 107, 0, 0.35);
  outline-offset: 0.12rem;
}

.customer-intake-button-primary {
  background: var(--brand-orange);
  color: #ffffff;
}

.customer-intake-button-primary:hover,
.customer-intake-button-primary:disabled {
  background: var(--brand-orange-dark);
  color: #ffffff;
}

.customer-intake-button-back {
  background: var(--brand-graphite);
  color: #ffffff;
}

.customer-intake-button-back:hover {
  background: var(--brand-steel);
  color: #ffffff;
}

.customer-intake-lookup {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(0, 1fr) 9.8rem;
}

.customer-intake-button-lookup {
  min-height: 3rem;
}

.customer-intake-lookup-message {
  color: var(--brand-success-dark);
  font-size: 0.82rem;
  font-weight: 700;
  min-height: 1rem;
}

.customer-intake-lookup-message.is-error {
  color: #b42318;
}

.customer-intake-row {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(5.4rem, 0.38fr) minmax(0, 1fr);
}

.customer-intake-checkbox {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
  font-size: 0.96rem;
  font-weight: 700;
  margin: 0.05rem 0 0.3rem;
}

.customer-intake-checkbox input {
  accent-color: var(--brand-orange);
}

.customer-intake-inline-worksite {
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
  margin-top: 0.35rem;
}

.customer-intake-inline-worksite[hidden] {
  display: none !important;
}

.customer-intake-inline-worksite h2 {
  margin-top: 0.3rem;
}

.customer-intake-document-field {
  margin-bottom: 0.75rem;
  position: relative;
}

.customer-intake-document-input {
  border: 0;
  cursor: pointer;
  height: 100%;
  inset: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
  z-index: 2;
}

.customer-intake-document-input:focus-visible + .customer-intake-document-button {
  outline: 0.18rem solid rgba(255, 107, 0, 0.35);
  outline-offset: 0.12rem;
}

.customer-intake-document-input:disabled {
  pointer-events: none;
}

.customer-intake-document-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(44, 52, 64, 0.24);
  border-radius: 0.5rem;
  color: var(--brand-graphite);
  cursor: pointer;
  display: grid;
  gap: 0.22rem;
  justify-items: center;
  min-height: 3.55rem;
  padding: 0.62rem 0.75rem;
  text-align: center;
}

.customer-intake-document-button:hover {
  border-color: var(--brand-orange);
}

.customer-intake-document-button span {
  font-weight: 750;
}

.customer-intake-document-button small {
  color: var(--app-muted);
  font-size: 0.74rem;
  font-weight: 650;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

  .app-sidebar {
    min-height: auto;
  }

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

  .app-sidebar-link {
    min-height: 3.35rem;
  }

  .app-sidebar-footer {
    margin-top: 0;
  }

  .app-main {
    grid-template-rows: var(--app-tabs-height) minmax(0, 1fr);
  }

  .app-content {
    padding: 1rem;
  }

  .customer-intake-shell {
    align-items: start;
    padding: 1rem;
  }

  .customer-intake-card {
    padding: 1.15rem;
  }

  .customer-intake-lookup,
  .customer-intake-actions {
    grid-template-columns: 1fr;
  }

  .customer-intake-logo {
    width: 70%;
  }
}

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