/*
 * CATS U Portal R47 — mobile-first enhancement layer.
 * Loaded after the R46 core. This file never changes customer data or API logic.
 */
:root {
  --cats-mobile-blue: #0b63ce;
  --cats-mobile-navy: #062448;
  --cats-mobile-cyan: #12aeca;
  --cats-mobile-mint: #92e8c6;
  --cats-mobile-line: #d7e5f1;
  --cats-mobile-soft: #f4f9fd;
  --cats-mobile-dock-height: 70px;
}

.cats-mobile-dock,
.cats-mobile-quick-start,
.cats-mobile-onboarding {
  display: none;
}

.cats-mobile-guide-trigger {
  min-height: 44px;
}

@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .customer-site {
    padding-bottom: calc(var(--cats-mobile-dock-height) + env(safe-area-inset-bottom));
  }

  body.cats-id-zone-open > #cats-unidentified-zone {
    margin-bottom: calc(var(--cats-mobile-dock-height) + env(safe-area-inset-bottom));
  }

  .customer-site :is(button, a[role="button"]),
  .cats-id-zone :is(button, a[role="button"]) {
    touch-action: manipulation;
  }

  .customer-site :is(input, select, textarea),
  .cats-id-zone :is(input, select, textarea),
  .cats-mobile-onboarding :is(input, select, textarea) {
    font-size: 16px !important;
  }

  /* Recover vertical space and make every header action finger-friendly. */
  .customer-site > .top-ribbon {
    display: none !important;
  }

  .customer-site .site-header {
    height: 64px !important;
  }

  .customer-site .header-inner {
    min-height: 64px;
    padding-inline: 14px !important;
    gap: 10px !important;
  }

  .customer-site .logo {
    min-width: 0;
    min-height: 44px;
  }

  .customer-site .logo > span {
    width: 38px;
    height: 38px;
  }

  .customer-site .logo strong {
    font-size: 14px;
  }

  .customer-site .logo small {
    font-size: 10px;
  }

  .customer-site .menu-toggle {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }

  .customer-site .site-header nav.open {
    top: 64px !important;
    max-height: calc(100dvh - 64px - env(safe-area-inset-bottom)) !important;
    padding: 10px 14px max(18px, env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
  }

  .customer-site .site-header nav > button,
  .customer-site .site-header nav > #cats-unidentified-nav {
    width: 100%;
    min-height: 50px !important;
    padding: 10px 14px !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    text-align: left;
  }

  /* Guest home: put the actual tasks before promotional explanations. */
  .tech-home .tech-hero {
    min-height: 0 !important;
  }

  .tech-home .tech-hero-shell {
    display: block !important;
    min-height: 0 !important;
    padding: 28px 16px 34px !important;
  }

  .tech-home .tech-console,
  .tech-home .tech-proof {
    display: none !important;
  }

  .tech-home .tech-hero-copy {
    max-width: none !important;
  }

  .tech-home .tech-hero-copy h1 {
    margin-block: 14px 12px !important;
    font-size: clamp(30px, 9vw, 38px) !important;
    line-height: 1.12 !important;
  }

  .tech-home .tech-hero-copy > p {
    font-size: 15.5px !important;
    line-height: 1.65 !important;
  }

  .tech-home .tech-hero-actions.cats-home-actions {
    gap: 10px !important;
    margin-block: 22px 10px !important;
  }

  .tech-home .cats-home-action {
    width: 100%;
    min-height: 54px !important;
    padding: 12px 15px !important;
    font-size: 14px !important;
  }

  .tech-home .cats-home-registration-note {
    min-height: 44px;
    margin-top: 8px;
    font-size: 14px;
  }

  .cats-home-identification-priority {
    min-height: 0 !important;
    margin-top: 16px !important;
    padding: 20px 18px !important;
    gap: 15px !important;
  }

  .cats-home-identification-priority h2 {
    font-size: 24px !important;
  }

  .cats-home-identification-priority p {
    font-size: 14.5px !important;
  }

  /* Authentication stays focused: one card, clear mode switch, no side artwork. */
  .customer-site .auth-page {
    min-height: calc(100dvh - 64px) !important;
    padding: 20px 12px 28px !important;
  }

  .customer-site .auth-shell {
    display: block !important;
    width: 100% !important;
    max-width: 520px !important;
    margin-inline: auto !important;
  }

  .customer-site .auth-visual {
    display: none !important;
  }

  .customer-site .auth-card {
    width: 100% !important;
    min-width: 0 !important;
    padding: 20px 16px !important;
    border-radius: 18px !important;
  }

  .customer-site .auth-card :is(h1, h2) {
    font-size: 26px !important;
    line-height: 1.2 !important;
  }

  .customer-site .auth-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    width: 100% !important;
  }

  .customer-site .auth-tabs button,
  .customer-site .auth-submit {
    width: 100% !important;
    min-height: 50px !important;
    height: auto !important;
    padding: 10px 12px !important;
    white-space: normal;
  }

  .customer-site .auth-form,
  .customer-site .auth-form .form-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .customer-site .auth-local-note {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
  }

  /* Mobile task hub, inserted without moving React-owned controls. */
  .cats-mobile-quick-start {
    display: block;
    width: min(100% - 24px, 720px);
    margin: 16px auto 20px;
    padding: 18px;
    border: 1px solid #bad8ee;
    border-radius: 20px;
    background:
      linear-gradient(145deg, #ffffff 0%, #f3faff 62%, #edfff8 100%);
    color: var(--cats-mobile-navy);
    box-shadow: 0 14px 38px rgb(7 50 91 / 10%);
  }

  .cats-mobile-quick-start__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
  }

  .cats-mobile-quick-start__head > div {
    min-width: 0;
  }

  .cats-mobile-quick-start__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #0879a6;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
  }

  .cats-mobile-quick-start h2 {
    margin: 0;
    color: var(--cats-mobile-navy);
    font-size: 23px;
    line-height: 1.2;
  }

  .cats-mobile-quick-start__intro {
    margin: 6px 0 0;
    color: #526b82;
    font-size: 14px;
    line-height: 1.55;
  }

  .cats-mobile-guide-trigger {
    flex: 0 0 auto;
    min-width: 44px;
    padding: 8px 11px;
    border: 1px solid #a9cde5;
    border-radius: 12px;
    background: #fff;
    color: #07599f;
    font-size: 13px;
    font-weight: 850;
  }

  .cats-mobile-quick-start__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .cats-mobile-quick-action {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    min-width: 0;
    min-height: 92px !important;
    padding: 13px !important;
    border: 1px solid #c9ddeb;
    border-radius: 15px;
    background: #fff;
    color: var(--cats-mobile-navy);
    text-align: left;
    box-shadow: 0 5px 15px rgb(8 42 88 / 6%);
  }

  .cats-mobile-quick-action__icon,
  .cats-mobile-quick-action__copy > strong,
  .cats-mobile-quick-action__copy > small {
    display: block;
  }

  .cats-mobile-quick-action__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #e7f4ff;
    color: #0864bc;
    font-size: 18px;
    line-height: 34px;
    text-align: center;
  }

  .cats-mobile-quick-action__copy > strong {
    font-size: 14px;
    line-height: 1.35;
  }

  .cats-mobile-quick-action__copy > small {
    margin-top: 4px;
    color: #61778d;
    font-size: 12.5px;
    line-height: 1.45;
  }

  .cats-mobile-quick-action__copy {
    display: block;
    min-width: 0;
  }

  .cats-mobile-quick-action__arrow {
    display: none !important;
  }

  .cats-mobile-glossary {
    display: grid;
    gap: 8px;
    margin-top: 13px;
    padding: 12px;
    border-radius: 13px;
    background: #edf7fb;
    color: #36576f;
    font-size: 13px;
    line-height: 1.5;
  }

  .cats-mobile-glossary strong {
    color: #08375d;
  }

  .cats-mobile-glossary h3 {
    margin: 0;
    color: #08375d;
    font-size: 14px;
  }

  .cats-mobile-glossary dl {
    display: grid;
    gap: 8px;
    margin: 0;
  }

  .cats-mobile-glossary__item {
    display: grid;
    gap: 2px;
  }

  .cats-mobile-glossary :is(dt, dd) {
    margin: 0;
  }

  .cats-mobile-glossary dt {
    color: #08375d;
    font-weight: 900;
  }

  .cats-mobile-glossary__notice {
    padding-top: 8px;
    border-top: 1px solid #cfe1eb;
    color: #7b4b11;
  }

  /* Customer workspace: clear hierarchy without removing the full tab strip. */
  .portal-page.orders-page.customer-workspace {
    width: 100%;
    max-width: 100%;
    padding: 20px 12px 28px !important;
  }

  .customer-workspace .account-heading {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .customer-workspace .account-heading > div {
    min-width: 0;
  }

  .customer-workspace .account-heading h1 {
    font-size: 27px !important;
  }

  .customer-workspace .account-heading > :is(button, .outline-button),
  .customer-workspace .account-heading > div + div {
    width: 100%;
    height: auto !important;
    min-height: 48px !important;
  }

  .customer-workspace .workspace-tabs {
    width: 100%;
    max-width: 100%;
    padding: 4px 2px 9px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .customer-workspace .workspace-tabs button {
    min-width: 122px;
    min-height: 48px !important;
    padding: 9px 12px !important;
    font-size: 13.5px !important;
    scroll-snap-align: start;
  }

  .customer-workspace .workspace-view,
  .customer-workspace .customer-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .customer-workspace .customer-panel {
    overflow: visible !important;
  }

  .cats-task-center__head,
  .cats-document-center__head {
    padding: 18px !important;
  }

  .cats-task-center__head span,
  .cats-document-center__head span {
    font-size: 19px;
  }

  /* Orders become vertical cards with full-width, reachable actions. */
  .customer-workspace .order-list {
    display: grid !important;
    gap: 12px !important;
    padding: 12px !important;
  }

  .customer-workspace .order-list > article.customer-order {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    gap: 11px !important;
    min-width: 0;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 14px !important;
    border: 1px solid #d4e3ef !important;
    border-radius: 15px !important;
    background: #fff !important;
    box-shadow: 0 7px 20px rgb(7 50 91 / 7%);
  }

  .customer-workspace .customer-order > :is(.order-main, .order-summary, .order-handling, .order-status-guidance, .status) {
    min-width: 0;
    grid-column: 2;
  }

  .customer-workspace .customer-order :is(h2, h3, strong, p, small) {
    overflow-wrap: anywhere;
  }

  .customer-workspace .customer-order .order-card-actions {
    display: flex !important;
    grid-column: 1 / -1 !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    gap: 8px !important;
    margin-top: 4px !important;
  }

  .customer-workspace .customer-order .order-card-actions button {
    flex: 1 1 132px;
    width: auto;
    min-width: 0 !important;
    height: auto !important;
    min-height: 48px !important;
    padding: 9px 12px !important;
    white-space: normal;
  }

  .customer-workspace .customer-order .order-card-actions .group-quick {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
  }

  .customer-workspace .customer-order .order-card-actions :is(.view-order, button:last-child) {
    flex: 1 1 132px;
    width: auto;
    min-height: 48px !important;
  }

  /* Keep wide finance/import tables inside their own horizontal scroller. */
  .customer-site :is(
    .customer-table,
    .statement-table,
    .quotation-table,
    .customer-table-wrap,
    .statement-table-wrap,
    .quotation-table-wrap,
    .editable-bulk-table
  ) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .customer-site :is(
    .customer-table,
    .statement-table,
    .quotation-table,
    .customer-table-wrap,
    .statement-table-wrap,
    .quotation-table-wrap,
    .editable-bulk-table
  ) > table {
    width: max-content;
    min-width: 720px;
  }

  .customer-site :is(.customer-table, .statement-table, .quotation-table)::before {
    position: sticky;
    left: 0;
    display: block;
    width: max-content;
    margin: 0 0 8px;
    padding: 5px 8px;
    border-radius: 8px;
    background: #edf6fc;
    color: #526b82;
    content: "↔ Vuốt ngang để xem đủ thông tin";
    font-size: 13px;
    font-weight: 700;
  }

  html[lang="en"] .customer-site :is(.customer-table, .statement-table, .quotation-table)::before {
    content: "↔ Swipe sideways to see all details";
  }

  html[lang="de"] .customer-site :is(.customer-table, .statement-table, .quotation-table)::before {
    content: "↔ Seitlich wischen, um alle Details zu sehen";
  }

  /* Verification cards and forms stay readable at 320px. */
  body > #cats-unidentified-zone.cats-id-zone {
    width: calc(100% - 16px);
    max-width: calc(100% - 16px);
    margin: 12px 8px 22px;
    padding: 16px;
    border-radius: 18px;
  }

  .cats-id-zone__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .cats-id-zone__back {
    width: 100%;
    min-height: 48px !important;
  }

  .cats-id-zone__toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    margin-block: 17px 14px;
  }

  .cats-id-zone__toolbar button {
    width: 100%;
    min-height: 48px;
  }

  .cats-id-browser {
    padding: 11px;
  }

  .cats-id-browser__filters,
  .cats-id-zone__grid,
  .cats-missing-reviews__list {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .cats-id-browser__meta {
    align-items: stretch;
    flex-direction: column;
  }

  .cats-id-card {
    min-width: 0;
  }

  .cats-id-card__image {
    height: 180px;
  }

  .cats-id-card :is(.cats-id-card__label, .cats-id-card__badge, dt) {
    font-size: 13px !important;
  }

  .cats-id-card :is(h3, dd, button, small, p) {
    font-size: 14px !important;
  }

  .cats-id-card button {
    min-width: 44px;
    min-height: 48px;
  }

  .cats-id-modal,
  .cats-missing-modal {
    place-items: end center !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .cats-id-modal__panel,
  .cats-missing-modal__panel {
    width: 100% !important;
    max-width: 100% !important;
    max-height: calc(100dvh - 8px) !important;
    margin: 0 !important;
    padding: 18px 16px max(18px, env(safe-area-inset-bottom)) !important;
    border-radius: 20px 20px 0 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }

  .cats-missing-review-card__head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  .cats-missing-review-card,
  .cats-missing-review-card * {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .cats-missing-review-card__head > span {
    max-width: 100% !important;
    justify-self: start;
    font-size: 13px !important;
  }

  .cats-missing-review-card :is(p, summary, li, time, small) {
    font-size: 13px !important;
    line-height: 1.5;
  }

  .cats-missing-modal :is(button, [type="button"], [type="submit"]),
  .cats-id-modal :is(button, [type="button"], [type="submit"]),
  .cats-id-modal__files button,
  .cats-missing-modal__files button {
    min-width: 44px !important;
    min-height: 44px !important;
  }

  .cats-id-modal__files li,
  .cats-missing-modal__files li {
    grid-template-columns: 42px minmax(0, 1fr) 44px !important;
  }

  .cats-package-lightbox {
    padding: 4px !important;
  }

  .cats-package-lightbox__panel {
    width: 100% !important;
    height: calc(100dvh - 8px) !important;
    max-height: calc(100dvh - 8px) !important;
    border-radius: 14px !important;
  }

  /* Order detail is a reachable mobile bottom sheet. */
  .customer-site .modal-backdrop:has(.order-detail-modal.enhanced) {
    place-items: end center !important;
    padding: 0 !important;
  }

  .customer-site .order-detail-modal.enhanced {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92dvh !important;
    margin: 0 !important;
    padding-bottom: max(16px, env(safe-area-inset-bottom)) !important;
    border-radius: 20px 20px 0 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }

  .customer-site .order-detail-modal .conversation-history.order-timeline article {
    min-height: 56px;
  }

  .customer-site .order-detail-modal .conversation-history.order-timeline article > i {
    width: 32px;
    min-width: 32px;
    height: 32px;
  }

  .customer-site .order-detail-modal .conversation-history.order-timeline strong {
    font-size: 14.5px !important;
  }

  .customer-site .order-detail-modal .conversation-history.order-timeline small {
    font-size: 13.5px !important;
  }

  .customer-site .order-detail-modal .detail-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px !important;
    margin-inline: -4px;
    padding: 10px 4px max(4px, env(safe-area-inset-bottom));
    background: #fff;
  }

  .customer-site .order-detail-modal .detail-actions button {
    width: 100%;
    min-height: 48px !important;
    margin: 0 !important;
  }

  /* Forms remain reachable when their own fixed progress panel is active. */
  .customer-site .form-progress-card {
    bottom: calc(var(--cats-mobile-dock-height) + env(safe-area-inset-bottom) + 8px) !important;
  }

  .cats-connection-state {
    bottom: calc(var(--cats-mobile-dock-height) + env(safe-area-inset-bottom) + 8px) !important;
  }

  .customer-site .portal-page:has(.form-progress-card) {
    padding-bottom: calc(118px + var(--cats-mobile-dock-height) + env(safe-area-inset-bottom)) !important;
  }

  /* Persistent five-destination dock. It is a body sibling, outside React. */
  .cats-mobile-dock {
    position: fixed;
    z-index: 94;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: calc(var(--cats-mobile-dock-height) + env(safe-area-inset-bottom));
    padding: 5px 4px max(5px, env(safe-area-inset-bottom));
    border-top: 1px solid #c9dbe9;
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 -10px 30px rgb(6 36 72 / 13%);
    backdrop-filter: blur(14px);
  }

  .cats-mobile-dock__item {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    min-width: 44px;
    min-height: 54px !important;
    padding: 3px 1px !important;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #607489;
    font-size: 12.5px;
    font-weight: 750;
    line-height: 1.15;
  }

  .cats-mobile-dock__item > span:first-child {
    font-size: 20px;
    line-height: 1;
  }

  .cats-mobile-dock__item > span:last-child {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cats-mobile-dock__item:is(.is-active, [aria-current="page"]) {
    background: #e9f4ff;
    color: #0759a6;
  }

  .cats-mobile-dock__item:is(.is-active, [aria-current="page"])::before {
    position: absolute;
    top: 0;
    width: 24px;
    height: 3px;
    border-radius: 99px;
    background: var(--cats-mobile-cyan);
    content: "";
  }

  body.cats-mobile-dock-suspended .cats-mobile-dock,
  body:has(.mfa-challenge-backdrop) .cats-mobile-dock,
  body:has(.cats-id-modal:not([hidden])) .cats-mobile-dock,
  body:has(.cats-missing-modal:not([hidden])) .cats-mobile-dock,
  body:has(.cats-package-lightbox:not([hidden])) .cats-mobile-dock,
  body:has(.modal-backdrop .order-detail-modal.enhanced) .cats-mobile-dock {
    display: none !important;
  }

  /* Three-step guide. */
  .cats-mobile-onboarding {
    position: fixed;
    z-index: 2147482500;
    inset: 0;
    display: grid;
    place-items: end center;
    padding: 12px 8px 0;
    background: rgb(3 24 50 / 68%);
  }

  .cats-mobile-onboarding[hidden] {
    display: none !important;
  }

  .cats-mobile-onboarding__dialog {
    width: min(100%, 520px);
    max-height: calc(100dvh - 12px);
    padding: 22px 18px max(18px, env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    background: #fff;
    color: var(--cats-mobile-navy);
    box-shadow: 0 -18px 50px rgb(0 0 0 / 25%);
    overflow-y: auto;
  }

  .cats-mobile-onboarding__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .cats-mobile-onboarding__head > div {
    min-width: 0;
  }

  .cats-mobile-onboarding__head > div > span {
    color: #0879a6;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
  }

  .cats-mobile-onboarding__head h2 {
    margin: 7px 0 6px;
  }

  .cats-mobile-onboarding__head p {
    font-size: 14px;
  }

  .cats-mobile-onboarding__close {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid #c8d9e7;
    border-radius: 999px;
    background: #f5f9fc;
    color: #23465f;
    font-size: 25px;
    line-height: 1;
  }

  .cats-mobile-onboarding__content {
    margin-top: 20px;
  }

  .cats-mobile-onboarding__progress {
    display: inline-grid;
    min-width: 44px;
    min-height: 36px;
    padding-inline: 12px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cats-mobile-cyan), var(--cats-mobile-mint));
    color: #042a4f;
    font-size: 13px;
    font-weight: 900;
  }

  .cats-mobile-onboarding__dialog h2 {
    margin: 16px 0 8px;
    font-size: 24px;
    line-height: 1.2;
  }

  .cats-mobile-onboarding__content h3 {
    margin: 15px 0 7px;
    font-size: 21px;
    line-height: 1.25;
  }

  .cats-mobile-onboarding__dialog p {
    margin: 0;
    color: #526b82;
    font-size: 15px;
    line-height: 1.65;
  }

  .cats-mobile-onboarding__dots {
    display: flex;
    gap: 7px;
    margin: 18px 0;
  }

  .cats-mobile-onboarding__dots span {
    width: 9px;
    height: 9px;
    border-radius: 99px;
    background: #cbd9e5;
  }

  .cats-mobile-onboarding__dots span.is-active {
    width: 27px;
    background: var(--cats-mobile-blue);
  }

  .cats-mobile-onboarding__actions {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 9px;
  }

  .cats-mobile-onboarding__actions button {
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #b7d0e3;
    border-radius: 12px;
    background: #fff;
    color: #274963;
    font-weight: 850;
  }

  .cats-mobile-onboarding__next {
    border-color: #0b65c4;
    background: #0b65c4;
    color: #fff;
  }

  .cats-mobile-onboarding__skip {
    order: 3;
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
    border: 0;
    background: transparent;
    color: #62778b;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .cats-mobile-onboarding__back {
    order: 1;
  }

  .cats-mobile-onboarding__next {
    order: 2;
  }
}

@media (max-width: 520px) {
  .cats-mobile-quick-start__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .cats-mobile-guide-trigger {
    width: 100%;
  }

  .customer-workspace .account-heading > div:last-child,
  .customer-workspace .account-actions,
  .customer-workspace .next-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .customer-workspace .account-heading :is(button, .outline-button),
  .customer-workspace .account-actions button,
  .customer-workspace .next-actions button {
    width: 100%;
    height: auto !important;
    min-height: 48px !important;
    padding-block: 10px !important;
    white-space: normal;
  }
}

@media (max-width: 340px) {
  .cats-mobile-quick-start__grid,
  .cats-mobile-onboarding__actions,
  .customer-site .form-progress-actions {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .cats-mobile-dock__item {
    font-size: 11.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cats-mobile-dock *,
  .cats-mobile-quick-start *,
  .cats-mobile-onboarding * {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
