.ow-systems-page { padding-block-start: 22px; }
.ow-links .ow-usage-group { margin-block-start: 14px; padding-block-start: 14px; border-top: 1px solid #dce3ea; }
.ow-usage-group summary { list-style: none; cursor: pointer; }
.ow-usage-group summary::-webkit-details-marker { display: none; }
.ow-usage-group summary .ow-usage-chevron { margin-inline-start: auto; transition: transform 140ms ease; }
.ow-usage-group[open] summary .ow-usage-chevron { transform: rotate(180deg); }
.ow-usage-group .ow-usage-link { min-height: 38px; padding-inline-start: 34px; }
.owner-rail .ow-usage-group .ow-usage-link { padding-inline-start: 10px; }

.os-workbench {
  --os-ink: #182b40;
  --os-muted: #52657a;
  --os-brand: #234f80;
  --os-line: #dce3ea;
  --os-tint: #ebf2fa;
  display: grid;
  gap: 15px;
  color: var(--os-ink);
  line-height: 1.5;
}
.os-workbench h2, .os-workbench h3, .os-workbench p, .os-workbench dl, .os-workbench dd { margin: 0; }
.os-workbench svg { flex: none; vertical-align: middle; }
.os-workbench a { color: var(--os-brand); text-underline-offset: .25em; }
.os-workbench :focus-visible { outline: 2px solid #316db3; outline-offset: 2px; }
.os-workbench input, .os-workbench textarea { caret-color: var(--os-brand); }
.os-panel { min-width: 0; border: 1px solid var(--os-line); border-radius: 12px; background: #fff; }
.os-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 10px; gap: 10px 16px; }
.os-panel-head h2, .os-directory-toolbar h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 690; letter-spacing: -.01em; white-space: nowrap; }
.os-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--os-tint);
  color: var(--os-brand);
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.os-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 8px; }
.os-filters label { color: var(--os-muted); white-space: nowrap; font-size: 13px; }
.os-filters input, .os-filters select, .os-dialog textarea {
  min-width: 0;
  height: 35px;
  padding: 0 11px;
  border: 1px solid #c9d5e2;
  border-radius: 6px;
  background: #fff;
  color: var(--os-ink);
  font: inherit;
}
.os-filters input { width: min(230px, 100%); }
.os-filters select { max-width: 300px; padding-inline-end: 26px; }
.os-filters input::placeholder, .os-dialog textarea::placeholder { color: var(--os-muted); }
.os-workbench .os-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 11px;
  border: 1px solid #c9d5e2;
  border-radius: 7px;
  background: #fff;
  color: var(--os-brand);
  font: inherit;
  font-size: 13px;
  font-weight: 620;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.os-workbench .os-button:hover:not(:disabled) { background: var(--os-tint); text-decoration: none; }
.os-workbench .os-primary { border-color: var(--os-brand); background: var(--os-brand); color: #fff; }
.os-workbench .os-primary:hover:not(:disabled) { background: #183f6b; }
.os-workbench .os-danger { color: #9c2933; border-color: #e8bdc2; }
.os-workbench .os-danger:hover:not(:disabled) { background: #fbeef0; }
.os-workbench .os-danger.os-primary { color: #fff; background: #a12c33; border-color: #a12c33; }
.os-workbench .os-danger.os-primary:hover:not(:disabled) { background: #8e2630; }
.os-workbench button:disabled { opacity: .55; cursor: not-allowed; }
.os-table-scroll { overflow: auto; border-radius: 0 0 12px 12px; }
.os-workbench table { width: 100%; min-width: 620px; border-collapse: collapse; text-align: left; font-size: 13px; }
.os-workbench th, .os-workbench td { padding: 10px 14px; border-top: 1px solid var(--os-line); vertical-align: middle; }
.os-workbench thead { background: #f0f4f9; }
.os-workbench thead th { font-size: 12px; font-weight: 650; color: #43586e; white-space: nowrap; }
.os-workbench th:first-child, .os-workbench td:first-child { padding-inline-start: 18px; }
.os-workbench tbody th { font-weight: 680; }
.os-workbench tbody tr:hover { background: #f5f8fc; }
.os-row-subtitle { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--os-muted); }
.os-tag { display: inline-flex; padding: 2px 8px; border-radius: 5px; white-space: nowrap; font-size: 12px; font-weight: 620; background: #edf1f6; color: #4a5d71; }
.os-tag.good { color: #246348; background: #e9f4ed; }
.os-tag.wait { color: #78500b; background: #fff3d8; }
.os-tag.bad { color: #912a32; background: #fcecee; }
.os-text { display: inline-flex; gap: 5px; align-items: center; padding: 3px 0; border: 0; color: var(--os-brand); background: none; font: inherit; font-weight: 650; text-align: left; white-space: nowrap; cursor: pointer; }
.os-text:hover { text-decoration: underline; text-underline-offset: .25em; }
.os-directory-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; margin-bottom: 15px; }
.os-directory-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.os-directory-search { flex-wrap: nowrap; }
.os-directory-search input { width: 220px; }
.os-system-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 315px), 1fr)); gap: 14px; align-items: start; }
.os-system-card { min-width: 0; border: 1px solid var(--os-line); border-radius: 12px; background: #fff; }
.os-system-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; min-height: 68px; padding: 15px 15px 12px; }
.os-system-head > .os-tag { flex: none; margin-top: 3px; }
.os-system-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.os-system-name h3 { color: var(--os-ink); font-size: 15px; line-height: 1.45; font-weight: 700; overflow-wrap: anywhere; }
.os-system-icon { position: relative; display: grid; place-items: center; width: 33px; height: 33px; flex: none; border-radius: 7px; overflow: hidden; background: #e6eff9; color: var(--os-brand); }
.os-system-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.os-system-icon img.os-logo-loaded { opacity: 1; }
.os-system-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 12px 15px; background: #f5f8fc; border-block: 1px solid #e9eef5; }
.os-system-metrics > div { min-width: 0; padding-inline: 9px; border-inline-end: 1px solid var(--os-line); }
.os-system-metrics > div:first-child { padding-inline-start: 0; }
.os-system-metrics > div:last-child { border: 0; }
.os-system-metrics dt, .os-system-metrics dd span { color: var(--os-muted); font-size: 12px; }
.os-system-metrics dd { margin-top: 4px; white-space: nowrap; }
.os-system-metrics dd strong { font-size: 20px; line-height: 1.2; font-weight: 720; }
.os-system-metrics dd span { margin-inline-start: 4px; }
.os-system-metrics .os-metric-link { color: var(--os-brand); text-decoration-color: #aabbd0; }
.os-system-metrics .os-metric-link:hover { text-decoration-color: currentColor; }
.os-system-metrics small { color: var(--os-muted); font-size: 11px; }
.os-system-actions { padding: 12px 15px; }
.os-workbench .os-system-actions .os-button { padding-inline: 9px; }
.os-card-more { margin-inline-start: auto; }
.os-workbench .os-card-more[aria-expanded="true"] { background: var(--os-tint); }
.os-card-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.os-system-details { padding: 13px 15px; border-top: 1px solid var(--os-line); border-radius: 0 0 11px 11px; background: #f8fafd; }
.os-system-shortcuts { margin-top: 12px; }
.os-workbench .os-systems-updated { margin-top: 10px; color: var(--os-muted); font-size: 13px; }
.os-directory .os-paging { margin-top: 12px; }
.os-facts { display: grid; gap: 8px; align-content: start; }
.os-facts div { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.os-facts dt { flex: 0 0 60px; color: var(--os-muted); font-size: 12px; }
.os-facts dd { min-width: 0; font-size: 13px; font-weight: 560; overflow-wrap: anywhere; }
.os-dialog-facts .wide { grid-column: 1 / -1; }
.os-requests-view { display: grid; gap: 14px; min-width: 0; }
.os-requests-view:focus { outline: none; }
.os-owner-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.os-breadcrumb { color: var(--os-muted); font-size: 13px; }
.os-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 9px; padding: 0; margin: 0; }
.os-breadcrumb li+li::before { content: '/'; color: #7e90a3; margin-inline-end: 9px; }
.os-breadcrumb [aria-current="location"] { color: var(--os-ink); font-weight: 650; }
.os-tabs { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.os-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; min-height: 36px; border: 1px solid #c9d5e2; border-radius: 7px; background: #fff; color: var(--os-ink); font: inherit; font-weight: 590; cursor: pointer; }
.os-tabs button:not([aria-pressed="true"]):hover { background: var(--os-tint); }
.os-tabs button[aria-pressed="true"] { border-color: var(--os-brand); background: var(--os-brand); color: #fff; font-weight: 700; }
.os-request-actions { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; }
.os-request-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 15px; }
.os-parent-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; min-width: 0; color: var(--os-muted); font-size: 13px; }
.os-parent-filter strong { color: var(--os-ink); overflow-wrap: anywhere; }
.os-request-table thead th { border-top: 0; }
.os-opening-table :is(th,td) { padding-inline: 10px; }
.os-opening-table tbody :is(th,td) { overflow-wrap: anywhere; }
.os-workbench .os-direct-result { padding: 11px 14px; border-radius: 7px; color: #246348; background: #e9f4ed; font-size: 13px; }
.os-workbench .os-notice { margin: 12px 18px; padding: 8px 10px; background: #eef3f9; border-radius: 7px; color: #3e5770; font-size: 13px; }
.os-workbench .os-empty { padding: 16px 18px; color: var(--os-muted); font-size: 13px; }
.os-paging { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 8px 18px; color: var(--os-muted); font-size: 12px; border-top: 1px solid var(--os-line); }
.os-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.os-dialog { padding: 0; width: min(640px, calc(100% - 28px)); max-height: calc(100dvh - 32px); color: var(--os-ink); border: 0; border-radius: 14px; box-shadow: 0 18px 44px rgb(0 0 0 / 20%); }
.os-dialog::backdrop { background: #17293c65; }
.os-dialog-head, .os-dialog-foot { display: flex; align-items: center; gap: 10px; padding: 13px 22px; }
.os-dialog-head { justify-content: space-between; border-bottom: 1px solid var(--os-line); }
.os-dialog-head h2 { font-size: 19px; font-weight: 720; }
.os-dialog-head h2:focus { outline: none; }
.os-dialog-foot { justify-content: flex-end; flex-wrap: wrap; background: #f3f6fa; border-top: 1px solid var(--os-line); }
.os-dialog-foot .os-detail-back { margin-inline-end: auto; }
.os-dialog-body { padding: 18px 22px; }
.os-dialog-body .os-notice { margin: 0 0 12px; }
.os-dialog-body .os-parent-notice { margin: 12px 0 0; background: #fff3d8; color: #78500b; }
.os-dialog-body .os-breadcrumb { margin-bottom: 12px; }
.os-dialog-facts { display: grid; gap: 0 20px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.os-dialog-facts div { display: grid; grid-template-columns: 74px minmax(0,1fr); gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--os-line); }
.os-dialog-facts dt { color: var(--os-muted); font-size: 13px; }
.os-dialog-facts dd { font-weight: 620; white-space: pre-wrap; overflow-wrap: anywhere; }
.os-dialog-body h3 { margin: 14px 0 5px; font-size: 14px; }
.os-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--os-muted); }
.os-history strong { color: var(--os-ink); margin-right: 7px; }
.os-icon-button { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border: 0; border-radius: 7px; background: transparent; color: var(--os-muted); cursor: pointer; }
.os-icon-button:hover { background: var(--os-tint); color: var(--os-brand); }
.os-decline { display: grid; gap: 7px; }
.os-dialog textarea { display: block; width: 100%; min-height: 78px; padding: 7px 10px; resize: vertical; }
.os-dialog .os-error { color: #9c2933; margin-top: 10px; }
.os-direct-dialog { width: min(580px, calc(100% - 28px)); }
.os-direct-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px 12px; }
.os-direct-fields label { display: grid; align-content: start; gap: 5px; min-width: 0; font-weight: 650; }
.os-direct-fields .wide { grid-column: 1/-1; }
.os-direct-fields :is(select,input) {
  width: 100%; box-sizing: border-box; min-width: 0; height: 36px; padding: 0 9px;
  border: 1px solid #c9d5e2; border-radius: 6px; background: #fff; color: var(--os-ink); font: inherit; font-weight: 400;
}
.os-direct-fields :is(textarea,small) { font-weight: 400; }
.os-direct-fields textarea { box-sizing: border-box; min-height: 60px; }
.os-direct-fields input[readonly] { background: #f3f6fa; }
.os-direct-fields small, .os-direct-fields :is(input,textarea)::placeholder { color: var(--os-muted); }
@media (max-width: 760px) {
  .ow-page.ow-systems-page { padding: 12px 10px 28px; }
  .os-workbench { gap: 12px; }
  .os-panel-head { align-items: start; flex-wrap: wrap; }
  .os-filters input { width: 100%; }
  .os-filters select { max-width: 240px; }
  .os-dialog-facts { grid-template-columns: minmax(0,1fr); }
  .os-tabs { gap: 10px; }
  .os-workbench table, .os-workbench tbody { display: block; min-width: 0; }
  .os-workbench thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .os-workbench tbody tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px 12px; padding: 12px 18px; border-top: 1px solid var(--os-line); }
  .os-workbench tbody th, .os-workbench tbody td { padding: 0; border: 0; overflow-wrap: anywhere; }
  .os-workbench .os-opening-table tbody :is(th,td) { padding: 0; }
  .os-workbench tbody th, .os-workbench tbody td[colspan] { grid-column: 1/-1; }
  .os-workbench tbody td[data-label] { display: flex; flex-direction: column; align-items: start; }
  .os-workbench tbody td[data-label]::before { content: attr(data-label); color: var(--os-muted); font-size: 12px; }
  .os-workbench tbody td:last-child:not([colspan]) { align-self: end; }
  .os-dialog-head, .os-dialog-body, .os-dialog-foot { padding-inline: 15px; }
}
@media (max-width: 620px) {
  .os-directory-toolbar { flex-wrap: wrap; }
  .os-directory-search { width: 100%; }
  .os-directory-search input { flex: 1; width: auto; }
  .os-request-controls .os-filters { flex: 1 0 100%; flex-wrap: nowrap; }
  .os-request-controls .os-filters select { flex: 1; max-width: none; }
  .os-direct-fields :is(input,select,textarea) { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ow-usage-group .ow-usage-chevron { transition: none; }
}
