/* Owner console pages (status, organisations, people, packs, knowledge, feedback, audit, access). Tokens come from app.css. */

/* section navigation: wraps instead of scrolling sideways, each link is a touch target of at least 44px */
.ow-sections ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ow-sections a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border: 1px solid var(--bd2); border-radius: 8px; background: var(--surf); color: var(--tx); font-weight: 600; text-decoration: none; }
.ow-sections a:hover { background: var(--surf2); }
.ow-sections a[aria-current="page"] { background: var(--acsoft); border-color: var(--ac); box-shadow: inset 0 -4px 0 var(--ac); }

/* status */
.ow-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .ow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ow-card h2 { font-size: 1.15rem; margin: 0 0 4px; }
.ow-card .kv { font-size: .95rem; }
.ow-alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ow-alert { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 10px 12px; border: 1px solid var(--bd2); border-left-width: 5px; border-radius: 8px; background: var(--surf); }
.ow-alert.bad { border-left-color: var(--no); background: var(--nobg); }
.ow-alert.warn { border-left-color: var(--nv); background: var(--nvbg); }
.ow-alert.info { border-left-color: var(--ac); background: var(--acsoft); }
.ow-alert-text { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }

/* forms on these pages */
.ow-search, .ow-filters { display: grid; gap: 12px; grid-template-columns: 1fr; align-items: end; }
.ow-search .field + .field, .ow-filters .field + .field { margin-top: 0; }
@media (min-width: 720px) { .ow-search { grid-template-columns: 1fr auto; } .ow-filters { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.ow-fieldset { border: 1px solid var(--bd2); border-radius: var(--r); padding: 12px 14px 16px; margin: 0; min-width: 0; }
.ow-fieldset legend { font-weight: 650; padding: 0 6px; }
.ow-details { border-top: 1px solid var(--bd2); padding-top: 8px; }
.ow-details summary { font-weight: 560; cursor: pointer; min-height: 32px; }
.ow-details[open] summary { margin-bottom: 10px; }
.ow-page input[type="file"] { width: 100%; max-width: 100%; }

/* audit entries */
.ow-audit { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ow-entry { display: grid; gap: 8px; padding: 12px 14px; }
.ow-pre { margin: 0 0 8px; padding: 10px; background: var(--surf2); border-radius: 8px; font-family: var(--mono); font-size: .8rem; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow: auto; }
