.io-view { --io-line: #dbe3ee; --io-muted: #45566d; --io-blue: #1b48b6; color: #14223a; }
.io-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
.io-header h1 { margin: 0 0 4px; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.035em; }
.io-header p { margin: 0; color: var(--io-muted); }
.io-header-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.io-header-actions [hidden] { display: none; }
.io-queues { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.io-queues button { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 12px; border: 1px solid var(--io-line); border-radius: 8px; background: #fff; color: #263a57; font: inherit; font-weight: 650; cursor: pointer; }
.io-queues button[aria-pressed="true"] { background: #eaf0ff; border-color: #a4b9ef; color: var(--io-blue); }
.io-queues span { min-width: 20px; padding: 2px 5px; border-radius: 999px; background: #eef2f8; text-align: center; font-size: 11px; }
.io-queues button[aria-pressed="true"] span { background: #dce7ff; }
.io-panel { overflow: hidden; background: #fff; border: 1px solid var(--io-line); border-radius: 12px; }
.io-filter { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; padding: 15px 16px; border-bottom: 1px solid var(--io-line); }
.io-filter label { flex: 1 1 200px; max-width: 300px; }
.io-filter [hidden] { display: none; }
.io-filter label, .io-dialog label { display: grid; gap: 5px; min-width: 0; font-weight: 650; }
.io-filter input, .io-filter select, .io-dialog select, .io-dialog input { box-sizing: border-box; width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid #c7d3e2; border-radius: 7px; background: #fff; color: #15263c; font: inherit; }
.io-filter .btn { min-height: 38px; }
.io-status { padding: 10px 16px; min-height: 38px; color: var(--io-muted); font-size: 13px; }
.io-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.io-table th { background: #f3f6fa; color: #344862; font-size: 12px; font-weight: 700; text-align: left; }
.io-table td, .io-table th { padding: 11px 13px; border-top: 1px solid var(--io-line); overflow-wrap: anywhere; vertical-align: top; }
.io-table th:last-child { width: 24%; }
.io-table tr:hover td { background: #f8faff; }
.io-record { border: 0; padding: 0; background: none; color: var(--io-blue); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.io-record:hover { text-decoration: underline; }
.io-detail { display: block; margin-top: 4px; color: var(--io-muted); font-size: 12px; }
.io-row-actions, .io-tags, .io-pages { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; }
.io-row-actions .btn { max-width: 100%; white-space: normal; text-align: left; }
.io-badge { display: inline-flex; width: max-content; max-width: 100%; padding: 3px 7px; border-radius: 5px; font-size: 12px; font-weight: 650; line-height: 1.35; }
.io-muted { background: #edf1f6; color: #3d4e65; }
.io-good { background: #dff5eb; color: #125c39; }
.io-hot { background: #fde8ed; color: #8e213e; }
.io-warn { background: #fff2d6; color: #754809; }
.io-pages { justify-content: flex-end; padding: 12px 16px; border-top: 1px solid var(--io-line); }
.io-empty { padding: 14px 16px; color: var(--io-muted); }
.io-view :focus-visible { outline: 2px solid #2554c7; outline-offset: 2px; }
.io-dialog { box-sizing: border-box; width: min(480px, calc(100% - 24px)); max-height: calc(100dvh - 28px); padding: 0; border: 1px solid var(--io-line); border-radius: 12px; background: #fff; color: #14223a; box-shadow: 0 16px 48px #10214635; }
.io-dialog::backdrop { background: #16263d66; }
.io-dialog form { display: grid; gap: 12px; padding: 16px; }
.io-dialog header, .io-dialog footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.io-dialog header h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.io-dialog footer { justify-content: flex-end; }
.io-dialog [data-io-fields] { display: grid; gap: 12px; }
.io-dialog p { margin: 0; }
.io-hint, .io-dialog [data-io-dialog-status] { color: var(--io-muted); font-size: 13px; }
@media (max-width: 760px) {
  .io-header { flex-wrap: wrap; }
  .io-header-actions { justify-content: flex-start; }
  .io-table { display: block; }
  .io-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .io-table tbody, .io-table tr { display: block; }
  .io-table tr { padding: 8px 12px; border-top: 1px solid var(--io-line); }
  .io-table td { border: 0; display: grid; grid-template-columns: minmax(75px, 23%) minmax(0, 1fr); gap: 4px 10px; padding: 5px 0; }
  .io-table td::before { content: attr(data-label); grid-row: 1 / span 5; color: var(--io-muted); font-size: 12px; font-weight: 650; }
  .io-table td > * { grid-column: 2; }
  .io-filter label { max-width: none; }
}
