/* Ops console: My sessions zone (sessions.js). Loaded after app.css and
 * built only from its tokens; no inline styles (CSP style-src 'self'). */

#zone-sessions .zone-header p { max-width: 62ch; text-wrap: pretty; }
#ms-title:focus { outline: none; }
#ms-title:focus-visible { outline: 2px solid var(--ad-focus-ring); outline-offset: 2px; border-radius: var(--radius-sm); }

.ms-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ad-space-2) var(--ad-space-4); margin-bottom: var(--ad-space-3); }
.ms-bar p { margin: 0; min-width: 0; text-wrap: pretty; }
.ms-bar .btn { min-height: 44px; }

.ms-list { list-style: none; margin: 0; padding: 0; }
.ms-item { display: flex; align-items: center; gap: var(--ad-space-4); padding: var(--ad-space-4); }
.ms-item + .ms-item { border-top: 1px solid var(--border); }
.ms-main { flex: 1; min-width: 0; }
.ms-device { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ad-space-1) var(--ad-space-2); margin: 0 0 var(--ad-space-2); }
.ms-device > span:first-child { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.ms-facts { display: flex; flex-wrap: wrap; gap: var(--ad-space-1) var(--ad-space-5); margin: 0; font-size: var(--ad-fs-sm); }
.ms-facts div { display: flex; gap: var(--ad-space-1); min-width: 0; }
.ms-facts dt { color: var(--text-dim); }
.ms-facts dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ms-action { flex: none; }
.ms-action .btn { min-height: 44px; min-width: 44px; }
button.btn.ms-end { color: var(--danger-text); }

.ms-empty { padding: var(--ad-space-5) var(--ad-space-4); text-align: center; }
.ms-empty-title { margin: 0 0 var(--ad-space-1); font-weight: 600; color: var(--text); }
.ms-empty p { margin: 0 auto; max-width: 52ch; text-wrap: pretty; }
.ms-empty .btn { margin-top: var(--ad-space-3); min-height: 44px; }

/* Phone: the action drops under the facts and spans the card, an easy thumb target. */
@media (max-width: 600px) {
  .ms-item { flex-direction: column; align-items: stretch; gap: var(--ad-space-3); }
  .ms-facts { flex-direction: column; }
  .ms-action .btn { width: 100%; }
  .ms-bar .btn { width: 100%; }
}
