.shopos-phone-bottom-nav,
.shopos-phone-menu-extras,
.shopos-phone-menu-close,
.shopos-sparky-launcher,
.shopos-sparky-overlay,
.shopos-phone-recent-activity {
  display: none;
}

.app-access-denied-notice {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 32px;
  align-items: start;
  gap: 10px;
  margin: 12px 20px 0;
  padding: 12px 14px;
  border: 1px solid #efb5b0;
  border-radius: 12px;
  background: #fff4f2;
  color: #7a271a;
  box-shadow: 0 10px 26px rgba(122, 39, 26, 0.08);
}

.app-access-denied-notice > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #d92d20;
  color: #fff;
  font-weight: 950;
}

.app-access-denied-notice strong,
.app-access-denied-notice p {
  display: block;
  margin: 0;
}

.app-access-denied-notice p {
  margin-top: 3px;
  font-size: 0.82rem;
  line-height: 1.4;
}

.app-access-denied-notice button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 1.3rem;
  cursor: pointer;
}

@media (min-width: 601px) {
  body.shopos-shoppie-tablet .shopos-sparky-launcher {
    position: fixed;
    z-index: 1585;
    right: 22px;
    bottom: 22px;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    filter: drop-shadow(0 10px 18px rgba(4, 40, 108, 0.28));
    cursor: pointer;
  }

  body.shopos-shoppie-tablet .shopos-sparky-launcher img {
    width: 56px;
    height: 56px;
    object-fit: contain;
  }

  body.shopos-shoppie-tablet .shopos-sparky-tip {
    position: absolute;
    right: 58px;
    bottom: 10px;
    display: grid;
    width: max-content;
    max-width: 160px;
    padding: 8px 10px;
    border-radius: 7px 7px 0 7px;
    background: #161b23;
    color: #fff;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    animation: shopos-shoppie-tablet-tip 7s forwards;
  }

  body.shopos-shoppie-tablet .shopos-sparky-tip::after {
    content: "";
    position: absolute;
    right: -8px;
    bottom: 0;
    border: 8px solid transparent;
    border-bottom-color: #161b23;
  }

  body.shopos-shoppie-tablet .shopos-sparky-tip strong { font-size: 0.75rem; }
  body.shopos-shoppie-tablet .shopos-sparky-tip small { margin-top: 2px; font-size: 0.62rem; opacity: 0.86; }
  @keyframes shopos-shoppie-tablet-tip {
    0%, 64% { opacity: 1; transform: translateY(0); }
    78%, 100% { opacity: 0; transform: translateY(4px); visibility: hidden; }
  }

  body.shopos-shoppie-tablet.modal-open .shopos-sparky-launcher,
  body.shopos-shoppie-tablet.shopos-sparky-open .shopos-sparky-launcher,
  body.shopos-shoppie-tablet:has(input[type="file"][accept*="image"]:focus) .shopos-sparky-launcher {
    display: none !important;
  }

  body.shopos-shoppie-tablet .shopos-sparky-overlay {
    position: fixed;
    z-index: 1900;
    inset: 0;
    display: block;
  }

  body.shopos-shoppie-tablet .shopos-sparky-overlay[hidden] { display: none !important; }

  body.shopos-shoppie-tablet .shopos-sparky-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(4, 14, 32, 0.48);
    backdrop-filter: blur(3px);
  }

  body.shopos-shoppie-tablet .shopos-sparky-sheet {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(640px, calc(100vw - 56px));
    height: min(680px, calc(100vh - 64px));
    min-height: 480px;
    overflow: hidden;
    border-radius: 12px;
    background: #f7f9fc;
    box-shadow: 0 24px 70px rgba(4, 17, 40, 0.3);
    transform: translate(-50%, -50%);
  }

  body.shopos-shoppie-tablet .shopos-sparky-header {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto 42px;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #e1e8f2;
    background: #fff;
  }

  body.shopos-shoppie-tablet .shopos-sparky-header > img {
    width: 54px;
    height: 54px;
    object-fit: contain;
  }

  body.shopos-shoppie-tablet .shopos-sparky-header > span { display: grid; gap: 3px; }
  body.shopos-shoppie-tablet .shopos-sparky-header strong { color: #071d47; font-size: 1.05rem; }
  body.shopos-shoppie-tablet .shopos-sparky-header small { color: #617592; font-size: 0.76rem; }

  body.shopos-shoppie-tablet .shopos-sparky-header > button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #edf2f8;
    color: #17335e;
    font-size: 1.6rem;
  }

  body.shopos-shoppie-tablet .shopos-sparky-header > .shopos-sparky-reset {
    width: auto;
    padding: 0 12px;
    border-radius: 10px;
    color: #075fe5;
    font-size: 0.76rem;
    font-weight: 800;
  }

  body.shopos-shoppie-tablet .shopos-sparky-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px;
    -webkit-overflow-scrolling: touch;
  }

  body.shopos-shoppie-tablet .shopos-sparky-turn + .shopos-sparky-turn { margin-top: 18px; }

  body.shopos-shoppie-tablet .shopos-sparky-welcome,
  body.shopos-shoppie-tablet .shopos-sparky-answer,
  body.shopos-shoppie-tablet .shopos-sparky-error,
  body.shopos-shoppie-tablet .shopos-sparky-empty {
    padding: 16px;
    border: 1px solid #dce5f2;
    border-radius: 10px;
    background: #fff;
    color: #10274e;
  }

  body.shopos-shoppie-tablet .shopos-sparky-welcome p,
  body.shopos-shoppie-tablet .shopos-sparky-error p {
    margin: 6px 0 0;
    color: #617592;
    font-size: 0.84rem;
    line-height: 1.45;
  }

  body.shopos-shoppie-tablet .shopos-sparky-welcome > div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
  }

  body.shopos-shoppie-tablet [data-sparky-prompt] {
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid #cddbf0;
    border-radius: 7px;
    background: #f5f8fd;
    color: #0756cc;
    font-size: 0.75rem;
    font-weight: 760;
  }

  body.shopos-shoppie-tablet .shopos-sparky-query {
    width: fit-content;
    max-width: 88%;
    margin: 0 0 12px auto;
    padding: 10px 13px;
    border-radius: 12px 12px 3px 12px;
    background: #075fe5;
    color: #fff;
    font-size: 0.84rem;
    line-height: 1.4;
  }

  body.shopos-shoppie-tablet .shopos-sparky-answer {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 12px;
  }

  body.shopos-shoppie-tablet .shopos-sparky-answer img { width: 42px; height: 42px; object-fit: contain; }
  body.shopos-shoppie-tablet .shopos-sparky-answer p { margin: 0; color: #10274e; font-size: 0.84rem; line-height: 1.5; }

  body.shopos-shoppie-tablet .shopos-sparky-thinking {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #5f7290;
    font-size: 0.82rem;
  }

  body.shopos-shoppie-tablet .shopos-sparky-thinking span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #075fe5;
    animation: shopos-shoppie-tablet-dot 0.9s infinite alternate;
  }

  body.shopos-shoppie-tablet .shopos-sparky-thinking span:nth-child(2) { animation-delay: 0.15s; }
  body.shopos-shoppie-tablet .shopos-sparky-thinking span:nth-child(3) { animation-delay: 0.3s; }
  @keyframes shopos-shoppie-tablet-dot { to { opacity: 0.28; transform: translateY(-3px); } }

  body.shopos-shoppie-tablet .shopos-sparky-result-section { margin-top: 12px; }
  body.shopos-shoppie-tablet .shopos-sparky-result-section h4 { margin: 0 0 7px; color: #122b51; font-size: 0.8rem; }
  body.shopos-shoppie-tablet .shopos-sparky-result {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 12px;
    align-items: center;
    width: 100%;
    min-height: 68px;
    margin-top: 7px;
    padding: 9px;
    gap: 10px;
    border: 1px solid #dee6f1;
    border-radius: 9px;
    background: #fff;
    color: #10274e;
    text-decoration: none;
    text-align: left;
  }

  body.shopos-shoppie-tablet .shopos-sparky-result img,
  body.shopos-shoppie-tablet .shopos-sparky-result-mark {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #eaf2ff;
    object-fit: cover;
  }

  body.shopos-shoppie-tablet .shopos-sparky-result-mark::before {
    content: "S";
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #075fe5;
    font-weight: 900;
  }

  body.shopos-shoppie-tablet .shopos-sparky-result > span { display: grid; min-width: 0; gap: 2px; }
  body.shopos-shoppie-tablet .shopos-sparky-result strong { overflow: hidden; font-size: 0.8rem; text-overflow: ellipsis; white-space: nowrap; }
  body.shopos-shoppie-tablet .shopos-sparky-result small { overflow: hidden; color: #627692; font-size: 0.7rem; text-overflow: ellipsis; white-space: nowrap; }
  body.shopos-shoppie-tablet .shopos-sparky-result em { color: #0758ce; font-size: 0.7rem; font-style: normal; font-weight: 760; }
  body.shopos-shoppie-tablet .shopos-sparky-result > b { color: #27466f; font-size: 1.35rem; }

  body.shopos-shoppie-tablet .shopos-sparky-actions { display: grid; gap: 8px; margin-top: 12px; }
  body.shopos-shoppie-tablet .shopos-sparky-actions button {
    display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 10px 13px;
    border: 1px solid #b9d2f7; border-radius: 9px; background: #eef5ff; color: #0758ce; font-weight: 800; text-align: left;
  }

  body.shopos-shoppie-tablet .shopos-sparky-form {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-top: 1px solid #dfe7f1;
    background: #fff;
  }

  body.shopos-shoppie-tablet .shopos-sparky-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px 46px;
    gap: 8px;
  }

  body.shopos-shoppie-tablet .shopos-sparky-form input {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #cad7e8;
    border-radius: 9px;
    background: #f8fafd;
    color: #0d244a;
    font-size: 16px;
  }

  body.shopos-shoppie-tablet .shopos-sparky-input-row > button {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 9px;
    background: #075fe5;
    color: #fff;
  }

  body.shopos-shoppie-tablet .shopos-sparky-input-row > button svg { width: 22px; height: 22px; }
  body.shopos-shoppie-tablet .shopos-sparky-input-row > .shopos-sparky-mic { border-color: #c9d8ed; background: #f4f8fe; color: #075fe5; }
  body.shopos-shoppie-tablet .shopos-sparky-input-row > .shopos-sparky-mic.is-listening { border-color: #ef4444; background: #fff1f2; color: #c52323; }
  body.shopos-shoppie-tablet .shopos-sparky-input-row > .shopos-sparky-mic.is-unavailable { color: #687a94; }
  body.shopos-shoppie-tablet .shopos-sparky-voice-status { margin: 0; color: #5c708e; font-size: 0.7rem; line-height: 1.35; }
  body.shopos-shoppie-tablet .shopos-sparky-voice-status[data-state="listening"] { color: #b42318; }
  body.shopos-shoppie-tablet .shopos-sparky-voice-status[data-state="error"] { color: #a32119; }
  body.shopos-shoppie-tablet .shopos-sparky-form.is-busy { opacity: 0.68; pointer-events: none; }

  body.shopos-shoppie-tablet .shopos-sparky-overlay.is-keyboard-open .shopos-sparky-sheet {
    top: 0;
    bottom: auto;
    left: 50%;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: var(--shopos-sparky-visible-height, 100%);
    min-height: 0;
    max-height: var(--shopos-sparky-visible-height, 100%);
    border-radius: 0;
    transform: translateX(-50%);
  }

  body.shopos-shoppie-tablet .shopos-sparky-overlay.is-keyboard-open .shopos-sparky-body {
    min-height: 0;
    overflow-y: auto;
  }

  body.shopos-shoppie-tablet .shopos-sparky-overlay.is-keyboard-open .shopos-sparky-form {
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 600px) {
  html {
    scroll-padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px));
  }

  body.shopos-iphone-shell {
    --shopos-phone-blue: #0868ee;
    --shopos-phone-navy: #061c50;
    --shopos-phone-border: #dce5f2;
    --shopos-phone-muted: #5d7190;
    --shopos-phone-shadow: 0 10px 28px rgba(22, 49, 91, 0.1);
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)) !important;
    background: #f7f9fc !important;
  }

  body.shopos-iphone-shell .main {
    padding-bottom: 0 !important;
  }

  body.shopos-iphone-shell .topbar {
    min-height: 62px !important;
    padding: calc(7px + env(safe-area-inset-top, 0px)) 11px 7px !important;
    border-bottom: 0 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: none !important;
    backdrop-filter: blur(18px);
  }

  body.shopos-iphone-shell .topbar-inner {
    min-height: 42px !important;
    grid-template-columns: 40px minmax(0, 1fr) 40px !important;
    gap: 8px !important;
  }

  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell) .topbar:not(.dashboard-mobile-topbar) .app-shell-back-btn {
    box-sizing: border-box !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
  }

  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell) .topbar:not(.dashboard-mobile-topbar) .app-shell-menu-btn {
    box-sizing: border-box !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    margin: 0 !important;
  }

  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell) .topbar:not(.dashboard-mobile-topbar) .app-phone-title-group,
  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell) .topbar:not(.dashboard-mobile-topbar) .workorders-title-group {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
  }

  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell) .topbar:not(.parts-topbar) .topbar-inner > .button-row:not(.dashboard-action-row):not(.workorders-topbar-actions),
  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell) .topbar:not(.parts-topbar) .topbar-inner > .hero-actions:not(.dashboard-action-row),
  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell) .topbar:not(.parts-topbar) .topbar-inner > .workorders-topbar-actions[hidden] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body.shopos-iphone-shell .app-shell-menu-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border: 1px solid #dce5f2 !important;
    border-radius: 9px !important;
    background: #ffffff !important;
    box-shadow: 0 5px 15px rgba(29, 52, 84, 0.12) !important;
  }

  body.shopos-iphone-shell .app-shell-menu-btn span {
    width: 18px !important;
    height: 2.5px !important;
    background: #082d69 !important;
    box-shadow: none !important;
  }

  body.shopos-iphone-shell .app-shell-menu-btn span + span {
    margin-top: 2px !important;
  }

  body.native-app-shell .app-shell-back-btn {
    display: none;
  }

  body.native-app-shell:not(.tablet-native-shell).native-back-enabled .app-shell-back-btn {
    display: inline-flex !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #dce5f2 !important;
    border-radius: 9px !important;
    background: #ffffff !important;
    color: #082d69 !important;
    box-shadow: 0 5px 15px rgba(29, 52, 84, 0.12) !important;
  }

  body.native-app-shell:not(.tablet-native-shell).native-back-enabled .app-shell-back-btn span {
    width: 14px;
    height: 14px;
    margin-left: 5px;
    border-left: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    border-radius: 2px;
    transform: rotate(45deg);
  }

  body.native-app-shell:not(.tablet-native-shell).native-back-enabled .app-shell-menu-btn {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
  }

  body.native-app-shell:not(.tablet-native-shell).native-back-enabled .app-shell-menu-btn span {
    width: 4px !important;
    height: 4px !important;
    margin: 0 !important;
    border-radius: 999px !important;
  }

  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell).native-back-enabled .dashboard-mobile-topbar .app-shell-back-btn {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
  }

  body.shopos-iphone-shell .topbar-inner > div:not(.button-row):not(.hero-actions),
  body.shopos-iphone-shell .dashboard-phone-brand {
    grid-column: 2;
    min-width: 0;
  }

  body.shopos-iphone-shell .app-phone-brand {
    display: flex !important;
    min-width: 0 !important;
    align-items: center !important;
    gap: 9px !important;
  }

  body.shopos-iphone-shell .app-phone-title-group > h2,
  body.shopos-iphone-shell .app-phone-title-group > p {
    display: none !important;
  }

  body.shopos-iphone-shell .app-phone-brand img {
    display: block !important;
    width: 46px !important;
    height: 46px !important;
    flex: 0 0 46px !important;
    object-fit: contain !important;
  }

  body.shopos-iphone-shell .app-phone-brand > span {
    display: grid !important;
    min-width: 0 !important;
    gap: 2px !important;
  }

  body.shopos-iphone-shell .app-phone-brand strong {
    color: #101928 !important;
    font-size: 1.18rem !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  body.shopos-iphone-shell .app-phone-brand strong b {
    color: var(--shopos-phone-blue) !important;
  }

  body.shopos-iphone-shell .app-phone-brand small {
    overflow: hidden !important;
    color: var(--shopos-phone-muted) !important;
    font-size: 0.66rem !important;
    font-weight: 750 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  body.shopos-iphone-shell .dashboard-phone-brand {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
  }

  body.shopos-iphone-shell .dashboard-phone-brand img {
    width: 38px !important;
    height: 38px !important;
    object-fit: contain;
  }

  body.shopos-iphone-shell .dashboard-phone-brand strong {
    color: #0a1d3d !important;
    font-size: 1rem !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
  }

  body.shopos-iphone-shell .dashboard-phone-brand strong b {
    color: var(--shopos-phone-blue) !important;
  }

  body.shopos-iphone-shell .dashboard-phone-brand small {
    display: block;
    margin-top: 1px;
    color: var(--shopos-phone-muted) !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
  }

  body.shopos-iphone-shell .dashboard-desktop-heading,
  body.shopos-iphone-shell .dashboard-layout-trigger,
  body.shopos-iphone-shell .dashboard-view-switcher-card {
    display: none !important;
  }

  body.shopos-iphone-shell .dashboard-action-row {
    display: flex !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-content: flex-end !important;
    margin: 0 !important;
  }

  body.shopos-iphone-shell .dashboard-action-row > *:not(.notification-icon-btn) {
    display: none !important;
  }

  body.shopos-iphone-shell .notification-icon-btn {
    display: inline-grid !important;
    place-items: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    border: 1px solid #dce5f2 !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #071f50 !important;
    box-shadow: 0 5px 15px rgba(29, 52, 84, 0.12) !important;
  }

  body.shopos-iphone-shell .notification-icon-btn .notification-badge {
    top: -7px !important;
    right: -7px !important;
    min-width: 20px !important;
    height: 20px !important;
    border-radius: 10px !important;
    border: 3px solid #fff !important;
    background: #e62020 !important;
    color: #fff !important;
    font-size: 0.62rem !important;
  }

  body.shopos-iphone-shell .content,
  body.shopos-iphone-shell .page-shell {
    padding: 8px 10px 14px !important;
  }

  body.shopos-iphone-shell .app-access-denied-notice {
    margin: 8px 10px 0;
  }

  /* In-Service owns its phone layout. Keep the late-loaded shell from
     restoring the retired card treatment or its obsolete second menu. */
  body.shopos-iphone-shell .in-service-financial-header #inServiceMenuBtn {
    display: none !important;
  }

  body.shopos-iphone-shell .in-service-shell {
    width: 100% !important;
    max-width: none !important;
    gap: 0 !important;
    padding: 20px 16px calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    background: #ffffff !important;
  }

  body.shopos-iphone-shell .in-service-hero-copy,
  body.shopos-iphone-shell .in-service-hero-stats,
  body.shopos-iphone-shell .in-service-cycle-card,
  body.shopos-iphone-shell .in-service-board-card {
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.shopos-iphone-shell .in-service-board-card,
  body.shopos-iphone-shell .in-service-empty-state {
    border: 0 !important;
  }

  body.shopos-iphone-shell .sidebar.shopos-phone-sidebar {
    box-sizing: border-box !important;
    width: min(78vw, 292px) !important;
    height: 100dvh !important;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 14px calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 0 12px 12px 0 !important;
    overflow-x: hidden !important;
    z-index: 1800 !important;
  }

  body.shopos-iphone-shell .app-shell-overlay {
    z-index: 1750 !important;
  }

  body.shopos-iphone-shell .sidebar.shopos-phone-sidebar .brand {
    min-height: 54px !important;
    margin: 0 0 12px !important;
    padding-right: 42px !important;
  }

  body.shopos-iphone-shell .sidebar.shopos-phone-sidebar .nav {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body.shopos-iphone-shell .sidebar.shopos-phone-sidebar .nav > .shopos-phone-legacy-nav,
  html body.shopos-iphone-shell .sidebar.shopos-phone-sidebar .nav > .shopos-phone-nav-duplicate,
  html body.shopos-iphone-shell .sidebar.shopos-phone-sidebar .sidebar-footer {
    display: none !important;
  }

  body.shopos-iphone-shell .shopos-phone-menu-close {
    position: absolute;
    z-index: 2;
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: 12px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  body.shopos-iphone-shell .shopos-phone-menu-close svg {
    width: 20px;
    height: 20px;
  }

  body.shopos-iphone-shell .shopos-phone-menu-extras {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    border: 0;
  }

  body.shopos-iphone-shell .shopos-phone-menu-extras > a {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 7px;
    color: #fff;
    font-weight: 750;
    text-decoration: none;
  }

  body.shopos-iphone-shell .shopos-phone-menu-extras > a svg {
    width: 20px;
    height: 20px;
  }

  body.shopos-iphone-shell .shopos-phone-menu-extras > a:active {
    background: rgba(255, 255, 255, 0.14);
  }

  body.shopos-iphone-shell.app-sidebar-open .shopos-phone-bottom-nav,
  body.shopos-iphone-shell.app-sidebar-open .shopos-sparky-launcher {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body.shopos-iphone-shell .shopos-phone-bottom-nav {
    position: fixed;
    z-index: 1600;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding: 4px 3px env(safe-area-inset-bottom, 0px);
    border-top: 1px solid #dfe6f0;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -8px 24px rgba(18, 39, 70, 0.08);
    backdrop-filter: blur(18px);
  }

  body.shopos-iphone-shell .toast {
    left: 14px !important;
    right: 14px !important;
    bottom: calc(66px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 2147482500 !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(34dvh, 260px);
    overflow: auto;
    text-align: center;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  body.shopos-iphone-shell .shopos-phone-nav-item {
    position: relative;
    display: grid;
    grid-template-rows: 22px minmax(16px, auto);
    place-items: center;
    align-content: center;
    min-width: 0;
    gap: 1px;
    padding: 1px;
    color: #2c4164;
    text-decoration: none;
  }

  body.shopos-iphone-shell .shopos-phone-nav-item svg {
    width: 20px;
    height: 20px;
  }

  body.shopos-iphone-shell .shopos-phone-nav-item span {
    max-width: 100%;
    color: inherit;
    font-size: 0.54rem;
    font-weight: 720;
    line-height: 1.05;
    text-align: center;
    white-space: normal;
  }

  body.shopos-iphone-shell .shopos-phone-nav-item.active {
    color: #075ee0;
  }

  body.shopos-iphone-shell .shopos-phone-nav-item.active::after {
    content: "";
    position: absolute;
    right: 7px;
    bottom: -1px;
    left: 7px;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: #0767ef;
  }

  body.shopos-iphone-shell .dashboard-grid {
    display: block !important;
    padding-top: 5px !important;
  }

  body.shopos-iphone-shell[data-dashboard-view="overview"] #dashboardOverviewView {
    display: block !important;
  }

  body.shopos-iphone-shell[data-dashboard-view="financials"] #dashboardOverviewView,
  body.shopos-iphone-shell[data-dashboard-view="activity"] #dashboardOverviewView,
  body.shopos-iphone-shell[data-dashboard-view="financials"] #dashboardOverviewPanels,
  body.shopos-iphone-shell[data-dashboard-view="activity"] #dashboardOverviewPanels {
    display: none !important;
  }

  body.shopos-iphone-shell[data-dashboard-view="financials"] #dashboardFinancialsView,
  body.shopos-iphone-shell[data-dashboard-view="activity"] #dashboardActivityView {
    display: block !important;
  }

  body.shopos-iphone-shell .dashboard-phone-activity-page {
    display: grid;
    gap: 9px;
    padding: 12px !important;
    border-radius: 12px !important;
  }

  body.shopos-iphone-shell .dashboard-phone-subpage-heading {
    display: grid;
    gap: 3px;
    padding: 2px 2px 8px;
    border-bottom: 1px solid #e6edf6;
  }

  body.shopos-iphone-shell .dashboard-phone-subpage-heading span {
    color: #0870ee;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  body.shopos-iphone-shell .dashboard-phone-subpage-heading h3 {
    margin: 0;
    color: #0b2045;
    font-size: 1.15rem;
  }

  body.shopos-iphone-shell .dashboard-phone-subpage-heading p {
    margin: 0;
    color: #687b97;
    font-size: 0.72rem;
    line-height: 1.4;
  }

  body.shopos-iphone-shell .mobile-dashboard-intro {
    display: contents !important;
  }

  body.shopos-iphone-shell .mobile-dashboard-welcome {
    position: relative;
    display: grid !important;
    align-content: start;
    min-height: 158px;
    padding: 17px 17px 14px !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 14px !important;
    background:
      radial-gradient(circle at 92% 20%, rgba(28, 123, 255, 0.42), transparent 32%),
      linear-gradient(128deg, #061f57 0%, #082d7d 58%, #045bdd 100%) !important;
    box-shadow: 0 14px 30px rgba(5, 38, 101, 0.2) !important;
    color: #fff !important;
  }

  body.shopos-iphone-shell .mobile-dashboard-welcome::after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: -72px;
    width: 195px;
    height: 195px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
  }

  body.shopos-iphone-shell .mobile-dashboard-kicker {
    display: block !important;
    margin: 0 0 5px !important;
    color: #2290ff !important;
    font-size: 0.65rem !important;
    font-weight: 850 !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase;
  }

  body.shopos-iphone-shell .mobile-dashboard-welcome > strong {
    display: block !important;
    max-width: calc(100% - 46px);
    color: #fff !important;
    font-size: 1.55rem !important;
    font-weight: 850 !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
  }

  body.shopos-iphone-shell .mobile-dashboard-welcome > p {
    max-width: 82%;
    margin: 7px 0 0 !important;
    color: rgba(255, 255, 255, 0.91) !important;
    font-size: 0.72rem !important;
    line-height: 1.3 !important;
  }

  body.shopos-iphone-shell .shopos-mobile-dashboard-report-icon {
    position: absolute;
    top: 16px;
    right: 15px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }

  body.shopos-iphone-shell .shopos-mobile-dashboard-report-icon svg {
    width: 21px;
    height: 21px;
  }

  body.shopos-iphone-shell .shopos-mobile-dashboard-context {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: 1;
    display: flex;
    align-items: center;
    min-width: 0;
    margin-top: 13px;
    gap: 9px;
    color: #fff;
  }

  body.shopos-iphone-shell .shopos-mobile-dashboard-context > span {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 5px;
  }

  body.shopos-iphone-shell .shopos-mobile-dashboard-context svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
  }

  body.shopos-iphone-shell .shopos-mobile-dashboard-context b {
    overflow: hidden;
    color: #fff;
    font-size: 0.66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.shopos-iphone-shell .shopos-mobile-dashboard-context i {
    width: 1px;
    height: 18px;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.3);
  }

  body.shopos-iphone-shell .mobile-shop-metrics {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin: 7px 0 0 !important;
  }

  body.shopos-iphone-shell .mobile-shop-metric {
    position: relative;
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) 7px !important;
    grid-template-rows: auto !important;
    align-items: start !important;
    min-width: 0 !important;
    min-height: 82px !important;
    padding: 8px 6px 7px !important;
    gap: 5px !important;
    border: 1px solid #e6ebf2 !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: var(--shopos-phone-shadow) !important;
    color: #0b1d3a !important;
    text-align: left !important;
  }

  body.shopos-iphone-shell .mobile-shop-metric-icon {
    display: grid !important;
    place-items: center;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    color: #fff !important;
  }

  body.shopos-iphone-shell .mobile-shop-metric-icon svg {
    width: 15px !important;
    height: 15px !important;
  }

  body.shopos-iphone-shell .mobile-shop-metric-icon.tone-blue { background: #075ee4 !important; }
  body.shopos-iphone-shell .mobile-shop-metric-icon.tone-green { background: #0da544 !important; }
  body.shopos-iphone-shell .mobile-shop-metric-icon.tone-orange { background: #f07c00 !important; }
  body.shopos-iphone-shell .mobile-shop-metric-icon.tone-purple { background: #7437dc !important; }
  body.shopos-iphone-shell .mobile-shop-metric-icon.tone-cyan { background: #11b7ab !important; }

  body.shopos-iphone-shell .mobile-shop-metric-copy {
    display: grid !important;
    min-width: 0 !important;
    align-content: start;
  }

  body.shopos-iphone-shell .mobile-shop-metric-copy > span {
    min-height: 20px;
    color: #506380 !important;
    font-size: 0.51rem !important;
    font-weight: 850 !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase;
  }

  body.shopos-iphone-shell .mobile-shop-metric-copy > strong {
    margin-top: 1px !important;
    color: #081c3d !important;
    font-size: 1.06rem !important;
    line-height: 1 !important;
  }

  body.shopos-iphone-shell .mobile-shop-metric-copy > small {
    margin-top: 4px !important;
    color: #526581 !important;
    font-size: 0.48rem !important;
    font-weight: 760 !important;
    line-height: 1.18 !important;
    text-transform: uppercase;
  }

  body.shopos-iphone-shell .mobile-shop-metric-chevron {
    align-self: center;
    color: #25456e !important;
    font-size: 1.05rem !important;
  }

  body.shopos-iphone-shell .mobile-dashboard-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin: 7px 0 0 !important;
  }

  body.shopos-iphone-shell .mobile-dashboard-action {
    display: grid !important;
    grid-template-columns: 25px minmax(0, 1fr) 8px !important;
    align-items: center !important;
    min-width: 0;
    min-height: 50px !important;
    padding: 7px 8px !important;
    gap: 6px !important;
    border: 1px solid #e5eaf2 !important;
    border-radius: 9px !important;
    background: #fff !important;
    box-shadow: 0 8px 22px rgba(22, 49, 91, 0.07) !important;
    color: #0a2048 !important;
    text-decoration: none !important;
  }

  body.shopos-iphone-shell .mobile-dashboard-action::after {
    display: none !important;
  }

  body.shopos-iphone-shell .shopos-mobile-action-icon {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    color: #075fe6;
  }

  body.shopos-iphone-shell .mobile-dashboard-action:nth-child(2) .shopos-mobile-action-icon { color: #0ca340; }
  body.shopos-iphone-shell .mobile-dashboard-action:nth-child(3) .shopos-mobile-action-icon { color: #7132d7; }
  body.shopos-iphone-shell .mobile-dashboard-action:nth-child(4) .shopos-mobile-action-icon { color: #f07900; }

  body.shopos-iphone-shell .shopos-mobile-action-icon svg {
    width: 22px;
    height: 22px;
  }

  body.shopos-iphone-shell .mobile-dashboard-action > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 1px;
  }

  body.shopos-iphone-shell .mobile-dashboard-action strong {
    color: #0a2048 !important;
    font-size: 0.7rem !important;
    line-height: 1.12 !important;
  }

  body.shopos-iphone-shell .mobile-dashboard-action small {
    color: #687b97 !important;
    font-size: 0.57rem !important;
    line-height: 1.15 !important;
  }

  body.shopos-iphone-shell .mobile-dashboard-action > b {
    color: #11305a;
    font-size: 1rem;
  }

  body.shopos-iphone-shell .shopos-phone-recent-activity {
    display: block;
    margin-top: 7px;
    padding: 9px 10px 3px;
    border: 1px solid #e5eaf2;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(22, 49, 91, 0.07);
  }

  body.shopos-iphone-shell .shopos-phone-activity-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 6px;
    border-bottom: 1px solid #e7ecf3;
  }

  body.shopos-iphone-shell .shopos-phone-activity-heading h3 {
    margin: 0;
    color: #0b2045;
    font-size: 0.78rem;
  }

  body.shopos-iphone-shell .shopos-phone-activity-heading a {
    color: #075fe6;
    font-size: 0.73rem;
    font-weight: 800;
    text-decoration: none;
  }

  body.shopos-iphone-shell .shopos-phone-activity-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 5px 0;
    border-bottom: 1px solid #edf1f6;
    color: #10274e;
    text-decoration: none;
  }

  body.shopos-iphone-shell .shopos-phone-activity-row:last-child { border-bottom: 0; }

  body.shopos-iphone-shell .shopos-phone-activity-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0a63df;
    color: #fff;
  }

  body.shopos-iphone-shell .shopos-phone-activity-icon.tone-payment { background: #0ba447; }
  body.shopos-iphone-shell .shopos-phone-activity-icon.tone-order { background: #f27d00; }
  body.shopos-iphone-shell .shopos-phone-activity-icon.tone-request { background: #0db7ab; }
  body.shopos-iphone-shell .shopos-phone-activity-icon.tone-invoice { background: #7135db; }

  body.shopos-iphone-shell .shopos-phone-activity-icon svg { width: 15px; height: 15px; }

  body.shopos-iphone-shell .shopos-phone-activity-copy,
  body.shopos-iphone-shell .shopos-phone-activity-meta {
    display: grid;
    min-width: 0;
    gap: 3px;
  }

  body.shopos-iphone-shell .shopos-phone-activity-copy strong {
    overflow: hidden;
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.shopos-iphone-shell .shopos-phone-activity-copy small,
  body.shopos-iphone-shell .shopos-phone-activity-meta small {
    color: #687b97;
    font-size: 0.66rem;
  }

  body.shopos-iphone-shell .shopos-phone-activity-meta {
    justify-items: end;
  }

  body.shopos-iphone-shell .shopos-phone-activity-meta strong {
    color: #0aa244;
    font-size: 0.72rem;
  }

  body.shopos-iphone-shell .shopos-phone-activity-empty {
    padding: 18px 4px;
    color: #687b97;
    font-size: 0.75rem;
  }

  body.shopos-iphone-shell .dashboard-reference-hero,
  body.shopos-iphone-shell .dashboard-overview-strip,
  body.shopos-iphone-shell #dashboardOverviewPanels,
  body.shopos-iphone-shell #dashboardOverviewView > .dashboard-panels,
  body.shopos-iphone-shell #dashboardOverviewView > .dashboard-section-grid,
  body.shopos-iphone-shell #dashboardOverviewView > [data-dashboard-section] {
    display: none !important;
  }

  body.shopos-iphone-shell .shopos-sparky-launcher {
    position: fixed;
    z-index: 1585;
    right: 9px;
    bottom: calc(51px + env(safe-area-inset-bottom, 0px));
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    filter: drop-shadow(0 9px 15px rgba(4, 40, 108, 0.28));
    cursor: pointer;
  }

  body.shopos-iphone-shell .shopos-sparky-launcher img {
    width: 46px;
    height: 46px;
    object-fit: contain;
  }

  body.shopos-iphone-shell .shopos-sparky-tip {
    position: absolute;
    right: 47px;
    bottom: 8px;
    display: grid;
    width: max-content;
    max-width: 135px;
    padding: 6px 8px;
    border-radius: 7px 7px 0 7px;
    background: #161b23;
    color: #fff;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    animation: shopos-sparky-tip 7s forwards;
  }

  body.shopos-iphone-shell .shopos-sparky-tip::after {
    content: "";
    position: absolute;
    right: -8px;
    bottom: 0;
    border: 8px solid transparent;
    border-bottom-color: #161b23;
  }

  body.shopos-iphone-shell .shopos-sparky-tip strong { font-size: 0.65rem; }
  body.shopos-iphone-shell .shopos-sparky-tip small { margin-top: 1px; font-size: 0.53rem; opacity: 0.86; }

  @keyframes shopos-sparky-tip {
    0%, 64% { opacity: 1; transform: translateY(0); }
    78%, 100% { opacity: 0; transform: translateY(4px); visibility: hidden; }
  }

  body.shopos-iphone-shell.modal-open .shopos-sparky-launcher,
  body.shopos-iphone-shell.shopos-sparky-open .shopos-sparky-launcher,
  body.shopos-iphone-shell:has(input[type="file"][accept*="image"]:focus) .shopos-sparky-launcher {
    display: none !important;
  }

  body.shopos-iphone-shell .shopos-sparky-overlay {
    position: fixed;
    z-index: 1900;
    inset: 0;
    display: block;
  }

  body.shopos-iphone-shell .shopos-sparky-overlay[hidden] { display: none !important; }

  body.shopos-iphone-shell .shopos-sparky-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(4, 14, 32, 0.48);
    backdrop-filter: blur(3px);
  }

  body.shopos-iphone-shell .shopos-sparky-sheet {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: 100%;
    max-height: min(82vh, 720px);
    min-height: 52vh;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: #f7f9fc;
    box-shadow: 0 -18px 50px rgba(4, 17, 40, 0.25);
  }

  body.shopos-iphone-shell .shopos-sparky-header {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto 40px;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #e1e8f2;
    background: #fff;
  }

  body.shopos-iphone-shell .shopos-sparky-header > img {
    width: 50px;
    height: 50px;
    object-fit: contain;
  }

  body.shopos-iphone-shell .shopos-sparky-header > span { display: grid; gap: 3px; }
  body.shopos-iphone-shell .shopos-sparky-header strong { color: #071d47; font-size: 1rem; }
  body.shopos-iphone-shell .shopos-sparky-header small { color: #617592; font-size: 0.71rem; }

  body.shopos-iphone-shell .shopos-sparky-header > button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #edf2f8;
    color: #17335e;
    font-size: 1.55rem;
  }

  body.shopos-iphone-shell .shopos-sparky-header > .shopos-sparky-reset {
    width: auto;
    padding: 0 9px;
    border-radius: 10px;
    color: #075fe5;
    font-size: 0.68rem;
    font-weight: 800;
  }

  body.shopos-iphone-shell .shopos-sparky-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px;
    -webkit-overflow-scrolling: touch;
  }

  body.shopos-iphone-shell .shopos-sparky-turn + .shopos-sparky-turn { margin-top: 16px; }

  body.shopos-iphone-shell .shopos-sparky-welcome,
  body.shopos-iphone-shell .shopos-sparky-answer,
  body.shopos-iphone-shell .shopos-sparky-error,
  body.shopos-iphone-shell .shopos-sparky-empty {
    padding: 14px;
    border: 1px solid #dce5f2;
    border-radius: 12px;
    background: #fff;
    color: #10274e;
  }

  body.shopos-iphone-shell .shopos-sparky-welcome p,
  body.shopos-iphone-shell .shopos-sparky-error p {
    margin: 6px 0 0;
    color: #617592;
    font-size: 0.78rem;
    line-height: 1.45;
  }

  body.shopos-iphone-shell .shopos-sparky-welcome > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
  }

  body.shopos-iphone-shell [data-sparky-prompt] {
    min-height: 35px;
    padding: 7px 10px;
    border: 1px solid #cddbf0;
    border-radius: 7px;
    background: #f5f8fd;
    color: #0756cc;
    font-size: 0.7rem;
    font-weight: 760;
  }

  body.shopos-iphone-shell .shopos-sparky-query {
    width: fit-content;
    max-width: 88%;
    margin: 0 0 12px auto;
    padding: 9px 12px;
    border-radius: 12px 12px 3px 12px;
    background: #075fe5;
    color: #fff;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  body.shopos-iphone-shell .shopos-sparky-answer {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 12px;
  }

  body.shopos-iphone-shell .shopos-sparky-answer img { width: 38px; height: 38px; object-fit: contain; }
  body.shopos-iphone-shell .shopos-sparky-answer p { margin: 0; color: #10274e; font-size: 0.78rem; line-height: 1.48; }

  body.shopos-iphone-shell .shopos-sparky-thinking {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #5f7290;
    font-size: 0.76rem;
  }

  body.shopos-iphone-shell .shopos-sparky-thinking span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #075fe5;
    animation: shopos-sparky-dot 0.9s infinite alternate;
  }

  body.shopos-iphone-shell .shopos-sparky-thinking span:nth-child(2) { animation-delay: 0.15s; }
  body.shopos-iphone-shell .shopos-sparky-thinking span:nth-child(3) { animation-delay: 0.3s; }
  @keyframes shopos-sparky-dot { to { opacity: 0.28; transform: translateY(-3px); } }

  body.shopos-iphone-shell .shopos-sparky-result-section { margin-top: 12px; }
  body.shopos-iphone-shell .shopos-sparky-result-section h4 { margin: 0 0 7px; color: #122b51; font-size: 0.75rem; }

  body.shopos-iphone-shell .shopos-sparky-result {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 11px;
    align-items: center;
    width: 100%;
    min-height: 62px;
    margin-top: 6px;
    padding: 8px;
    gap: 9px;
    border: 1px solid #dee6f1;
    border-radius: 10px;
    background: #fff;
    color: #10274e;
    text-decoration: none;
    text-align: left;
  }

  body.shopos-iphone-shell .shopos-sparky-result img,
  body.shopos-iphone-shell .shopos-sparky-result-mark {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #eaf2ff;
    object-fit: cover;
  }

  body.shopos-iphone-shell .shopos-sparky-result-mark::before {
    content: "S";
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #075fe5;
    font-weight: 900;
  }

  body.shopos-iphone-shell .shopos-sparky-result > span { display: grid; min-width: 0; gap: 2px; }
  body.shopos-iphone-shell .shopos-sparky-result strong { overflow: hidden; font-size: 0.75rem; text-overflow: ellipsis; white-space: nowrap; }
  body.shopos-iphone-shell .shopos-sparky-result small { overflow: hidden; color: #627692; font-size: 0.66rem; text-overflow: ellipsis; white-space: nowrap; }
  body.shopos-iphone-shell .shopos-sparky-result em { color: #0758ce; font-size: 0.65rem; font-style: normal; font-weight: 760; }
  body.shopos-iphone-shell .shopos-sparky-result > b { color: #27466f; font-size: 1.35rem; }

  body.shopos-iphone-shell .shopos-sparky-actions { display: grid; gap: 7px; margin-top: 11px; }
  body.shopos-iphone-shell .shopos-sparky-actions button {
    display: flex; align-items: center; justify-content: space-between; min-height: 43px; padding: 9px 12px;
    border: 1px solid #b9d2f7; border-radius: 9px; background: #eef5ff; color: #0758ce; font-size: 0.76rem; font-weight: 800; text-align: left;
  }

  body.shopos-iphone-shell .shopos-sparky-form {
    display: grid;
    gap: 5px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #dfe7f1;
    background: #fff;
  }

  body.shopos-iphone-shell .shopos-sparky-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    gap: 7px;
  }

  body.shopos-iphone-shell .shopos-sparky-form input {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 13px;
    border: 1px solid #cad7e8;
    border-radius: 10px;
    background: #f8fafd;
    color: #0d244a;
    font-size: 16px;
  }

  body.shopos-iphone-shell .shopos-sparky-input-row > button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #075fe5;
    color: #fff;
  }

  body.shopos-iphone-shell .shopos-sparky-input-row > button svg { width: 21px; height: 21px; }

  body.shopos-iphone-shell .shopos-sparky-input-row > .shopos-sparky-mic {
    border-color: #c9d8ed;
    background: #f4f8fe;
    color: #075fe5;
  }

  body.shopos-iphone-shell .shopos-sparky-input-row > .shopos-sparky-mic.is-listening {
    border-color: #ef4444;
    background: #fff1f2;
    color: #c52323;
    animation: shopos-sparky-listening 1.1s ease-in-out infinite;
  }

  body.shopos-iphone-shell .shopos-sparky-input-row > .shopos-sparky-mic.is-unavailable {
    color: #687a94;
  }

  body.shopos-iphone-shell .shopos-sparky-voice-status {
    margin: 0;
    color: #5c708e;
    font-size: 0.66rem;
    line-height: 1.35;
  }

  body.shopos-iphone-shell .shopos-sparky-voice-status[data-state="listening"] { color: #b42318; }
  body.shopos-iphone-shell .shopos-sparky-voice-status[data-state="error"] { color: #a32119; }
  @keyframes shopos-sparky-listening { 50% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.13); } }
  body.shopos-iphone-shell .shopos-sparky-form.is-busy { opacity: 0.68; pointer-events: none; }

  html body.shopos-iphone-shell .topbar .topbar-inner {
    grid-template-columns: 40px minmax(0, 1fr) 40px !important;
    grid-template-rows: 42px !important;
    grid-auto-rows: 0 !important;
    gap: 8px !important;
  }

  html body.shopos-iphone-shell .topbar .dashboard-phone-brand {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  html body.shopos-iphone-shell .topbar .dashboard-action-row {
    grid-column: 3 !important;
    grid-row: 1 !important;
    width: 40px !important;
    height: 42px !important;
    padding: 0 !important;
  }

  html body.shopos-iphone-shell .topbar .app-shell-menu-btn,
  html body.shopos-iphone-shell .topbar .notification-icon-btn {
    box-sizing: border-box !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }

  html body.shopos-iphone-shell .mobile-dashboard-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 5px !important;
    margin-top: 6px !important;
  }

  html body.shopos-iphone-shell .mobile-dashboard-actions .mobile-dashboard-action {
    grid-template-columns: 23px minmax(0, 1fr) 7px !important;
    min-height: 46px !important;
    padding: 6px 7px !important;
    gap: 5px !important;
  }

  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell) .mobile-dashboard-intro {
    display: contents !important;
  }

  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell) .mobile-dashboard-welcome {
    min-height: 148px !important;
    padding: 15px 15px 13px !important;
  }

  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell) .mobile-shop-metrics {
    position: static !important;
    z-index: auto !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
    margin: 6px 0 0 !important;
  }

  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell) .mobile-shop-metric {
    grid-template-columns: 26px minmax(0, 1fr) 5px !important;
    align-items: center !important;
    min-height: 76px !important;
    padding: 6px 5px !important;
    gap: 4px !important;
    border-radius: 9px !important;
  }

  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell) .mobile-shop-metric-icon {
    width: 26px !important;
    height: 26px !important;
  }

  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell) .mobile-shop-metric-icon svg {
    width: 14px !important;
    height: 14px !important;
  }

  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell) .mobile-shop-metric-copy {
    gap: 1px !important;
  }

  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell) .mobile-shop-metric-copy > span {
    min-height: 18px !important;
    overflow-wrap: normal !important;
    font-size: 0.48rem !important;
    line-height: 1.08 !important;
  }

  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell) .mobile-shop-metric-copy > strong {
    margin-top: 0 !important;
    font-size: 0.94rem !important;
  }

  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell) .mobile-shop-metric-copy > small {
    margin-top: 2px !important;
    overflow-wrap: normal !important;
    font-size: 0.43rem !important;
    line-height: 1.1 !important;
  }

  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell) .mobile-shop-metric-chevron {
    font-size: 0.9rem !important;
  }

  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell) .mobile-dashboard-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 5px !important;
    margin-top: 6px !important;
  }

  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell) .mobile-dashboard-actions .mobile-dashboard-action {
    display: grid !important;
    grid-template-columns: 23px minmax(0, 1fr) 7px !important;
    min-height: 46px !important;
    padding: 6px 7px !important;
    gap: 5px !important;
    align-items: center !important;
    justify-content: stretch !important;
    text-align: left !important;
  }

  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell) .mobile-dashboard-action::after {
    content: none !important;
    display: none !important;
  }

  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell) .mobile-dashboard-action > span:nth-child(2) {
    display: grid !important;
    min-width: 0 !important;
    width: auto !important;
    gap: 1px !important;
  }

  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell) .mobile-dashboard-action strong,
  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell) .mobile-dashboard-action small {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell) .mobile-dashboard-action strong {
    font-size: 0.66rem !important;
  }

  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell) .mobile-dashboard-action small {
    font-size: 0.54rem !important;
  }

  body.shopos-iphone-shell .shopos-sparky-launcher {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  body.shopos-iphone-shell .shopos-sparky-overlay.is-keyboard-open .shopos-sparky-sheet {
    top: 0;
    bottom: auto;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    border-radius: 14px 14px 0 0;
  }

  body.shopos-iphone-shell .parts-topbar {
    min-height: 0 !important;
    height: auto !important;
    padding: calc(7px + env(safe-area-inset-top, 0px)) 10px 8px !important;
    overflow: visible !important;
    border-bottom: 1px solid #e1e8f2 !important;
  }

  body.shopos-iphone-shell .parts-topbar .parts-topbar-grid,
  body.shopos-iphone-shell .parts-topbar .parts-topbar-grid:has(.app-shell-menu-btn) {
    grid-template-columns: 40px minmax(0, 1fr) 40px !important;
    grid-template-rows: 42px auto auto !important;
    grid-auto-rows: auto !important;
    align-items: center !important;
    width: 100% !important;
    height: auto !important;
    gap: 7px 8px !important;
  }

  body.shopos-iphone-shell .parts-topbar .app-shell-back-btn {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  body.shopos-iphone-shell .parts-topbar .app-shell-menu-btn {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }

  body.shopos-iphone-shell .parts-topbar .parts-title-copy,
  body.shopos-iphone-shell .parts-topbar .parts-topbar-grid:has(.app-shell-menu-btn) .parts-title-copy {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    height: auto !important;
  }

  body.shopos-iphone-shell .parts-topbar .parts-title-copy > h2,
  body.shopos-iphone-shell .parts-topbar .parts-title-copy > p {
    display: none !important;
  }

  body.shopos-iphone-shell .parts-topbar .app-phone-brand {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    gap: 7px !important;
  }

  body.shopos-iphone-shell .parts-topbar .app-phone-brand img {
    display: block !important;
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    flex: 0 0 38px !important;
    object-fit: contain !important;
  }

  body.shopos-iphone-shell .parts-topbar .app-phone-brand > span {
    display: grid !important;
    min-width: 0 !important;
    gap: 1px !important;
  }

  body.shopos-iphone-shell .parts-topbar .app-phone-brand strong {
    color: #0a1d3d !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  body.shopos-iphone-shell .parts-topbar .app-phone-brand strong b {
    color: #0868ee !important;
  }

  body.shopos-iphone-shell .parts-topbar .app-phone-brand small {
    overflow: hidden !important;
    color: #5d7190 !important;
    font-size: 0.62rem !important;
    line-height: 1.1 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.shopos-iphone-shell .parts-topbar .parts-header-search-shell,
  body.shopos-iphone-shell .parts-topbar .parts-topbar-grid:has(.app-shell-menu-btn) .parts-header-search-shell {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    height: auto !important;
    gap: 5px !important;
  }

  body.shopos-iphone-shell .parts-topbar .parts-header-search {
    grid-template-columns: minmax(0, 1fr) 78px !important;
    min-height: 42px !important;
    padding: 3px 3px 3px 10px !important;
    border: 1px solid #d9e4f1 !important;
    border-radius: 10px !important;
  }

  body.shopos-iphone-shell .parts-topbar .parts-header-search > #partsSearchInput {
    min-width: 0 !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 7px 8px 7px 26px !important;
    font-size: 16px !important;
  }

  body.shopos-iphone-shell .parts-topbar .parts-header-search .btn-primary {
    min-width: 0 !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    font-size: 0.76rem !important;
  }

  body.shopos-iphone-shell .parts-topbar .parts-search-input-wrap::before {
    top: 15px !important;
    left: 14px !important;
  }

  body.shopos-iphone-shell .parts-topbar .parts-search-input-wrap::after {
    top: 28px !important;
    left: 26px !important;
  }

  body.shopos-iphone-shell .parts-topbar .parts-search-context-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 3px !important;
    padding: 0 !important;
  }

  body.shopos-iphone-shell .parts-topbar .parts-search-context,
  body.shopos-iphone-shell .parts-topbar .parts-search-context-trigger {
    width: 100% !important;
    max-width: none !important;
  }

  body.shopos-iphone-shell .parts-topbar .parts-search-context-trigger {
    min-height: 36px !important;
    padding: 6px 9px !important;
    border-radius: 9px !important;
  }

  body.shopos-iphone-shell .parts-topbar .parts-search-context-note {
    display: none !important;
  }

  body.shopos-iphone-shell .parts-topbar .parts-header-search-status {
    display: none !important;
  }

  body.shopos-iphone-shell .parts-topbar .topbar-actions-right,
  body.shopos-iphone-shell .parts-topbar .parts-topbar-grid:has(.app-shell-menu-btn) .topbar-actions-right {
    display: grid !important;
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    gap: 5px !important;
  }

  body.shopos-iphone-shell .parts-topbar .saved-parts-trigger-button,
  body.shopos-iphone-shell .parts-topbar .open-ai-assistant-button,
  body.shopos-iphone-shell .parts-topbar .cart-trigger-button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 5px 4px !important;
    gap: 4px !important;
    border-radius: 8px !important;
    font-size: 0.66rem !important;
    white-space: nowrap !important;
  }

  body.shopos-iphone-shell .content.parts-layout {
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 10px 14px !important;
  }

  body.shopos-iphone-shell .results-card {
    min-height: 0 !important;
    padding: 11px !important;
    border-radius: 10px !important;
  }

  body.shopos-iphone-shell .results-card > .section-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    padding: 0 0 9px !important;
    gap: 7px !important;
  }

  body.shopos-iphone-shell .results-card .section-header h3 {
    margin: 0 !important;
    font-size: 1rem !important;
  }

  body.shopos-iphone-shell .results-card .section-header p {
    margin: 2px 0 0 !important;
    font-size: 0.68rem !important;
    line-height: 1.25 !important;
  }

  body.shopos-iphone-shell .results-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    gap: 5px !important;
  }

  body.shopos-iphone-shell .results-actions .btn-secondary {
    min-height: 34px !important;
    padding: 5px 7px !important;
    border-radius: 8px !important;
    font-size: 0.66rem !important;
  }

  body.shopos-iphone-shell .parts-results .empty-state {
    min-height: 130px !important;
    padding: 16px 8px 10px !important;
  }

  body.shopos-iphone-shell .parts-results .empty-state::before {
    width: 44px !important;
    height: 44px !important;
    margin-bottom: 8px !important;
    font-size: 1.15rem !important;
  }

  body.shopos-iphone-shell .parts-results .empty-state h3 {
    margin-bottom: 4px !important;
    font-size: 0.9rem !important;
  }

  body.shopos-iphone-shell .parts-results .empty-state p {
    font-size: 0.7rem !important;
    line-height: 1.3 !important;
  }

  body.shopos-iphone-shell .parts-load-more[hidden] {
    display: none !important;
  }

  /* Invoices: phone-only compact workspace. Tablet and desktop keep their existing layout. */
  body.shopos-iphone-shell .invoice-subtabs {
    width: 100% !important;
    max-width: none !important;
    min-height: 54px !important;
    margin: 2px 0 12px !important;
    padding: 5px !important;
    gap: 5px !important;
    border: 1px solid rgba(207, 221, 239, 0.82) !important;
    border-radius: 21px !important;
    background: rgba(255, 255, 255, 0.84) !important;
    box-shadow: 0 7px 20px rgba(34, 66, 109, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
  }

  body.shopos-iphone-shell .invoice-subtab {
    flex: 1 1 50% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    padding: 8px 7px !important;
    gap: 7px !important;
    border: 1px solid rgba(255, 255, 255, 0.96) !important;
    border-radius: 17px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    color: #2b436a !important;
    box-shadow: 0 2px 8px rgba(38, 72, 113, 0.035) !important;
    font-size: 0.76rem !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
  }

  body.shopos-iphone-shell .invoice-subtab.active {
    border-color: transparent !important;
    background: linear-gradient(135deg, #197bf9 0%, #0759e1 100%) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(7, 91, 224, 0.21) !important;
  }

  body.shopos-iphone-shell .invoice-subtab-icon {
    width: 21px !important;
    height: 21px !important;
    flex: 0 0 21px !important;
    font-size: 0 !important;
  }

  body.shopos-iphone-shell .invoice-subtab-icon svg {
    display: block !important;
    width: 21px !important;
    height: 21px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.9 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

  body.shopos-iphone-shell .invoice-pane.active,
  body.shopos-iphone-shell .invoice-workspace-overview {
    gap: 10px !important;
  }

  body.shopos-iphone-shell .invoice-workspace-heading {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: stretch !important;
  }

  body.shopos-iphone-shell .invoice-workspace-heading h1 {
    font-size: 1.65rem !important;
    line-height: 1.05 !important;
    letter-spacing: -0.035em !important;
  }

  body.shopos-iphone-shell .invoice-workspace-heading p {
    margin-top: 6px !important;
    font-size: 0.76rem !important;
    line-height: 1.4 !important;
  }

  body.shopos-iphone-shell .invoice-workspace-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  body.shopos-iphone-shell .invoice-action-button {
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 8px 7px !important;
    border-radius: 10px !important;
    font-size: 0.73rem !important;
    white-space: nowrap !important;
  }

  body.shopos-iphone-shell .invoice-status-summary-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }

  body.shopos-iphone-shell .invoice-status-summary-card {
    display: flex !important;
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 3px !important;
    text-align: center !important;
    border-width: 1px !important;
    border-left-width: 1px !important;
    border-radius: 11px !important;
    box-shadow: 0 5px 13px rgba(35, 72, 115, 0.045) !important;
    scroll-snap-align: none !important;
  }

  body.shopos-iphone-shell .invoice-summary-icon {
    position: relative !important;
    width: 23px !important;
    height: 23px !important;
    flex: 0 0 23px !important;
    font-size: 0 !important;
  }

  body.shopos-iphone-shell .invoice-summary-icon::before {
    content: "";
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
  }

  body.shopos-iphone-shell .invoice-status-summary-card:nth-child(1) .invoice-summary-icon::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h14v18H5zM8 7h8M8 11h8M8 15h8M8 19h8'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h14v18H5zM8 7h8M8 11h8M8 15h8M8 19h8'/%3E%3C/svg%3E");
  }

  body.shopos-iphone-shell .invoice-status-summary-card:nth-child(2) .invoice-summary-icon::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
  }

  body.shopos-iphone-shell .invoice-status-summary-card:nth-child(3) .invoice-summary-icon::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5 5L3 18v3h3l6.7-6.7a4 4 0 0 0 5-5l-2.4 2.4-3-3z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5 5L3 18v3h3l6.7-6.7a4 4 0 0 0 5-5l-2.4 2.4-3-3z'/%3E%3C/svg%3E");
  }

  body.shopos-iphone-shell .invoice-status-summary-card:nth-child(4) .invoice-summary-icon::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 2.5 2.5L16 9'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 2.5 2.5L16 9'/%3E%3C/svg%3E");
  }

  body.shopos-iphone-shell .invoice-status-summary-card:nth-child(5) .invoice-summary-icon::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M14.5 8.5h-4a2 2 0 0 0 0 4h3a2 2 0 0 1 0 4h-4M12 6.5v12'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M14.5 8.5h-4a2 2 0 0 0 0 4h3a2 2 0 0 1 0 4h-4M12 6.5v12'/%3E%3C/svg%3E");
  }

  body.shopos-iphone-shell .invoice-status-summary-card > span:last-child {
    display: grid !important;
    justify-items: center !important;
    gap: 1px !important;
    width: 100% !important;
  }

  body.shopos-iphone-shell .invoice-status-summary-card small {
    overflow: visible !important;
    font-size: 0.54rem !important;
    line-height: 1.08 !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }

  body.shopos-iphone-shell .invoice-status-summary-card strong {
    font-size: 0.9rem !important;
    line-height: 1 !important;
  }

  body.shopos-iphone-shell .invoice-status-summary-card em {
    display: none !important;
  }

  body.shopos-iphone-shell .invoice-list-section {
    margin-top: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  body.shopos-iphone-shell .invoice-filter-bar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 46px !important;
    gap: 8px !important;
    margin: 0 !important;
  }

  body.shopos-iphone-shell .invoice-search-shell {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-height: 46px !important;
    box-sizing: border-box !important;
    padding: 0 13px !important;
    border: 1px solid #cbdcf0 !important;
    border-radius: 12px !important;
  }

  body.shopos-iphone-shell .invoice-search-icon {
    width: 21px !important;
    height: 21px !important;
    flex: 0 0 21px !important;
  }

  body.shopos-iphone-shell .invoice-search-input {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 16px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
  }

  body.shopos-iphone-shell .invoice-search-options {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 46px !important;
    min-height: 46px !important;
    border-radius: 12px !important;
  }

  body.shopos-iphone-shell .invoice-create-wide {
    width: 100% !important;
    min-height: 45px !important;
    border-radius: 11px !important;
    font-size: 0.8rem !important;
  }

  body.shopos-iphone-shell .invoice-sort-btn {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-height: 40px !important;
    padding: 8px 10px !important;
    font-size: 0.72rem !important;
  }

  body.shopos-iphone-shell .invoice-more-filters-btn {
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: 46px !important;
    min-height: 40px !important;
    padding: 8px 6px !important;
    overflow: hidden !important;
    font-size: 0.68rem !important;
  }

  body.shopos-iphone-shell .invoice-filter-menu {
    top: calc(100% + 6px) !important;
    right: 0 !important;
    left: auto !important;
    min-width: 180px !important;
  }

  body.shopos-iphone-shell .invoice-count-line {
    display: flex !important;
    margin: 9px 0 !important;
    padding-bottom: 2px !important;
    overflow-x: auto !important;
  }

  body.shopos-iphone-shell .invoice-count-chip {
    min-height: 26px !important;
    padding: 4px 10px !important;
    border: 1px solid #cbdcf0 !important;
    background: #fff !important;
    font-size: 0.64rem !important;
  }

  body.shopos-iphone-shell .invoice-count-chip.active {
    border-color: #9fc4ff !important;
    background: #edf5ff !important;
  }

  body.shopos-iphone-shell .invoice-count-chip strong {
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 4px !important;
    font-size: 0.61rem !important;
  }

  body.shopos-iphone-shell .invoice-table-frame {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  body.shopos-iphone-shell .invoice-workflow-list {
    display: grid !important;
    gap: 9px !important;
  }

  body.shopos-iphone-shell .invoice-record-card,
  body.shopos-iphone-shell .invoice-record-card:last-child {
    position: relative !important;
    overflow: visible !important;
    padding: 0 !important;
    border: 1px solid #d3e0ef !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 6px 17px rgba(35, 72, 115, 0.06) !important;
  }

  body.shopos-iphone-shell .invoice-record-card.selected {
    border-color: #9fc4ff !important;
    box-shadow: 0 0 0 2px rgba(12, 108, 242, 0.08) !important;
  }

  body.shopos-iphone-shell .invoice-record-main {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: auto auto auto auto !important;
    gap: 7px 8px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 11px !important;
  }

  body.shopos-iphone-shell .invoice-record-main > .invoice-record-cell:nth-child(1) {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    padding: 0 42px 0 0 !important;
  }

  body.shopos-iphone-shell .invoice-record-main > .invoice-record-cell:nth-child(2) {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  body.shopos-iphone-shell .invoice-record-main > .invoice-record-cell:nth-child(3) {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  body.shopos-iphone-shell .invoice-record-main > .invoice-record-cell:nth-child(4) {
    grid-column: 1 !important;
    grid-row: 3 !important;
    padding-right: 72px !important;
  }

  body.shopos-iphone-shell .invoice-record-main > .invoice-record-status {
    grid-column: 1 !important;
    grid-row: 3 !important;
    align-self: center !important;
    justify-self: end !important;
    width: auto !important;
    padding: 0 !important;
    z-index: 1 !important;
  }

  body.shopos-iphone-shell .invoice-record-main > .invoice-record-cell:nth-child(6) {
    grid-column: 1 !important;
    grid-row: 4 !important;
  }

  body.shopos-iphone-shell .invoice-record-main > .invoice-record-cell:nth-child(7) {
    grid-column: 2 !important;
    grid-row: 4 !important;
  }

  body.shopos-iphone-shell .invoice-record-main > .invoice-record-action {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: auto !important;
    padding: 0 !important;
  }

  body.shopos-iphone-shell .invoice-record-main > .invoice-record-cell:nth-child(2),
  body.shopos-iphone-shell .invoice-record-main > .invoice-record-cell:nth-child(3),
  body.shopos-iphone-shell .invoice-record-main > .invoice-record-cell:nth-child(4),
  body.shopos-iphone-shell .invoice-record-main > .invoice-record-cell:nth-child(6),
  body.shopos-iphone-shell .invoice-record-main > .invoice-record-cell:nth-child(7) {
    position: relative !important;
    display: flex !important;
    min-height: 31px !important;
    padding-left: 36px !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  body.shopos-iphone-shell .invoice-record-main > .invoice-record-cell:nth-child(6),
  body.shopos-iphone-shell .invoice-record-main > .invoice-record-cell:nth-child(7) {
    min-height: 40px !important;
    padding-top: 8px !important;
    border-top: 1px solid #dce6f1 !important;
  }

  body.shopos-iphone-shell .invoice-record-main > .invoice-record-cell:nth-child(2)::before,
  body.shopos-iphone-shell .invoice-record-main > .invoice-record-cell:nth-child(3)::before,
  body.shopos-iphone-shell .invoice-record-main > .invoice-record-cell:nth-child(4)::before,
  body.shopos-iphone-shell .invoice-record-main > .invoice-record-cell:nth-child(6)::before,
  body.shopos-iphone-shell .invoice-record-main > .invoice-record-cell:nth-child(7)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #eef5ff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    transform: translateY(-50%);
  }

  body.shopos-iphone-shell .invoice-record-main > .invoice-record-cell:nth-child(2)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b416f' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5.5 20c0-3.6 2.9-6.5 6.5-6.5s6.5 2.9 6.5 6.5'/%3E%3C/svg%3E");
  }

  body.shopos-iphone-shell .invoice-record-main > .invoice-record-cell:nth-child(3)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b416f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 16 1.5-6h11l1.5 6M3 16h18v4h-3v-2H6v2H3zM7 13h.01M17 13h.01'/%3E%3C/svg%3E");
  }

  body.shopos-iphone-shell .invoice-record-main > .invoice-record-cell:nth-child(4)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b416f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5 5L3 18v3h3l6.7-6.7a4 4 0 0 0 5-5l-2.4 2.4-3-3z'/%3E%3C/svg%3E");
  }

  body.shopos-iphone-shell .invoice-record-main > .invoice-record-cell:nth-child(6)::before {
    background-color: #e7f8ec;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23118b42' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M14.5 8.5h-4a2 2 0 0 0 0 4h3a2 2 0 0 1 0 4h-4M12 6.5v12'/%3E%3C/svg%3E");
  }

  body.shopos-iphone-shell .invoice-record-main > .invoice-record-cell:nth-child(7)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b416f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E");
  }

  body.shopos-iphone-shell .invoice-record-cell {
    font-size: 0.68rem !important;
    line-height: 1.35 !important;
  }

  body.shopos-iphone-shell .invoice-record-cell strong {
    font-size: 0.75rem !important;
  }

  body.shopos-iphone-shell .invoice-record-main > .invoice-record-cell:nth-child(1) strong {
    font-size: 0.9rem !important;
  }

  body.shopos-iphone-shell .invoice-record-main > .invoice-record-cell:nth-child(1) span {
    margin-top: 3px !important;
    font-size: 0.73rem !important;
  }

  body.shopos-iphone-shell .invoice-record-status .invoice-flags {
    margin: 0 !important;
  }

  body.shopos-iphone-shell .invoice-record-status .status-flag {
    padding: 4px 7px !important;
    font-size: 0.59rem !important;
    white-space: nowrap !important;
  }

  body.shopos-iphone-shell .invoice-record-more {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 10px !important;
  }

  /* Premium iPhone dashboard: hero, three-card overview, performance, activity. */
  body.shopos-iphone-shell[data-dashboard-view="overview"] .dashboard-grid {
    gap: 11px !important;
    padding: 7px 10px 12px !important;
  }

  body.shopos-iphone-shell .mobile-dashboard-intro {
    display: grid !important;
    gap: 11px !important;
  }

  body.shopos-iphone-shell .mobile-dashboard-welcome {
    min-height: 103px !important;
    padding: 14px 16px !important;
    border: 1px solid rgba(65, 146, 255, 0.6) !important;
    border-radius: 14px !important;
    background-image:
      linear-gradient(90deg, rgba(3, 29, 77, 0.98) 0%, rgba(5, 52, 134, 0.93) 55%, rgba(4, 93, 213, 0.62) 100%),
      url("build/email-hero-performance.jpg") !important;
    background-position: center, right center !important;
    background-repeat: no-repeat !important;
    background-size: cover, cover !important;
    box-shadow: 0 12px 28px rgba(5, 44, 111, 0.2) !important;
  }

  body.shopos-iphone-shell .mobile-dashboard-welcome::after {
    right: -44px !important;
    bottom: -104px !important;
    width: 210px !important;
    height: 210px !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }

  body.shopos-iphone-shell .mobile-dashboard-kicker {
    position: relative;
    z-index: 1;
    width: 58%;
    margin: 0 0 5px !important;
    color: #4ba8ff !important;
    font-size: 0.64rem !important;
    letter-spacing: 0.035em !important;
  }

  body.shopos-iphone-shell .mobile-dashboard-welcome > strong {
    position: relative;
    z-index: 1;
    display: block !important;
    max-width: 60% !important;
    overflow: hidden;
    font-size: 1.52rem !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.shopos-iphone-shell .mobile-dashboard-welcome > p {
    position: relative;
    z-index: 1;
    max-width: 58% !important;
    margin-top: 5px !important;
    font-size: 0.72rem !important;
  }

  body.shopos-iphone-shell .shopos-mobile-dashboard-context {
    position: absolute !important;
    top: 16px !important;
    right: 14px !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 2 !important;
    display: grid !important;
    justify-items: end;
    width: 40%;
    margin: 0 !important;
    gap: 7px !important;
    text-align: right;
  }

  body.shopos-iphone-shell .shopos-mobile-dashboard-context b {
    max-width: 100%;
    overflow: hidden;
    color: #fff !important;
    font-size: 0.65rem !important;
    font-weight: 760;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.shopos-iphone-shell .shopos-mobile-dashboard-context span {
    max-width: 100%;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.61rem;
    font-weight: 680;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.shopos-iphone-shell .shopos-phone-overview-card,
  body.shopos-iphone-shell .shopos-phone-revenue-card,
  body.shopos-iphone-shell .shopos-phone-recent-activity {
    box-sizing: border-box;
    margin: 0 !important;
    border: 1px solid #dfe7f2 !important;
    border-radius: 13px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 9px 24px rgba(19, 50, 94, 0.08) !important;
  }

  body.shopos-iphone-shell .shopos-phone-overview-card {
    padding: 10px 10px 9px;
  }

  body.shopos-iphone-shell .shopos-phone-overview-card > header,
  body.shopos-iphone-shell .shopos-phone-revenue-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
  }

  body.shopos-iphone-shell .shopos-phone-overview-card > header h3,
  body.shopos-iphone-shell .shopos-phone-revenue-card h3 {
    margin: 0;
    color: #0a2148;
    font-size: 0.9rem;
    letter-spacing: -0.02em;
  }

  body.shopos-iphone-shell .shopos-phone-overview-card > header button {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 2px 4px 8px;
    gap: 5px;
    border: 0;
    background: transparent;
    color: #0765e8;
    font-size: 0.7rem;
    font-weight: 850;
  }

  body.shopos-iphone-shell .shopos-phone-overview-card > header button span {
    color: #173a69;
    font-size: 1rem;
  }

  body.shopos-iphone-shell .mobile-shop-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin: 5px 0 0 !important;
  }

  body.shopos-iphone-shell .mobile-shop-metric,
  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell) .mobile-shop-metric {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    align-items: start !important;
    min-height: 76px !important;
    padding: 8px 5px !important;
    gap: 5px !important;
    border: 0 !important;
    border-right: 1px solid #e8eef6 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.shopos-iphone-shell .mobile-shop-metric:last-of-type {
    border-right: 0 !important;
  }

  body.shopos-iphone-shell .mobile-shop-metric-icon,
  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell) .mobile-shop-metric-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 12px !important;
  }

  body.shopos-iphone-shell .mobile-shop-metric-icon svg,
  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell) .mobile-shop-metric-icon svg {
    width: 19px !important;
    height: 19px !important;
  }

  body.shopos-iphone-shell .mobile-shop-metric-copy {
    display: grid !important;
    min-width: 0;
    gap: 2px !important;
  }

  body.shopos-iphone-shell .mobile-shop-metric-copy > strong,
  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell) .mobile-shop-metric-copy > strong {
    order: 0;
    margin: 0 !important;
    overflow: hidden;
    color: #061b3f !important;
    font-size: 0.98rem !important;
    line-height: 1.05 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.shopos-iphone-shell .mobile-shop-metric-copy > span,
  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell) .mobile-shop-metric-copy > span {
    order: 1;
    min-height: 0 !important;
    color: #0b2147 !important;
    font-size: 0.54rem !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
    text-transform: none !important;
  }

  body.shopos-iphone-shell .mobile-shop-metric-copy > small,
  html body.native-app-shell.shopos-iphone-shell:not(.tablet-native-shell) .mobile-shop-metric-copy > small {
    order: 2;
    margin: 0 !important;
    color: #6a7d99 !important;
    font-size: 0.48rem !important;
    font-weight: 560 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
  }

  body.shopos-iphone-shell .mobile-dashboard-actions {
    display: none !important;
  }

  body.shopos-iphone-shell .shopos-phone-revenue-card {
    padding: 11px 12px 10px;
  }

  body.shopos-iphone-shell .shopos-phone-revenue-card > header > span {
    display: grid;
    gap: 2px;
  }

  body.shopos-iphone-shell .shopos-phone-revenue-card > header small {
    color: #6b7e99;
    font-size: 0.62rem;
  }

  body.shopos-iphone-shell .shopos-phone-revenue-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 142px;
    padding: 2px;
    border-radius: 9px;
    background: #edf2f8;
  }

  body.shopos-iphone-shell .shopos-phone-revenue-tabs button {
    min-height: 28px;
    padding: 3px 5px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #637793;
    font-size: 0.65rem;
    font-weight: 850;
  }

  body.shopos-iphone-shell .shopos-phone-revenue-tabs button.active {
    background: linear-gradient(135deg, #2882f9, #0861e8);
    color: #fff;
    box-shadow: 0 4px 10px rgba(8, 97, 232, 0.22);
  }

  body.shopos-iphone-shell .shopos-phone-revenue-summary {
    display: grid;
    justify-items: end;
    gap: 1px;
    margin: 8px 2px -4px;
  }

  body.shopos-iphone-shell .shopos-phone-revenue-summary strong {
    color: #071d46;
    font-size: 1.05rem;
    line-height: 1;
  }

  body.shopos-iphone-shell .shopos-phone-revenue-summary small {
    color: #697d98;
    font-size: 0.57rem;
    font-weight: 700;
  }

  body.shopos-iphone-shell .shopos-phone-revenue-summary small[data-tone="positive"] { color: #0ba14b; }
  body.shopos-iphone-shell .shopos-phone-revenue-summary small[data-tone="negative"] { color: #c23830; }

  body.shopos-iphone-shell .shopos-phone-revenue-chart {
    width: 100%;
    height: 172px;
  }

  body.shopos-iphone-shell .shopos-phone-revenue-chart canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
  }

  body.shopos-iphone-shell .shopos-phone-revenue-card.is-unavailable .shopos-phone-revenue-chart {
    opacity: 0.42;
  }

  body.shopos-iphone-shell .shopos-phone-recent-activity {
    padding: 10px 11px 4px !important;
  }

  body.shopos-iphone-shell .shopos-phone-activity-heading h3 {
    font-size: 0.86rem !important;
  }

  body.shopos-iphone-shell .shopos-phone-activity-row {
    min-height: 50px !important;
  }

  body.shopos-iphone-shell.shopos-phone-overview-open {
    overflow: hidden !important;
  }

  body.shopos-iphone-shell.shopos-phone-overview-open .shopos-phone-bottom-nav,
  body.shopos-iphone-shell.shopos-phone-overview-open .shopos-sparky-launcher {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body.shopos-iphone-shell .shopos-phone-overview-overlay {
    position: fixed;
    z-index: 2300;
    inset: 0;
    display: block;
  }

  body.shopos-iphone-shell .shopos-phone-overview-overlay[hidden] {
    display: none !important;
  }

  body.shopos-iphone-shell .shopos-phone-overview-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(5, 19, 42, 0.56);
    backdrop-filter: blur(6px);
  }

  body.shopos-iphone-shell .shopos-phone-overview-sheet {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px 14px calc(16px + env(safe-area-inset-bottom, 0px));
    border-radius: 24px 24px 0 0;
    background: #f8fbff;
    box-shadow: 0 -24px 70px rgba(6, 28, 63, 0.28);
    -webkit-overflow-scrolling: touch;
  }

  body.shopos-iphone-shell .shopos-phone-overview-handle {
    display: block;
    width: 42px;
    height: 5px;
    margin: 0 auto 9px;
    border-radius: 999px;
    background: #b9c5d5;
  }

  body.shopos-iphone-shell .shopos-phone-overview-sheet-header {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
  }

  body.shopos-iphone-shell .shopos-phone-overview-sheet-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #eaf2ff;
    color: #0b5fd8;
  }

  body.shopos-iphone-shell .shopos-phone-overview-sheet-icon svg {
    width: 24px;
    height: 24px;
  }

  body.shopos-iphone-shell .shopos-phone-overview-sheet-header > span:nth-child(2) {
    display: grid;
    gap: 2px;
  }

  body.shopos-iphone-shell .shopos-phone-overview-sheet-header strong {
    color: #081f49;
    font-size: 1.13rem;
  }

  body.shopos-iphone-shell .shopos-phone-overview-sheet-header small {
    color: #6b7d98;
    font-size: 0.66rem;
    line-height: 1.3;
  }

  body.shopos-iphone-shell .shopos-phone-overview-sheet-header button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #edf2f8;
    color: #102d58;
    font-size: 1.5rem;
  }

  body.shopos-iphone-shell .shopos-phone-overview-sheet-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.shopos-iphone-shell .shopos-phone-overview-sheet-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 10px;
    align-items: start;
    min-height: 102px;
    padding: 10px;
    gap: 8px;
    border: 1px solid #dce6f3;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(22, 51, 94, 0.07);
    color: #0b2249;
    text-align: left;
    text-decoration: none;
  }

  body.shopos-iphone-shell button.shopos-phone-overview-sheet-card {
    width: 100%;
    font: inherit;
  }

  body.shopos-iphone-shell .shopos-phone-overview-sheet-card i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #1472ef;
    color: #fff;
    font-style: normal;
  }

  body.shopos-iphone-shell .shopos-phone-overview-sheet-card i svg,
  body.shopos-iphone-shell .shopos-phone-overview-reports i svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  body.shopos-iphone-shell .shopos-phone-overview-sheet-card.tone-green i { background: #24c668; }
  body.shopos-iphone-shell .shopos-phone-overview-sheet-card.tone-orange i { background: #ff7b19; }
  body.shopos-iphone-shell .shopos-phone-overview-sheet-card.tone-purple i { background: #873df0; }
  body.shopos-iphone-shell .shopos-phone-overview-sheet-card.tone-pink i { background: #ef326a; }
  body.shopos-iphone-shell .shopos-phone-overview-sheet-card.tone-cyan i { background: #25bfc3; }
  body.shopos-iphone-shell .shopos-phone-overview-sheet-card.tone-indigo i { background: #384ac7; }
  body.shopos-iphone-shell .shopos-phone-overview-sheet-card.tone-yellow i { background: #ffbe21; }

  body.shopos-iphone-shell .shopos-phone-overview-sheet-card > span {
    display: grid;
    min-width: 0;
    gap: 2px;
  }

  body.shopos-iphone-shell .shopos-phone-overview-sheet-card strong {
    overflow: hidden;
    color: #061b3f;
    font-size: 1.05rem;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.shopos-iphone-shell .shopos-phone-overview-sheet-card b {
    font-size: 0.7rem;
  }

  body.shopos-iphone-shell .shopos-phone-overview-sheet-card small {
    color: #71839d;
    font-size: 0.61rem;
    line-height: 1.25;
  }

  body.shopos-iphone-shell .shopos-phone-overview-sheet-card em,
  body.shopos-iphone-shell .shopos-phone-overview-reports em {
    align-self: center;
    color: #173b69;
    font-size: 1.1rem;
    font-style: normal;
    font-weight: 850;
  }

  body.shopos-iphone-shell .shopos-phone-overview-reports {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 10px;
    align-items: center;
    min-height: 68px;
    margin-top: 10px;
    padding: 10px;
    gap: 10px;
    border: 1px solid #b9d5fb;
    border-radius: 14px;
    background: #f3f8ff;
    color: #0c2550;
    text-decoration: none;
  }

  body.shopos-iphone-shell .shopos-phone-overview-reports i {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: #e3efff;
    color: #176feb;
    font-style: normal;
  }

  body.shopos-iphone-shell .shopos-phone-overview-reports > span {
    display: grid;
    gap: 2px;
  }

  body.shopos-iphone-shell .shopos-phone-overview-reports strong { font-size: 0.74rem; }
  body.shopos-iphone-shell .shopos-phone-overview-reports small { color: #6d809c; font-size: 0.62rem; }
}

@media (max-width: 390px) {
  body.shopos-iphone-shell .mobile-shop-metric {
    grid-template-columns: 27px minmax(0, 1fr) 6px !important;
    min-height: 80px !important;
    padding-inline: 5px !important;
    gap: 4px !important;
  }

  body.shopos-iphone-shell .mobile-shop-metric-icon {
    width: 27px !important;
    height: 27px !important;
  }

  body.shopos-iphone-shell .shopos-mobile-dashboard-context {
    gap: 9px;
  }
}

/* Ordering & Suppliers keeps action controls compact inside the iPhone shell. */
@media (max-width: 760px) {
  body.shopos-iphone-shell .settings-pane.ordering-workspace button {
    width: auto !important;
    min-width: 0 !important;
    min-height: 30px !important;
    height: auto !important;
    flex: 0 0 auto !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    font-size: 0.68rem !important;
    line-height: 1.1 !important;
    box-shadow: none !important;
  }

  body.shopos-iphone-shell .settings-pane.ordering-workspace :is(.settings-actions, .ordering-supplier-actions) {
    width: auto !important;
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
  }

  body.shopos-iphone-shell .settings-pane.ordering-workspace :is(.ordering-more-button, .ordering-help) {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 !important;
  }
}
