/* Admin > Exercises (1.0.0; src/modules/exercises-admin.js). xc-* components from excon.css; this file adds the split
   list/detail layout, the status badges and the 390 px card layout (tables stack, the detail replaces the list). */
.xa-app { display: grid; gap: 12px; }
.xa-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.xa-title { margin: 0; font-size: 18px; }
.xa-title small, .xc-panel h3 small { font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 6px; }
.xa-split { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .xa-app.has-detail .xa-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.xa-list tr.is-open { background: var(--surface-2); }
.xa-list th[scope="row"] small, .xa-members th small, .xa-audit td small { display: block; font-weight: 400; }
.xa-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--accent-text, var(--accent)); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; text-align: left; }
.xa-link:focus-visible, .xa-dhead h2:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 2px; }
.xa-st.is-planning { background: var(--brand-soft); color: var(--brand); }
.xa-st.is-active { background: var(--ok); color: var(--on-fill); }
.xa-st.is-closed { background: var(--warn-soft); color: var(--text); border: 1px solid var(--warn); }
.xa-st.is-archived { background: var(--surface-3); color: var(--text); border: 1px dashed var(--border-strong); }
.xa-detail { display: grid; gap: 10px; min-width: 0; }
.xa-dhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.xa-dhead h2 { margin: 0; font-size: 17px; }
.xa-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.xa-cards .xc-panel h3 { margin: 0 0 8px; font-size: 14px; }
.xa-danger { border-color: var(--danger); }
.xa-help { font-size: 12px; margin: 6px 0; }
.xa-inline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.xa-inline select { min-width: 0; max-width: 100%; }
.xa-flash { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; justify-content: space-between; padding: 8px 12px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-2); }
.xa-flash p { margin: 0; }
.xa-flash.is-ok { border-color: var(--ok); }
.xa-flash.is-error { border-color: var(--danger); background: var(--danger-soft); }
.xa-secret code { font-size: 14px; padding: 2px 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; user-select: all; }
@media (max-width: 1099px) { .xa-app.has-detail .xa-listcol { display: none; } }
@media (min-width: 1100px) { .xa-back { display: none; } }
@media (max-width: 700px) {
  .xa-app .xc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .xa-app .xc-table, .xa-app .xc-table tbody, .xa-app .xc-table tr, .xa-app .xc-table th, .xa-app .xc-table td { display: block; width: 100%; }
  .xa-app .xc-table tr { border: 1px solid var(--border); border-radius: 6px; margin-bottom: 8px; padding: 6px 8px; }
  .xa-app .xc-table th, .xa-app .xc-table td { border: 0; padding: 3px 0; text-align: left; }
  .xa-app .xc-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 11px; }
  .xa-app .xc-tablewrap { overflow: visible; }
  .xa-app button, .xa-app select, .xa-app input { min-height: 36px; }
}
