/* A machine's inventory sections (machine-inventory.js): a header with its count, hairlines between rows, a calm line
   when empty; no boxes, theme tokens only; one column on a phone. */
.mi-sec { border-top: 1px solid var(--line); padding: 14px 0 10px; min-width: 0; max-width: 100%; }
.mi-sec > h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.mi-sec > h3 .mi-n { min-width: 18px; height: 18px; padding: 0 6px; border-radius: 9px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--text-2); background: var(--ink-3); font-variant-numeric: tabular-nums; }
.mi-sec > h3 .mi-n:empty { display: none; }
.mi-ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--text-3); }
.mi-sec > h3 .mi-ic { width: 16px; height: 16px; color: var(--text-2); }
.mi-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); min-width: 0; }
.mi-sec > h3 + .mi-row, .mi-sub + .mi-row, .mi-row:first-child { border-top: 0; }
.mi-row[hidden] { display: none; }
.mi-row > .mi-ic { align-self: flex-start; margin-top: 1px; }
.mi-m { flex: 1; min-width: 0; }
.mi-t { font-size: 13.5px; color: var(--text); overflow-wrap: anywhere; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.mi-t b { font-weight: 600; }
.mi-s { font-size: 12.5px; color: var(--text-2); margin-top: 2px; overflow-wrap: anywhere; }
.mi-side { flex: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.mi-sub { display: flex; gap: 6px; margin: 12px 0 2px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.mi-sub span { font-weight: 500; }
.mi-none { margin: 4px 0 6px; font-size: 13px; color: var(--text-3); }
.mi-note { margin: 8px 0 4px; font-size: 12.5px; line-height: 1.5; color: var(--text-3); max-width: 90ch; }
.mi-warn { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; font-size: 13px; color: var(--bad-2); }
.mi-warn .mi-ic, .mi-ok .mi-ic { width: 16px; height: 16px; margin-top: 1px; color: currentColor; }
.mi-ok { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0 8px; font-size: 13px; color: var(--text-2); }
.mi-ok .mi-ic { color: var(--ok); }
.mi-warn-t { color: var(--warn); }
.mi-chip { display: inline-block; padding: 0 7px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 11.5px; line-height: 18px; color: var(--text-2); white-space: nowrap; }
.mi-chip.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.mi-chip.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.mi-chip.bad { color: var(--bad-2); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.mi-caps { display: flex; flex-wrap: wrap; gap: 5px; margin: 5px 0 2px; }
.mi-cap { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px 0 5px; border-radius: 999px; font-size: 11.5px; color: var(--text-2); background: var(--ink-3); }
.mi-cap .mi-ic { width: 12px; height: 12px; color: var(--text-2); }
/* the spec grid (Apple's About): label over value, two to three columns, hairlines between rows */
.mi-spec { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 28px; margin: 2px 0 4px; }
.mi-spec > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); min-width: 0; }
.mi-spec dt { font-size: 12px; color: var(--text-3); }
.mi-spec dd { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--text); overflow-wrap: anywhere; }
/* a disk's bar, on its row */
.mi-dbar { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-2); }
.mi-dbar > span { width: 120px; height: 4px; border-radius: 2px; background: var(--ink-3); overflow: hidden; }
.mi-dbar > span i { display: block; height: 100%; background: var(--text-2); border-radius: 2px; }
.mi-dbar.hi > span i { background: var(--warn); }
.mi-dbar.hi em { color: var(--warn); }
.mi-dbar em { font-style: normal; font-variant-numeric: tabular-nums; min-width: 15ch; text-align: right; }
.mi-cmd { display: flex; align-items: center; gap: 8px; margin-top: 6px; min-width: 0; }
.mi-cmd code { flex: 1; min-width: 0; font: 12px var(--mono); color: var(--text-2); overflow-x: auto; white-space: nowrap; padding: 4px 8px; background: var(--ink-0); border-radius: 3px; }
.mi-more { margin: 2px 0; }
.mi-more > summary { cursor: pointer; font-size: 13px; color: var(--sky); padding: 8px 0; }
.mi-search { margin: 2px 0 4px; }
.mi-find { width: 100%; max-width: 320px; margin: 4px 0 6px; }
.mi-list { min-width: 0; }
#miPk .mi-list { max-height: 480px; overflow-y: auto; }
.mi-set { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 4px; border: 0; padding: 0; }
.mi-set > div { min-width: 0; white-space: normal; overflow-wrap: anywhere; font-size: 13.5px; }
.mi-set > div span { display: block; color: var(--text-3); font-size: 12.5px; }
.mi-msg { display: flex; gap: 8px; margin: 8px 0; }
.mi-msg[hidden] { display: none; }
.mi-msg input { flex: 1; min-width: 0; }
.mi-sec { contain: inline-size; } /* a long command or name never sets the page's width */
@media (max-width: 560px) {
  .mi-row { flex-wrap: wrap; }
  .mi-side { flex-basis: 100%; justify-content: flex-start; padding-left: 30px; }
  .mi-spec { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .mi-dbar > span { width: 80px; }
  .mi-dbar em { min-width: 0; text-align: left; }
}
