.ops-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0 22px;
}

.ops-header h1 {
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.ops-header p,
.ops-context,
.ops-muted {
  color: var(--muted);
}

.ops-header p {
  margin-top: 6px;
}

.ops-layout {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(0, 2.1fr);
  align-items: start;
  gap: 18px;
}

.ops-directory,
.ops-detail {
  min-width: 0;
}

.ops-directory .panel-heading {
  padding-bottom: 12px;
}

.ops-directory-list {
  display: grid;
  gap: 3px;
  max-height: 535px;
  overflow-y: auto;
  margin: 0;
  padding: 3px 12px 12px;
  list-style: none;
  scrollbar-width: thin;
}

.ops-group-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: inherit;
  text-align: start;
  background: #fff;
}

.ops-group-option:hover {
  background: var(--soft);
}

.ops-group-option[aria-current="true"] {
  border-color: #e7d9fa;
  background: #f5edfe;
}

.ops-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e7daf6;
  border-radius: 9px;
  color: #6746a0;
  background: #f0e6fa;
  font-size: 12px;
  font-weight: 730;
}

.ops-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ops-identity {
  display: grid;
  min-width: 0;
  flex: 1;
}

.ops-identity > * {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-identity > span {
  color: var(--muted);
  font-size: 12px;
}

.ops-tag {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 2px 8px;
  color: #604287;
  background: #f3ebfa;
  font-size: 11px;
  font-weight: 670;
  text-transform: capitalize;
}

.ops-tag[data-tone="green"] {
  color: #286249;
  background: #e7f3ec;
}
.ops-tag[data-tone="amber"] {
  color: #805017;
  background: #fff1dd;
}
.ops-tag[data-tone="red"] {
  color: #902645;
  background: #fcebf0;
}

.ops-detail-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 19px 20px 14px;
}

.ops-detail-heading .ops-avatar {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}

.ops-detail-heading h2 {
  overflow-wrap: anywhere;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.ops-group-heading-copy {
  min-width: 0;
  flex: 1;
}

.ops-group-actions {
  margin-inline-start: auto;
}

.ops-context {
  margin-top: 4px;
  font-size: 13px;
}

.ops-description {
  margin: 0 20px 14px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.ops-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  padding: 0 16px;
  scrollbar-width: thin;
}

.ops-tab {
  flex: none;
  min-height: 43px;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 9px;
  color: var(--muted);
  background: transparent;
  font-weight: 670;
  white-space: nowrap;
}

.ops-tab:focus-visible {
  outline-offset: -3px;
}
.ops-tab:hover {
  color: var(--accent-dark);
}
.ops-tab[aria-selected="true"] {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.ops-panel-body {
  min-height: 135px;
  padding: 9px 20px 15px;
}

.ops-panel-body:focus-visible {
  outline-offset: -3px;
}

.ops-section-tools {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ops-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ops-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 59px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.ops-row:last-child {
  border-bottom: 0;
}

.ops-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.ops-row-actions .button {
  min-height: 33px;
  padding: 4px 8px;
  font-size: 12px;
}

.ops-message {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}

.ops-request {
  align-items: flex-start;
}

.ops-request .ops-identity > * {
  white-space: normal;
}

.ops-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr));
  gap: 12px;
  padding-top: 5px;
}

.ops-post {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.ops-post-image {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 10;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  background: var(--soft);
}

.ops-post-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ops-post-body {
  display: grid;
  flex: 1;
  gap: 8px;
  padding: 11px;
  overflow-wrap: anywhere;
}

.ops-post-body .ops-row-actions {
  margin-top: auto;
}

.ops-row-actions .button:hover {
  opacity: 1;
}

.ops-form {
  display: grid;
  gap: 10px;
}

.ops-form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ops-form label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 650;
}

.ops-field-wide {
  grid-column: 1 / -1;
}

.ops-form input,
.ops-form select,
.ops-form textarea {
  width: 100%;
  min-height: 37px;
  border: 1px solid #dcd0e8;
  border-radius: 7px;
  padding: 6px 8px;
  color: var(--ink);
  background: #fcfaff;
  font: inherit;
  font-weight: 450;
}

.ops-form input::file-selector-button {
  margin-inline-end: 8px;
  border: 0;
  border-radius: 5px;
  padding: 3px 7px;
  color: var(--accent-dark);
  background: var(--soft);
  font: inherit;
  cursor: pointer;
}

.ops-form textarea {
  min-height: 65px;
  resize: vertical;
}
.ops-form select:focus-visible,
.ops-form textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.ops-form .dialog-actions {
  margin-top: 4px;
}
.ops-dialog {
  max-height: calc(100% - 32px);
  overflow: auto;
}
.ops-dialog .ops-dialog-copy {
  margin: 0 0 6px;
}
.ops-form .notice {
  margin: 0;
}
.ops-workspace-notice {
  margin: 0 0 13px;
}

@media (max-width: 760px) {
  .ops-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .ops-directory-list {
    max-height: 234px;
  }
}

@media (max-width: 430px) {
  .ops-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .ops-detail-heading,
  .ops-panel-body {
    padding-inline: 12px;
  }
  .ops-detail-heading {
    flex-wrap: wrap;
  }
  .ops-group-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .ops-tabs {
    padding-inline: 8px;
  }
  .ops-request {
    flex-wrap: wrap;
  }
  .ops-request .ops-row-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .ops-form-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}
