/* Touch-first hierarchy, scoped to Assets; the desktop explorer is unchanged. */
@media (max-width: 700px) {
  #app:has(>.assets-mobile) { min-width: 0; width: 100%; max-width: 100%; outline: none; }
  .assets-mobile { width: 100%; min-width: 0; max-width: 100%; color: var(--ink); }
  .assets-mobile button, .assets-mobile select, .assets-mobile summary { touch-action: manipulation; }
  .assets-mobile .am-heading { margin: 0 0 16px; }
  .assets-mobile .eyebrow { font-size: 10px; letter-spacing: 1.3px; color: var(--blue); }
  .assets-mobile h1 { margin: 8px 0; font-size: 25px; line-height: 1.2; overflow-wrap: anywhere; }
  .assets-mobile .am-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
  .assets-mobile .am-navigation { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
  .assets-mobile .am-navigation button { display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-height: 46px; padding: 10px 13px; font-size: 14px; border-radius: 10px; white-space: normal; }
  .assets-mobile .am-navigation .primary { min-width: 0; }
  .assets-mobile .am-root { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
  .assets-mobile .am-icon { width: 20px; height: 20px; flex: 0 0 20px; margin: 0; }
  .assets-mobile .am-location, .assets-mobile .am-record { margin: 0 0 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; }
  .assets-mobile summary { display: flex; gap: 10px; align-items: center; padding: 13px; min-height: 48px; list-style: none; cursor: pointer; font-size: 14px; color: var(--ink); }
  .assets-mobile summary::-webkit-details-marker { display: none; }
  .assets-mobile summary > span:not(.am-icon) { flex: 1; min-width: 0; }
  .assets-mobile summary > .am-icon { color: var(--blue); }
  .assets-mobile summary small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .assets-mobile details[open] > summary { border-bottom: 1px solid var(--line); }
  .assets-mobile details[open] > summary > .am-icon:last-child { transform: rotate(180deg); }
  .assets-mobile .am-location-body { padding: 12px; }
  .assets-mobile .am-path { display: flex; gap: 5px; flex-direction: row; flex-wrap: wrap; margin-bottom: 12px; }
  .assets-mobile .am-path button { display: flex; gap: 5px; align-items: center; width: auto; max-width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); background: var(--surface2, var(--surface)); color: var(--blue); font-size: 13px; overflow-wrap: anywhere; }
  .assets-mobile .am-path [aria-current] { color: var(--ink); font-weight: 700; }
  .assets-mobile .am-path .am-icon { width: 14px; min-width: 14px; height: 14px; flex-basis: 14px; }
  .assets-mobile .am-selectors { display: grid; gap: 12px; }
  .assets-mobile .am-selectors label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
  .assets-mobile .am-selectors select { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; font-size: 16px; }
  .assets-mobile .asset-record-details { margin: 0; padding: 13px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .assets-mobile .asset-record-heading h2 { display: none; }
  .assets-mobile .asset-record-heading > div { display: grid; width: 100%; grid-template-columns: 1fr; gap: 8px; }
  .assets-mobile .asset-record-heading button { margin: 0; min-height: 46px; font-size: 14px; white-space: normal; }
  .assets-mobile .asset-record-details dl { gap: 14px; font-size: 14px; }
  .assets-mobile .asset-record-details dt { font-size: 12px; }
  .assets-mobile .am-list { margin-top: 20px; }
  .assets-mobile .am-list h2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; font-size: 17px; }
  .assets-mobile .am-list h2 span { font-size: 12px; color: var(--muted); padding: 4px 9px; border: 1px solid var(--line); border-radius: 20px; }
  .assets-mobile .am-search { display: flex; align-items: center; gap: 9px; min-width: 0; width: 100%; padding: 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
  .assets-mobile .am-search input { min-width: 0; min-height: 46px; flex: 1; width: 100%; padding: 10px 0; font-size: 16px; border: 0; background: transparent; box-shadow: none; }
  .assets-mobile .am-search:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
  .assets-mobile .am-cards { display: grid; gap: 12px; margin-top: 14px; }
  .assets-mobile .am-asset { min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); overflow: hidden; }
  .assets-mobile .am-open { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 88px; padding: 14px; text-align: left; color: var(--ink); border: 0; border-radius: 0; background: transparent; cursor: pointer; }
  .assets-mobile .am-open:active { background: var(--blue2); }
  .assets-mobile .am-open > i { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 48px; background: var(--blue2); color: var(--blue); border: 1px solid var(--line); border-radius: 10px; }
  .assets-mobile .am-open > i .am-icon { width: 26px; height: 26px; flex-basis: 26px; }
  .assets-mobile .am-open > span:not(.am-icon) { flex: 1; min-width: 0; }
  .assets-mobile .am-open strong { display: block; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
  .assets-mobile .am-open small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
  .assets-mobile .am-open em { display: block; margin-top: 5px; font-size: 12px; color: var(--blue); font-style: normal; }
  .assets-mobile .am-open > .am-icon { color: var(--blue); }
  .assets-mobile .am-asset footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 51px; padding: 4px 14px; border-top: 1px solid var(--line); }
  .assets-mobile .badge { font-size: 12px; padding: 6px 9px; white-space: normal; }
  .assets-mobile .am-edit { display: inline-flex; gap: 7px; align-items: center; justify-content: center; min-height: 44px; padding: 8px 5px; border: 0; background: transparent; color: var(--blue); font-size: 14px; font-weight: 600; }
  .assets-mobile .am-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0 14px 14px; }
  .assets-mobile .am-specs dt { color: var(--muted); font-size: 12px; }
  .assets-mobile .am-specs dd { min-height: 18px; margin: 4px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
  .assets-mobile .am-empty { margin: 0; padding: 25px 15px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 14px; }
  .assets-mobile button:focus-visible, .assets-mobile summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
}
