@media (max-width: 767px) {
  body.used-device-mobile-v3-mode {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
    background: #f6f8fb;
    color: #102033;
  }

  body.used-device-mobile-v3-mode *,
  body.used-device-mobile-v3-mode *::before,
  body.used-device-mobile-v3-mode *::after {
    box-sizing: border-box;
  }

  body.used-device-mobile-v3-mode #app,
  body.used-device-mobile-v3-mode #app > main,
  body.used-device-mobile-v3-mode #page-usedDeviceManagementPreview,
  body.used-device-mobile-v3-mode #used-device-management-v2-preview-root {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  body.used-device-mobile-v3-mode #app > aside.sidebar,
  body.used-device-mobile-v3-mode #app > main > header.topbar,
  body.used-device-mobile-v3-mode .mobile-nav {
    display: none;
  }

  body.used-device-mobile-v3-mode #app > main {
    margin-left: 0;
    padding: 14px 14px 0;
    min-width: 0;
    background: #f6f8fb;
  }

  body.used-device-mobile-v3-mode .page {
    padding: 0;
    min-width: 0;
    max-width: 100%;
  }

  .udm3-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 6px 0 calc(96px + env(safe-area-inset-bottom));
    font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  }

  .udm3-page,
  .udm3-page * {
    min-width: 0;
  }

  .udm3-header {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
  }

  .udm3-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .udm3-title-wrap {
    display: grid;
    gap: 3px;
  }

  .udm3-eyebrow {
    color: #008175;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
  }

  .udm3-title {
    margin: 0;
    color: #102033;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
  }

  .udm3-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
  }

  .udm3-branch-pill,
  .udm3-icon-button,
  .udm3-filter-button,
  .udm3-card-action,
  .udm3-pagination-button {
    min-height: 44px;
    border: 1px solid #dce3ea;
    background: #fff;
    color: #102033;
    border-radius: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
  }

  .udm3-branch-pill {
    padding: 0 11px;
    font-size: 13px;
  }

  .udm3-icon-button {
    width: 44px;
    padding: 0;
  }

  .udm3-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2.1;
    flex: 0 0 auto;
  }

  .udm3-subtitle {
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
  }

  .udm3-primary-action {
    min-height: 48px;
    width: 100%;
    border: 0;
    border-radius: 14px;
    background: #008175;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(0, 129, 117, 0.2);
    cursor: pointer;
  }

  .udm3-menu {
    position: absolute;
    top: 62px;
    right: 14px;
    z-index: 30;
    display: grid;
    gap: 4px;
    min-width: 180px;
    padding: 8px;
    border: 1px solid #e5eaf0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
  }

  .udm3-menu[hidden],
  .udm3-filter-backdrop[hidden] {
    display: none;
  }

  .udm3-menu button {
    min-height: 40px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: #102033;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    padding: 0 12px;
    cursor: pointer;
  }

  .udm3-menu button:active,
  .udm3-menu button:hover {
    background: #eef8f6;
    color: #008175;
  }

  .udm3-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 8px;
    margin-bottom: 8px;
    scrollbar-width: none;
  }

  .udm3-tabs::-webkit-scrollbar {
    display: none;
  }

  .udm3-tab {
    flex: 0 0 auto;
    min-height: 36px;
    border: 1px solid #dce3ea;
    border-radius: 999px;
    background: #fff;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
    padding: 0 14px;
    cursor: pointer;
  }

  .udm3-tab.is-active {
    border-color: #008175;
    background: #008175;
    color: #fff;
  }

  .udm3-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
  }

  .udm3-kpi-card {
    display: grid;
    gap: 7px;
    min-height: 104px;
    padding: 13px;
    border: 1px solid #e5eaf0;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  }

  .udm3-kpi-card.is-wide {
    grid-column: 1 / -1;
  }

  .udm3-kpi-head {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
  }

  .udm3-kpi-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: #ecfdf8;
    color: #008175;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  .udm3-kpi-value {
    color: #102033;
    font-size: 21px;
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
  }

  .udm3-kpi-meta {
    color: #008175;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
  }

  .udm3-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }

  .udm3-search-box {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid #dce3ea;
    border-radius: 14px;
    background: #fff;
  }

  .udm3-search-box input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #102033;
    font-size: 14px;
  }

  .udm3-search-box input::placeholder {
    color: #98a2b3;
  }

  .udm3-filter-button {
    flex: 0 0 auto;
    padding: 0 13px;
    color: #008175;
  }

  .udm3-device-list {
    display: grid;
    gap: 12px;
  }

  .udm3-device-card {
    display: grid;
    gap: 13px;
    padding: 14px;
    border: 1px solid #e5eaf0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  }

  .udm3-card-main {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .udm3-phone-thumb {
    width: 72px;
    height: 88px;
    border-radius: 12px;
    background: linear-gradient(145deg, #eef2f7, #ffffff);
    border: 1px solid #e5eaf0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .udm3-phone-thumb svg {
    width: 34px;
    height: 54px;
    color: #475569;
  }

  .udm3-card-info {
    display: grid;
    gap: 7px;
  }

  .udm3-card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }

  .udm3-card-title {
    color: #102033;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .udm3-card-spec {
    color: #667085;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
  }

  .udm3-status-badge {
    flex: 0 0 auto;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
  }

  .udm3-status-for-sale { background: #e7f8f4; color: #008175; }
  .udm3-status-refurbishing { background: #fff3df; color: #b65f00; }
  .udm3-status-inspection { background: #eaf3ff; color: #1d64d8; }
  .udm3-status-sold { background: #f1f5f9; color: #64748b; }
  .udm3-status-warranty { background: #f2eafd; color: #7c3aed; }
  .udm3-status-refurbish-wait { background: #fff7d6; color: #b7791f; }

  .udm3-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .udm3-meta-item {
    display: grid;
    gap: 3px;
    padding: 9px 10px;
    border-radius: 12px;
    background: #f8fafc;
  }

  .udm3-meta-label {
    color: #667085;
    font-size: 11px;
    font-weight: 800;
  }

  .udm3-meta-value {
    color: #102033;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .udm3-money-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border-radius: 13px;
    background: #f8fafc;
  }

  .udm3-money-cell {
    display: grid;
    gap: 4px;
  }

  .udm3-money-label {
    color: #667085;
    font-size: 11px;
    font-weight: 800;
  }

  .udm3-money-value {
    color: #102033;
    font-size: 13px;
    font-weight: 850;
    overflow-wrap: anywhere;
  }

  .udm3-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .udm3-card-action {
    padding: 0 13px;
    color: #008175;
  }

  .udm3-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
  }

  .udm3-pagination-button {
    width: 100%;
  }

  .udm3-page-indicator {
    color: #667085;
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
  }

  .udm3-summary {
    display: grid;
    gap: 12px;
  }

  .udm3-summary-card,
  .udm3-accordion {
    border: 1px solid #e5eaf0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  }

  .udm3-summary-card {
    padding: 14px;
  }

  .udm3-section-title {
    margin: 0 0 12px;
    color: #102033;
    font-size: 16px;
    font-weight: 850;
  }

  .udm3-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .udm3-summary-item {
    display: grid;
    gap: 3px;
    padding: 11px;
    border-radius: 13px;
    background: #f8fafc;
  }

  .udm3-summary-label {
    color: #667085;
    font-size: 11px;
    font-weight: 800;
  }

  .udm3-summary-value {
    color: #102033;
    font-size: 16px;
    font-weight: 850;
  }

  .udm3-summary-meta {
    color: #008175;
    font-size: 11px;
    font-weight: 800;
  }

  .udm3-accordion summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    color: #102033;
    font-size: 15px;
    font-weight: 850;
    cursor: pointer;
  }

  .udm3-accordion-body {
    display: grid;
    gap: 9px;
    padding: 0 14px 14px;
  }

  .udm3-rank-row,
  .udm3-task-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    color: #344054;
    font-size: 13px;
    font-weight: 750;
  }

  .udm3-rank-bar {
    height: 7px;
    border-radius: 99px;
    background: #dbeafe;
    overflow: hidden;
  }

  .udm3-rank-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #60a5fa;
  }

  .udm3-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #008175;
  }

  .udm3-dot.blue { background: #3b82f6; }
  .udm3-dot.orange { background: #f59e0b; }
  .udm3-dot.red { background: #ef4444; }

  .udm3-bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 25;
    height: 64px;
    max-width: calc(100% - 20px);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 4px;
    padding: 7px;
    border: 1px solid #e5eaf0;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(16px);
  }

  .udm3-bottom-nav button {
    min-height: 48px;
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: #667085;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
  }

  .udm3-bottom-nav button.is-active {
    background: #e7f8f4;
    color: #008175;
  }

  .udm3-bottom-nav .udm3-add-button {
    width: 56px;
    height: 56px;
    min-height: 56px;
    justify-self: center;
    border-radius: 999px;
    background: #008175;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    box-shadow: 0 12px 26px rgba(0, 129, 117, 0.32);
    transform: translateY(-14px);
  }

  .udm3-filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(15, 23, 42, 0.34);
    display: flex;
    align-items: flex-end;
  }

  .udm3-filter-sheet {
    width: 100%;
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    background: #fff;
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
    box-shadow: 0 -20px 40px rgba(15, 23, 42, 0.22);
  }

  .udm3-filter-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
  }

  .udm3-filter-sheet-title {
    margin: 0;
    color: #102033;
    font-size: 18px;
    font-weight: 850;
  }

  .udm3-filter-fields {
    display: grid;
    gap: 10px;
  }

  .udm3-field {
    display: grid;
    gap: 6px;
  }

  .udm3-field label {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
  }

  .udm3-field select {
    min-height: 44px;
    width: 100%;
    border: 1px solid #dce3ea;
    border-radius: 13px;
    background: #fff;
    color: #102033;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 750;
  }

  .udm3-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
  }

  .udm3-secondary-button,
  .udm3-apply-button {
    min-height: 46px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 850;
    cursor: pointer;
  }

  .udm3-secondary-button {
    border: 1px solid #dce3ea;
    background: #fff;
    color: #344054;
  }

  .udm3-apply-button {
    border: 0;
    background: #008175;
    color: #fff;
  }

  .udm3-toast {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    z-index: 55;
    min-height: 44px;
    border-radius: 14px;
    background: #102033;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
  }
}
