.tune-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.tune-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-width: 0; }
.tune-row__label { color: var(--text-secondary); font-size: 13px; }
.tune-row .mono { min-width: 64px; text-align: right; }
.fleet-sync { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; color: var(--text-muted); vertical-align: middle; }
.fleet-sync .ic { width: 13px; height: 13px; }
.table tr.is-highlight td { background: var(--accent-subtle); }
.locker-filters { flex-wrap: wrap; align-items: flex-end; }
.locker-filters .field { min-width: 150px; }
.chips a.badge { text-decoration: none; }

.invlog-amount { width: 96px; }
.invlog-unit { width: 110px; }
.log-place { display: block; min-width: 0; overflow-wrap: anywhere; }
.log-arrow { color: var(--text-muted); margin: 0 4px; }

.item-view__bar { display: flex; justify-content: flex-end; padding: 10px 14px 0; }
.item-view .seg button.seg__item { border: 0; background-color: transparent; cursor: pointer; }
.item-view .seg button.seg__item.is-active { background-color: var(--surface-raised); }
.item-view[data-mode="list"] .item-view__tiles,
.item-view[data-mode="tiles"] .item-view__list { display: none; }

.item-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.item-thumb { width: 32px; height: 32px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-muted); }
.item-thumb img { width: 28px; height: 28px; object-fit: contain; }

.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; padding: 14px; }
.item-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 22px 8px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  text-align: center;
}
.item-tile:hover { border-color: var(--border-default); }
.item-tile.is-highlight { border-color: var(--border-gold); background: var(--accent-subtle); }
.item-tile__slot { position: absolute; top: 6px; left: 8px; font-size: 10px; color: var(--text-muted); }
.item-tile__count { position: absolute; top: 5px; right: 8px; font-size: 12px; font-weight: 600; color: var(--gold-200); }
.item-tile__img { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.item-tile__img img { width: 64px; height: 64px; object-fit: contain; }
.item-tile__img .ic { width: 28px; height: 28px; }
.item-tile__name { font-size: 12px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.item-tile__meta { font-size: 10px; line-height: 1.3; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-tile__actions { display: flex; gap: 4px; margin-top: 2px; }

@media (max-width: 480px) {
  .item-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; padding: 10px; }
}

@media (max-width: 720px) {
  .tune-grid { grid-template-columns: minmax(0, 1fr); }
  .tune-row { grid-template-columns: 110px minmax(0, 1fr) auto; }
}

.fleet-damage--danger { color: var(--danger-fg); background: var(--danger-subtle); }
.fleet-damage--warning { color: var(--warning-fg); background: var(--warning-subtle); }
.fleet-damage--success { color: var(--success-fg); background: var(--success-subtle); }
.fleet-issue .badge { flex: none; }

.item-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.item-head .item-thumb { width: 56px; height: 56px; }
.item-head .item-thumb img { width: 48px; height: 48px; }
.item-row { display: flex; align-items: center; gap: 10px; color: inherit; min-width: 0; }
.item-row:hover .strong { text-decoration: underline; }
#item-table tr.is-selected { background: var(--surface-active); }
