/* Compatibility entry: shared shell and semantic tokens live in silverTheme.css. */
/* Mist Isle r7: compact, touch-friendly product cards for the shared mobile
   product route. Desktop keeps the original Element table and its behavior. */
.mist-mobile-product-cards {
  display: none;
}

@media (max-width: 760px) {
  html.mist-silver .product .main-card-table {
    margin-top: 22px;
  }

  html.mist-silver .product .main-card-title .title-text {
    font-size: 22px;
    font-weight: 650;
  }

  html.mist-silver .product .product-tab-list .el-tabs__header {
    margin-bottom: 16px;
  }

  html.mist-silver .product .product-tab-list .el-tabs__item {
    height: 42px;
    padding: 0 14px;
    font-size: 14px;
    line-height: 42px;
  }

  html.mist-silver .product .main-card-search {
    align-items: stretch;
    flex-direction: column;
    padding: 4px 0 18px;
  }

  html.mist-silver .product .main-card-search .batch-op-btn {
    align-self: flex-start;
  }

  html.mist-silver .product .main-card-search .right-search {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  html.mist-silver .product .main-card-search .right-search > .el-select,
  html.mist-silver .product .main-card-search .right-search > .el-input,
  html.mist-silver .product .main-card-search .right-search > .search-btn {
    box-sizing: border-box;
    width: 100% !important;
  }

  html.mist-silver .product .main-card-search .right-search > .search-btn {
    height: 42px;
  }

  html.mist-silver .product .main-card-table > .table {
    display: none;
  }

  html.mist-silver .product .mist-mobile-product-cards {
    display: grid;
    gap: 12px;
  }

  html.mist-silver .product .mist-mobile-product-card {
    position: relative;
    display: grid;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--mist-border);
    border-radius: 6px;
    background: var(--ui-panel);
    box-shadow: none;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease-out;
  }

  html.mist-silver .product .mist-mobile-product-card:active {
    border-color: var(--ui-link);
    transform: scale(0.99);
  }

  html.mist-silver .product .mist-mobile-product-card__header {
    display: grid;
    align-items: start;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  html.mist-silver .product .mist-mobile-product-card__select {
    margin-top: 2px;
  }

  html.mist-silver .product .mist-mobile-product-card__identity {
    display: grid;
    min-width: 0;
    gap: 4px;
  }

  html.mist-silver .product .mist-mobile-product-card__identity strong,
  html.mist-silver .product .mist-mobile-product-card__identity span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html.mist-silver .product .mist-mobile-product-card__identity strong {
    color: var(--mist-text);
    font-size: 15px;
    font-weight: 650;
  }

  html.mist-silver .product .mist-mobile-product-card__identity span {
    color: var(--mist-muted);
    font-size: 12px;
  }

  html.mist-silver .product .mist-mobile-product-card__status {
    min-width: 48px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
  }

  html.mist-silver .product .mist-mobile-product-card__meta {
    display: grid;
    margin: 0;
    gap: 12px 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html.mist-silver .product .mist-mobile-product-card__meta > div {
    display: grid;
    min-width: 0;
    gap: 4px;
  }

  html.mist-silver .product .mist-mobile-product-card__meta dt,
  html.mist-silver .product .mist-mobile-product-card__meta dd {
    overflow: hidden;
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html.mist-silver .product .mist-mobile-product-card__meta dt {
    color: var(--mist-subtle);
    font-size: 11px;
  }

  html.mist-silver .product .mist-mobile-product-card__meta dd {
    color: var(--mist-text);
    font-size: 14px;
    font-weight: 550;
  }

  html.mist-silver .product .mist-mobile-product-card__action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    padding-top: 12px;
    border-top: 1px solid var(--mist-border-soft);
    color: var(--mist-brand);
    font-size: 12px;
    font-weight: 600;
  }

  html.mist-silver .product .mist-mobile-product-empty {
    padding: 36px 16px;
    border: 1px dashed var(--mist-border);
    border-radius: 6px;
    color: var(--mist-muted);
    text-align: center;
  }

  html.mist-silver .product .main-card-table > .page,
  html.mist-silver .product .main-card-table > .page .page {
    padding-right: 0;
  }
}
