.ops-page {
 --ops-line: #dce5ef;
 --ops-muted: #52667e;
 --ops-blue: #1557ad;
 --ops-pale: #f2f6fc;
}
.ops-page [hidden] { display: none; }
.ops-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.ops-filters .field { flex: 0 1 170px; margin: 0; min-width: 0; }
.ops-filters .field:first-child { flex: 1 1 235px; }
.ops-filters .field > :is(input, select) { width: 100%; }
.ops-filter-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ops-filter-bar button,
.ops-drawer-head button { min-height: 40px; padding: 8px 14px; border-radius: 9px; }
.ops-page button[aria-pressed="true"] { color: var(--ops-blue); background: #e8f1ff; border-color: #a8c8f4; }

.ops-list {
 margin-top: 14px;
 border: 1px solid var(--ops-line);
 border-radius: 12px;
 background: #fff;
 overflow: hidden;
}
.ops-table { width: 100%; border-collapse: collapse; color: #203752; font-size: 14px; }
.ops-table th,
.ops-table td { padding: 12px 14px; border-bottom: 1px solid var(--ops-line); text-align: left; overflow-wrap: anywhere; }
.ops-table th { background: var(--ops-pale); color: var(--ops-muted); font-size: 12px; font-weight: 750; }
.ops-table tr:last-child td { border-bottom: 0; }
.ops-table tbody tr:hover,
.ops-table tbody tr:focus-within { background: #f7faff; }
.ops-identity small,
.ops-journey-size { display: block; margin-top: 3px; color: var(--ops-muted); font-size: 12px; }
.ops-title-button {
 padding: 2px 0;
 color: var(--ops-blue);
 font: inherit;
 font-weight: 750;
 background: none;
 border: 0;
 cursor: pointer;
 text-align: left;
}
.ops-title-button:hover { text-decoration: underline; }
.ops-title-button:focus-visible { outline: 2px solid var(--ops-blue); outline-offset: 4px; border-radius: 3px; }
.ops-badge {
 display: inline-block;
 border-radius: 5px;
 padding: 3px 7px;
 white-space: nowrap;
 font-size: 12px;
 font-weight: 700;
 line-height: 1.5;
 background: #eef2f7;
 color: #42566f;
}
.ops-badge[data-tone="blue"] { background: #e5efff; color: #174c92; }
.ops-badge[data-tone="green"] { background: #e4f4ea; color: #245f43; }
.ops-badge[data-tone="amber"] { background: #fff1d6; color: #744c09; }
.ops-badge[data-tone="red"] { background: #fce9ed; color: #922c3d; }
.ops-empty { padding: 25px 16px; margin: 0; text-align: center; color: var(--ops-muted); }
.ops-status { margin: 9px 0 0; color: var(--ops-muted); font-size: 13px; }
.ops-status:empty { display: none; }
.ops-more { margin-top: 12px; }

html:has(.ops-drawer[open]) { overflow: hidden; }
.ops-page .ops-drawer {
 position: fixed;
 inset: 0 0 0 auto;
 box-sizing: border-box;
 margin: 0;
 width: min(590px, 100%);
 max-width: 100%;
 height: 100dvh;
 max-height: 100dvh;
 padding: 0;
 overflow-y: auto;
 overscroll-behavior-y: contain;
 border-radius: 14px 0 0 14px;
 background: #fff;
 color: #203752;
}
.ops-page .ops-drawer::backdrop { background: #1b2c435c; }
.ops-drawer-head {
 display: flex;
 align-items: flex-start;
 justify-content: space-between;
 gap: 12px;
 position: sticky;
 top: 0;
 z-index: 1;
 padding: 16px 20px;
 background: #fff;
 border-bottom: 1px solid var(--ops-line);
}
.ops-drawer-head h2 { margin: 0; font-size: clamp(21px, 3vw, 26px); line-height: 1.3; overflow-wrap: anywhere; }
.ops-drawer-head button { white-space: nowrap; }
.ops-drawer-content { padding: 18px 20px 28px; }
.ops-detail-meta,
.ops-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ops-detail-meta { color: var(--ops-muted); }
.ops-detail-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ops-line); }
.ops-detail-section :is(h3, h4) { margin: 0 0 10px; font-size: 16px; line-height: 1.4; }
.ops-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.ops-facts div { padding: 9px 11px; border-radius: 8px; background: var(--ops-pale); }
.ops-facts dt { color: var(--ops-muted); font-size: 12px; }
.ops-facts dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.ops-drawer .ops-message { white-space: pre-wrap; overflow-wrap: anywhere; }
.ops-drawer .field textarea { width: 100%; resize: vertical; }
.ops-confirm-id { color: var(--ops-muted); font-weight: 600; overflow-wrap: anywhere; }
.ops-page .ops-danger { color: #a5263b; border-color: #ecc9d1; }
.ops-page .ops-danger:hover { background: #fdeef1; }
.ops-page .ops-danger[aria-pressed=true] { color: #a5263b; background: #fce9ed; border-color: #ecc9d1; }
.ops-action-form { padding: 14px; margin-top: 12px; background: var(--ops-pale); border-radius: 9px; }
.ops-section-count { color: var(--ops-muted); font-size: 13px; font-weight: 500; }
.ops-member-posts { padding: 0; margin: 0; list-style: none; }
.ops-member-posts li { display: flex; align-items: start; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--ops-line); overflow-wrap: anywhere; }
.ops-member-posts small { white-space: nowrap; color: var(--ops-muted); }

@media (max-width: 715px) {
 .ops-table,
 .ops-table tbody { display: block; }
 .ops-table thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
 .ops-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--ops-line); }
 .ops-table tr:last-child { border-bottom: 0; }
 .ops-table td { padding: 0; border: 0; }
 .ops-table td[data-label]::before { content: attr(data-label) " "; color: var(--ops-muted); font-size: 11px; }
 .ops-table .ops-identity { grid-column: 1/-1; }
 .ops-journey-size { display: inline; margin-left: 5px; }
 .ops-page .ops-drawer { width: 100%; border-radius: 0; }
}
@media (max-width: 510px) {
 .ops-filters .field { flex: 1 1 125px; }
 .ops-members .ops-filters .ops-search-field { flex-basis: 100%; }
 .ops-drawer-head,
 .ops-drawer-content { padding-inline: 14px; }
}
