.ops-workspace {
  margin-top: 28px;
  border-top: 1px solid #ffffff17;
  padding-top: 24px;
  color: var(--text, #ece9df);
  min-width: 0;
}
.ops-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: radial-gradient(ellipse at 95% 20%, #d4ad5420, transparent 60%), #151819;
  border: 1px solid #d4ad543d;
  border-radius: 14px;
  padding: 26px 28px;
}
.ops-eyebrow {
  color: #d3ad5c;
  font-size: 10px;
  letter-spacing: 0.19em;
  font-weight: 700;
}
.ops-hero h3 {
  font-size: 26px;
  letter-spacing: -0.035em;
  margin: 9px 0;
}
.ops-hero p {
  color: #a8adb0;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  max-width: 520px;
}
.ops-emblem {
  color: #d3ad5c;
  font-size: 52px;
  padding: 0 8px;
}
.ops-quota {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 17px 2px;
  font-size: 12px;
  color: #b7bab9;
}
.ops-quota strong {
  color: #e5d3ad;
}
.ops-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 24px;
}
.ops-toolbar form {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 470px;
}
.ops-toolbar .field {
  min-width: 0;
}
.ops-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
}
.ops-main,
.ops-categories {
  min-width: 0;
}
.ops-build-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ops-build-card,
.ops-template-card,
.ops-category,
.ops-activity-card {
  border: 1px solid #ffffff17;
  border-radius: 10px;
  background: #1b1f20;
  padding: 18px;
  min-width: 0;
}
.ops-build-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ops-equipment {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ops-equipment img {
  height: 64px;
  width: 64px;
  object-fit: contain;
  flex: none;
  background: #111516;
  border-radius: 8px;
}
.ops-equipment div {
  min-width: 0;
}
.ops-workspace h4 {
  font-size: 14px;
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}
.ops-equipment p,
.ops-template-card p,
.ops-activity-card p {
  font-size: 12px;
  color: #a4acae;
  margin: 3px 0;
  overflow-wrap: anywhere;
}
.ops-card-role {
  font-size: 11px;
  color: #d9be85;
}
.ops-card-instructions {
  font-size: 12px;
  line-height: 1.6;
  color: #aab0ae;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin: 0 0 8px;
  max-height: 60px;
}
.ops-row-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.ops-workspace .button-small,
.ops-dialog .button-small {
  font-size: 11px;
  padding: 8px 10px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.ops-category-block {
  padding: 16px;
  background: #131718;
  border: 1px solid #ffffff13;
  border-radius: 12px;
}
.ops-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.ops-section-heading h4 {
  font-size: 12px;
}
.ops-section-heading small,
.ops-subcategories small {
  color: #a5aaab;
  font-size: 10px;
}
.ops-category {
  padding: 12px;
  margin-bottom: 10px;
}
.ops-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.ops-row strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.ops-subcategories {
  border-top: 1px solid #ffffff13;
  margin-top: 12px;
  padding-top: 12px;
  display: grid;
  gap: 14px;
}
.ops-subcategories .ops-row {
  border-left: 1px solid #d3ad5c55;
  padding-left: 10px;
  font-size: 12px;
}
.ops-premium-note {
  font-size: 12px;
  border-left: 2px solid #d3ad5c;
  padding-left: 12px;
  color: #bdb6a6;
  margin: 0 0 18px;
}
.ops-empty {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 140px;
  padding: 24px;
  color: #a0a8a9;
  font-size: 13px;
  grid-column: 1/-1;
  border: 1px dashed #ffffff1c;
  border-radius: 10px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.ops-empty > span {
  font-size: 30px;
  color: #947b42;
}
.ops-pager {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin: 22px 0 0;
  font-size: 12px;
  color: #adb2b0;
}
.ops-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}
.ops-template-card .ops-row-actions {
  margin-top: 14px;
}
.ops-section-title {
  padding-bottom: 12px;
}
.ops-activity-list {
  display: grid;
  gap: 12px;
}
.ops-status {
  font-size: 10px;
  color: #aaa;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 8px;
}
.ops-status.is-active {
  color: #89cfa5;
}
.ops-activity-card .ops-row-actions {
  margin-top: 14px;
}
.ops-workspace .muted {
  font-size: 11px;
  line-height: 1.6;
}
.ops-dialog {
  width: min(840px, calc(100vw - 28px));
  max-height: calc(100dvh - 48px);
  background: #191d1e;
  color: #e9e7de;
  border: 1px solid #73623f;
  border-radius: 14px;
  padding: 24px;
  box-sizing: border-box;
  overflow: auto;
  box-shadow: 0 30px 100px #0008;
}
.ops-dialog:not([open]) {
  display: none;
}
.ops-dialog::backdrop {
  background: #070a0ccd;
  backdrop-filter: blur(5px);
}
.ops-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #ffffff18;
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.ops-dialog-head h3 {
  font-size: 19px;
  margin: 0;
  overflow-wrap: anywhere;
}
.ops-editor-form {
  display: grid;
  gap: 18px;
}
.ops-dialog .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.ops-dialog .form-group {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.ops-dialog label,
.ops-dialog legend {
  font-size: 12px;
  color: #b9bfbd;
}
.ops-dialog .field {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: #222729;
  border: 1px solid #43494a;
  border-radius: 6px;
  padding: 11px 12px;
  color: #f0ede3;
  font: inherit;
  font-size: 13px;
}
.ops-gear-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
  background: #111617;
  border-radius: 10px;
}
.ops-editor-actions {
  position: sticky;
  bottom: -24px;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  background: #191d1e;
  border-top: 1px solid #ffffff18;
  padding: 18px 0 8px;
}
.ops-party {
  border: 1px solid #ffffff1c;
  padding: 14px;
  border-radius: 8px;
  min-width: 0;
}
.ops-variants {
  border: 1px solid #ffffff1c;
  padding: 14px;
  border-radius: 8px;
}
.ops-variants summary {
  font-size: 12px;
  cursor: pointer;
}
.ops-variants[open] .form-grid {
  margin-top: 18px;
}
.ops-workspace button:disabled,
.ops-dialog button:disabled,
.ops-dialog .field:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.ops-workspace [hidden],
.ops-dialog [hidden] {
  display: none !important;
}
.ops-workspace .notice,
.ops-dialog .notice {
  margin: 14px 0;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.ops-workspace .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1180px) {
  .ops-layout {
    grid-template-columns: 1fr;
  }
  .ops-categories {
    order: 2;
  }
  .ops-category-block {
    display: grid;
    gap: 10px;
  }
  .ops-category {
    margin-bottom: 0;
  }
  .ops-category > .ops-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .ops-subcategories .ops-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .ops-build-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .ops-hero {
    padding: 19px;
    gap: 12px;
  }
  .ops-hero h3 {
    font-size: 22px;
  }
  .ops-emblem {
    font-size: 32px;
    padding: 0;
  }
  .ops-build-grid,
  .ops-template-grid {
    grid-template-columns: 1fr;
  }
  .ops-quota {
    gap: 10px;
    font-size: 11px;
  }
  .ops-toolbar {
    align-items: stretch;
  }
  .ops-toolbar form {
    max-width: none;
    width: 100%;
    flex-basis: 100%;
  }
  .ops-toolbar > .button {
    width: 100%;
  }
  .ops-dialog {
    padding: 18px;
    max-height: calc(100dvh - 24px);
  }
  .ops-dialog .form-grid,
  .ops-gear-fields {
    grid-template-columns: 1fr;
  }
  .ops-dialog-head {
    align-items: start;
  }
  .ops-dialog-head h3 {
    font-size: 17px;
  }
  .ops-dialog-head .button {
    max-width: 110px;
  }
  .ops-editor-actions {
    bottom: -18px;
  }
  .ops-editor-actions .button {
    width: 100%;
  }
  .ops-category > .ops-row,
  .ops-subcategories .ops-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .ops-activity-card {
    padding: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ops-workspace *,
  .ops-dialog * {
    scroll-behavior: auto;
    transition: none !important;
  }
}
.ops-archive {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #ffffff18;
}
.ops-archive-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #ffffff12;
  font-size: 12px;
}
.ops-archive-row span {
  overflow-wrap: anywhere;
  min-width: 0;
}

/* Inventory editor: shared item families, T8 equipment and item-bound abilities. */
.ops-dialog.ops-build-dialog {
  width: min(1120px, calc(100vw - 28px));
  padding: 28px;
}
/* Keep the sticky save area above equipment images and flush with dialog padding. */
.ops-build-dialog .ops-editor-actions {
  bottom: -28px;
}
.gear-studio-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid #d3ad5c25;
}
.gear-studio-heading h3 {
  font-size: 19px;
  margin: 0 0 7px;
}
.gear-studio-heading p {
  font-size: 12px;
  line-height: 1.6;
  color: #a9b0b0;
  margin: 0;
  max-width: 460px;
}
.gear-policy {
  color: #d9c18d;
  border: 1px solid #d3ad5c35;
  background: #d3ad5c0a;
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 10px;
  line-height: 1.6;
  max-width: 240px;
}
.gear-studio-layout {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  min-width: 0;
}
.gear-loadout {
  position: relative;
  background: radial-gradient(ellipse at 50% 45%, #8a71442b, transparent 65%), #101516;
  border: 1px solid #d3ad5c2d;
  border-radius: 12px;
  padding: 18px;
  overflow: hidden;
}
.gear-loadout-top {
  display: flex;
  justify-content: space-between;
  color: #a28b5b;
  font-size: 10px;
  letter-spacing: 0.22em;
  padding: 0 2px 22px;
  position: relative;
  z-index: 1;
}
.gear-silhouette {
  position: absolute;
  top: 55px;
  left: 15%;
  width: 70%;
  height: 400px;
  color: #bca16b10;
  pointer-events: none;
}
.gear-silhouette svg {
  width: 100%;
  height: 100%;
}
.gear-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, 132px) 110px;
  gap: 13px 10px;
  position: relative;
  z-index: 1;
}
.gear-slot {
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  gap: 6px;
  padding: 0;
  cursor: pointer;
  color: #b8c0bf;
  font: inherit;
  position: relative;
}
.gear-slot-capa {
  grid-area: 1/1;
}
.gear-slot-cabeza {
  grid-area: 1/2;
}
.gear-slot-arma {
  grid-area: 2/1;
}
.gear-slot-pecho {
  grid-area: 2/2;
}
.gear-slot-offhand {
  grid-area: 2/3;
}
.gear-slot-comida {
  grid-area: 3/1;
}
.gear-slot-calzado {
  grid-area: 3/2;
}
.gear-slot-pocion {
  grid-area: 3/3;
}
.gear-slot-montura {
  grid-area: 4/2;
}
.gear-slot-label {
  font-size: 10px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  max-width: 100%;
  color: #a0aaa9;
}
.gear-slot-image {
  height: 76px;
  width: 76px;
  max-width: 100%;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid #9b865541;
  border-radius: 7px;
  background: linear-gradient(145deg, #272b28, #14191b);
  box-shadow: inset 0 0 0 3px #101516;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.gear-slot-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  grid-area: 1/1;
  position: relative;
  z-index: 1;
}
.gear-slot-image small,
.gear-item-image small {
  position: absolute;
  bottom: 2px;
  left: 3px;
  font-size: 9px;
  color: #ffe9a4;
  background: #101516ce;
  border-radius: 3px;
  padding: 1px 4px;
  z-index: 2;
}
.gear-slot-symbol {
  font-size: 32px;
  color: #8b805f66;
}
.gear-slot-name {
  font-size: 9px;
  line-height: 1.3;
  max-width: 100%;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gear-slot.is-selected .gear-slot-image {
  border-color: #e9c878;
  box-shadow:
    0 0 20px #d3ad5c20,
    inset 0 0 0 3px #1a1e1c;
}
.gear-slot:hover .gear-slot-image {
  border-color: #d3ad5c;
}
.gear-slot:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
.gear-summary {
  position: relative;
  z-index: 1;
  border-top: 1px solid #ffffff13;
  margin-top: 18px;
  padding-top: 6px;
}
.gear-summary:empty {
  display: none;
}
.gear-summary-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
}
.gear-summary-row strong {
  font-size: 10px;
  width: 75px;
  font-weight: 400;
  color: #a3aaa7;
}
.gear-chosen-skill {
  position: relative;
  display: block;
  height: 30px;
  width: 30px;
  background: #202528;
  border: 1px solid #8d7a52;
  border-radius: 50%;
}
.gear-chosen-skill img {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  z-index: 1;
}
.gear-chosen-skill > span:last-child {
  position: absolute;
  bottom: -5px;
  right: -2px;
  font-size: 8px;
  background: #151b1a;
  color: #e0c98b;
  z-index: 2;
  padding: 0 2px;
}
.gear-selector {
  min-width: 0;
  border: 1px solid #ffffff12;
  border-radius: 12px;
  padding: 20px;
  background: #151a1b;
}
.gear-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.gear-section-head h4 {
  font-size: 17px;
  margin: 0 0 6px;
}
.gear-section-head p {
  font-size: 12px;
  line-height: 1.5;
  color: #b5bcb7;
  margin: 0;
  overflow-wrap: anywhere;
}
.gear-section-head .button {
  flex: none;
  max-width: 135px;
}
.gear-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gear-result-count {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #8e9b96;
  padding: 16px 2px 10px;
  border-bottom: 1px solid #ffffff12;
  margin-bottom: 12px;
}
.gear-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  max-height: 285px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 5px 4px 2px;
  scrollbar-color: #65593d #101516;
  min-height: 130px;
}
.gear-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  border: 1px solid #ffffff12;
  border-radius: 7px;
  background: #1d2323;
  padding: 6px;
  cursor: pointer;
  color: #c3cbc8;
  font: inherit;
  font-size: 9px;
  text-align: center;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.gear-item:hover {
  border-color: #9f884f;
}
.gear-item.is-selected {
  border-color: #dcba6f;
  background: #c2a55c14;
}
.gear-item > span:last-child {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 25px;
}
.gear-item-image {
  width: 64px;
  max-width: 100%;
  height: 64px;
  position: relative;
  display: grid;
  place-items: center;
}
.gear-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  grid-area: 1/1;
  position: relative;
  z-index: 1;
}
.gear-image-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #80735488;
}
.gear-no-results {
  grid-column: 1/-1;
  color: #a7b2ad;
  font-size: 12px;
  line-height: 1.6;
}
.gear-skills {
  border-top: 1px solid #ffffff16;
  margin-top: 20px;
  padding-top: 18px;
}
.gear-skills .gear-section-head h4 {
  font-size: 15px;
}
.gear-muted {
  font-size: 12px;
  line-height: 1.6;
  color: #899b92;
  margin: 8px 0;
}
.gear-ability-group {
  margin-top: 14px;
}
.gear-ability-heading {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 9px;
  font-size: 11px;
  line-height: 1.5;
}
.gear-ability-heading strong {
  color: #d8bd80;
  min-width: 24px;
}
.gear-ability-heading span {
  color: #b3bdb6;
  overflow-wrap: anywhere;
}
.gear-ability-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gear-ability {
  height: 43px;
  width: 43px;
  display: grid;
  place-items: center;
  position: relative;
  border: 2px solid #444d46;
  border-radius: 50%;
  background: #0d1213;
  padding: 0;
  color: #a5b1aa;
  cursor: pointer;
  font-size: 18px;
}
.gear-ability img {
  height: 100%;
  width: 100%;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}
.gear-ability:hover,
.gear-ability.is-selected {
  border-color: #e5c67c;
  box-shadow: 0 0 0 2px #d1b26722;
}
.gear-ability .gear-image-fallback {
  font-size: 15px;
}
.gear-slot:focus-visible,
.gear-item:focus-visible,
.gear-ability:focus-visible {
  outline: 2px solid #ffe1a0;
  outline-offset: 4px;
}
@media (max-width: 900px) {
  .gear-studio-layout {
    grid-template-columns: minmax(260px, 310px) minmax(0, 1fr);
    gap: 14px;
  }
  .gear-selector {
    padding: 14px;
  }
  .gear-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gear-filters {
    grid-template-columns: 1fr;
  }
  .gear-board {
    grid-template-rows: repeat(3, 130px) 105px;
  }
}
@media (max-width: 700px) {
  .ops-dialog.ops-build-dialog {
    padding: 18px;
  }
  .ops-build-dialog .ops-editor-actions {
    bottom: -18px;
  }
  .gear-studio-layout {
    grid-template-columns: 1fr;
  }
  .gear-loadout {
    max-width: 390px;
    width: 100%;
    box-sizing: border-box;
    justify-self: center;
  }
  .gear-studio-heading {
    flex-direction: column;
    gap: 10px;
  }
  .gear-policy {
    max-width: none;
  }
  .gear-board {
    grid-template-rows: repeat(3, 135px) 115px;
  }
  .gear-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 320px;
  }
  .gear-filters {
    grid-template-columns: 1fr 1fr;
  }
  .gear-section-head {
    align-items: start;
  }
  .gear-section-head .button {
    max-width: 105px;
  }
  .gear-ability {
    width: 40px;
    height: 40px;
  }
  .gear-slot-name {
    font-size: 10px;
  }
}
.ops-compositions {
  border-top: 1px solid #ffffff16;
  margin-top: 24px;
  padding-top: 22px;
}
.ops-composition-grid {
  display: grid;
  gap: 12px;
}
.ops-composition-roster {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 15px 0;
}
.ops-composition-roster > span {
  border: 1px solid #d3ad5c2b;
  background: #c8a95c0a;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 10px;
  color: #d9c58e;
}
.ops-composition-roster > span:nth-child(n + 10) {
  display: none;
}
.ops-compositions > .ops-section-heading {
  align-items: center;
  flex-wrap: wrap;
}
.ops-composition-members {
  display: grid;
  gap: 10px;
}
.ops-composition-member {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid #ffffff15;
  border-radius: 8px;
  background: #121819;
}
.ops-member-index {
  color: #d8bd80;
  font-size: 13px;
}
.ops-composition-member strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.ops-composition-member p {
  font-size: 11px;
  color: #a9b4ad;
}
.ops-composition-member img {
  height: 48px;
  width: 48px;
  object-fit: contain;
}
.ops-composition-add {
  display: flex;
  gap: 14px;
  align-items: end;
  padding: 14px;
  background: #111617;
  border-radius: 8px;
}
.ops-composition-add .form-group {
  flex: 1;
}
.ops-composition-add .button {
  margin-bottom: 1px;
}
.ops-composition-member .ops-row-actions {
  align-items: center;
}
@media (max-width: 620px) {
  .ops-composition-member {
    grid-template-columns: 25px minmax(0, 1fr);
  }
  .ops-composition-member > .ops-row-actions {
    grid-column: 2;
  }
  .ops-composition-add {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Direct section headings and floating help for mouse, keyboard and touch. */
.ops-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0 0 14px;
  border-bottom: 1px solid #ffffff14;
}
.ops-heading h3 {
  font-size: 23px;
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.3;
}
.ops-field-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 9px;
  min-width: 0;
}
.ops-field-label > label {
  flex: 1;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.ops-help {
  display: contents;
}
.ops-help-button {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 1px solid #9a987b66;
  border-radius: 50%;
  background: #ffffff05;
  color: #d0c8ac;
  font: 600 12px/1 system-ui;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  flex: none;
}
.ops-help-button:hover,
.ops-help-button[aria-expanded='true'] {
  border-color: #d3ad5c;
  color: #ffe2a2;
  background: #d3ad5c14;
}
.ops-help-button:focus-visible {
  outline: 2px solid #ffe2a2;
  outline-offset: 3px;
}
.ops-help-text {
  position: fixed;
  inset: auto;
  z-index: 10;
  display: block;
  box-sizing: border-box;
  width: min(360px, calc(100vw - 24px));
  max-height: min(360px, calc(100dvh - 24px));
  overflow: auto;
  overscroll-behavior: contain;
  font: 400 12px/1.65 system-ui;
  white-space: pre-line;
  overflow-wrap: anywhere;
  background: #111718;
  border: 1px solid #9c854d;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0;
  color: #d0d5d1;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: 0 8px 30px #0008;
}
.ops-help-text[hidden] {
  display: none !important;
}
.ops-section-heading {
  flex-wrap: wrap;
}
.ops-section-heading h4 {
  flex: 1;
  min-width: 0;
}
.ops-section-heading small {
  white-space: nowrap;
}
.ops-activity-form {
  gap: 22px;
}
.ops-form-section {
  border-top: 1px solid #ffffff16;
  padding-top: 22px;
}
.ops-activity-form .form-group {
  align-content: start;
}
.ops-schedule-utc {
  color: #e2d4af;
  font-size: 12px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.ops-activity-builds {
  margin: 0;
  border: 1px solid #ffffff1c;
  border-radius: 8px;
  padding: 14px;
  min-width: 0;
}
.ops-activity-builds p {
  font-size: 12px;
  line-height: 1.5;
  margin: 0 0 12px;
}
.ops-build-choices {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}
.ops-dialog .ops-build-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #222729;
  border: 1px solid #43494a;
  border-radius: 6px;
  cursor: pointer;
}
.ops-build-choice input {
  accent-color: #d3ad5c;
  flex: none;
}
.ops-build-choice span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.ops-build-choice strong,
.ops-build-choice small {
  display: block;
}
.ops-build-choice small {
  margin-top: 4px;
  color: #aab4b5;
}
.ops-party {
  margin: 0;
}
.ops-party legend {
  padding: 0 6px;
}
.ops-party-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}
.ops-party-total {
  display: block;
  color: #e2d4af;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: right;
  padding: 35px 0 0;
  max-width: 240px;
  overflow-wrap: anywhere;
}
.ops-party-total.is-invalid {
  color: #efb2a6;
}
.ops-party-roles {
  margin-top: 18px;
}
.ops-party-roles input {
  font-variant-numeric: tabular-nums;
}
@media (max-width: 620px) {
  .ops-heading h3 {
    font-size: 21px;
  }
  .ops-party-settings {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ops-party-total {
    text-align: left;
    padding: 0;
    max-width: none;
    font-size: 13px;
  }
  .ops-help-text {
    font-size: 13px;
  }
  .ops-help-button {
    width: 26px;
    height: 26px;
    min-width: 26px;
  }
}

.gear-variants {
  position: relative;
  z-index: 1;
  border-top: 1px solid #ffffff13;
  margin-top: 20px;
  padding-top: 16px;
}
.gear-variants h4 {
  font-size: 12px;
  color: #ddc38b;
  margin: 0 0 14px;
}
.gear-variant-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 6px;
}
.gear-variant {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.gear-variant .gear-slot-label {
  font-size: 9px;
}
.gear-variant .gear-slot-image {
  width: 58px;
  height: 58px;
  max-width: 100%;
}
.gear-variant .gear-slot-name {
  font-size: 9px;
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.gear-variant:hover .gear-slot-image,
.gear-variant.is-selected .gear-slot-image {
  border-color: #e9c878;
  box-shadow: 0 0 0 2px #d1b26722;
}
.gear-variant:focus-visible {
  outline: 2px solid #ffe1a0;
  outline-offset: 4px;
  border-radius: 5px;
}

/* Shared item artwork and inventory presentation. */
.armory-picture {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  isolation: isolate;
}
.armory-picture > img {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
  image-rendering: auto;
}
.armory-image-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #a8966c;
  visibility: hidden;
}
.armory-picture[data-state='missing'] > .armory-image-fallback {
  visibility: visible;
}
.armory-picture[data-state='missing'] > img {
  visibility: hidden;
}
.armory-slot-glyph {
  width: 34px;
  height: 34px;
  max-width: 75%;
  max-height: 75%;
  color: #a28a5a;
}
.gear-slot-image > .armory-picture {
  position: absolute;
  inset: 0;
}
.gear-slot-image > .armory-slot-glyph {
  align-self: center;
  justify-self: center;
}
.gear-item-image > .armory-picture {
  position: absolute;
  inset: 0;
}
.gear-selector [hidden] {
  display: none !important;
}
.gear-selector .gear-filters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.gear-selector .gear-search-field {
  grid-column: 1/-1;
}
.gear-selector .form-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.gear-selector .form-group > label {
  font-size: 12px;
  color: #b8c2c2;
}
.gear-selector .field {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}
.gear-selector .gear-items {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(132px, auto);
  max-height: 440px;
  align-content: start;
  scrollbar-gutter: stable;
  padding: 3px 8px 5px 3px;
  scroll-padding-top: 3px;
}
.gear-selector .gear-item {
  font-size: 11px;
  line-height: 1.45;
  padding: 10px 7px;
  gap: 8px;
}
.gear-selector .gear-item-image {
  width: 76px;
  height: 76px;
  flex: none;
}
.gear-selector .gear-item > span:last-child {
  min-height: 0;
}
.gear-selector .gear-item-enchantments {
  font-size: 10px;
  color: #9daaa8;
  letter-spacing: 0.08em;
}
.gear-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: #b0bdb9;
  font-size: 12px;
}
.gear-pagination button,
.gear-enchantments button {
  border: 1px solid #4a5350;
  border-radius: 6px;
  padding: 8px 10px;
  background: #202626;
  color: #e5e9e2;
  font: inherit;
  cursor: pointer;
}
.gear-pagination button:disabled {
  opacity: 0.35;
  cursor: default;
}
.gear-pagination .gear-retry-icons {
  font-size: 10px;
  color: #b9c5bd;
  background: transparent;
}
.gear-enchantments {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 15px 0;
  border-bottom: 1px solid #ffffff16;
  font-size: 12px;
  color: #b0bfba;
}
.gear-enchantments > div {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.gear-enchantments button.is-selected {
  border-color: #dcb86e;
  color: #ffe1a3;
  background: #423a2b;
}
.gear-selector .gear-section-head h4 {
  font-family: inherit;
  font-size: 20px;
}
.gear-selector .gear-section-head p {
  font-size: 13px;
}
.gear-selector .gear-no-results {
  align-self: start;
  font-size: 13px;
}
.community-card-heading > .armory-picture {
  width: 68px;
  height: 68px;
  flex: none;
  background: #171a21;
  border-radius: 10px;
}
.community-review-equipment > .armory-picture {
  height: 72px;
  width: 72px;
}
.gear-loadout .gear-board {
  grid-template-rows: repeat(3, 132px) 110px;
}
.armory-sheet {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin: 28px 0 20px;
  min-width: 0;
}
.armory-inventory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(140px, auto)) minmax(140px, auto);
  gap: 16px 10px;
  padding: 24px 16px;
  border: 1px solid #6a5a3c;
  background: radial-gradient(ellipse at 50% 40%, #6150352c, transparent 70%), #161c1e;
  border-radius: 12px;
  min-width: 0;
}
.armory-view-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-align: center;
}
.armory-view-capa {
  grid-area: 1/1;
}
.armory-view-cabeza {
  grid-area: 1/2;
}
.armory-view-arma {
  grid-area: 2/1;
}
.armory-view-pecho {
  grid-area: 2/2;
}
.armory-view-offhand {
  grid-area: 2/3;
}
.armory-view-comida {
  grid-area: 3/1;
}
.armory-view-calzado {
  grid-area: 3/2;
}
.armory-view-pocion {
  grid-area: 3/3;
}
.armory-view-montura {
  grid-area: 4/2;
}
.armory-view-slot-label {
  font-size: 11px;
  line-height: 1.4;
  color: #bac4c0;
}
.armory-view-item {
  position: relative;
  width: 92px;
  height: 92px;
  max-width: 100%;
  border: 1px solid #887149;
  border-radius: 7px;
  background: linear-gradient(140deg, #3a3d35, #1e2527);
  box-shadow: inset 0 0 0 3px #141b1b;
  display: grid;
  place-items: center;
}
.armory-view-item > .armory-picture {
  position: absolute;
  inset: 0;
}
.armory-view-tier {
  position: absolute;
  z-index: 2;
  bottom: 2px;
  left: 4px;
  border-radius: 3px;
  background: #111918e8;
  color: #ffe5a5;
  font-size: 10px;
  padding: 1px 4px;
}
.armory-view-item-name {
  font-size: 10px;
  line-height: 1.5;
  color: #d8dfd8;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.armory-view-slot.is-empty .armory-view-item {
  border-color: #535b51;
  background: #1c2423;
  box-shadow: none;
}
.armory-view-slot.is-empty .armory-view-item-name {
  color: #96a39b;
}
.armory-skills-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid #424d4a;
  border-radius: 12px;
  background: #171e20;
}
.armory-skills-panel h3,
.armory-view-variants h3,
.armory-view-instructions h3 {
  font: 600 17px/1.4 var(--font-body, system-ui);
  margin: 0 0 20px;
  letter-spacing: 0;
  color: #e3e6de;
}
.armory-skill-row {
  padding: 18px 0;
  border-top: 1px solid #46524c;
}
.armory-skill-piece {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.armory-skill-piece > .armory-picture {
  height: 54px;
  width: 54px;
  flex: none;
}
.armory-skill-piece > div {
  min-width: 0;
}
.armory-skill-piece span {
  font-size: 11px;
  color: #a7b6af;
}
.armory-skill-piece h4 {
  font: 500 13px/1.5 var(--font-body, system-ui);
  margin: 4px 0;
  color: #e4e9e1;
  overflow-wrap: anywhere;
}
.armory-selected-skills {
  display: flex;
  align-items: start;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0 0 68px;
}
.armory-selected-skill {
  display: grid;
  justify-items: center;
  gap: 5px;
  width: 46px;
  color: #d9c38b;
  font-size: 10px;
  line-height: 1.4;
}
.armory-selected-skill img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: 1px solid #8e8057;
  border-radius: 50%;
  background: #10191b;
  box-sizing: border-box;
}
.armory-selected-skill b {
  font-weight: 500;
}
.armory-selected-skills p,
.armory-skills-panel > p {
  font-size: 12px;
  line-height: 1.7;
  color: #96a59d;
  margin: 0;
}
.armory-view-variants {
  grid-column: 1/-1;
  padding: 22px;
  border: 1px solid #424d4a;
  border-radius: 12px;
  background: #171e20;
  min-width: 0;
}
.armory-view-variants > div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 14px;
}
.armory-variant-item {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  text-align: center;
  min-width: 0;
}
.armory-variant-item > .armory-picture {
  height: 72px;
  width: 72px;
}
.armory-variant-item > span {
  font-size: 11px;
  line-height: 1.5;
  color: #bbc7bf;
  overflow-wrap: anywhere;
}
.armory-variant-item > b {
  font-size: 10px;
  color: #d4bd83;
  font-weight: 500;
}
.armory-view-instructions {
  padding: 22px;
  border-left: 2px solid #b49a61;
  background: #1a2122;
  margin-top: 24px;
}
.armory-view-instructions h3 {
  margin-bottom: 12px;
}
.armory-view-instructions p {
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #c7d0c9;
  margin: 0;
}
@media (max-width: 900px) {
  .armory-sheet {
    grid-template-columns: minmax(270px, 340px) minmax(0, 1fr);
    gap: 18px;
  }
  .armory-skills-panel {
    padding: 16px;
  }
  .armory-selected-skills {
    padding-left: 0;
  }
  .gear-selector .gear-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .armory-view-item {
    width: 82px;
    height: 82px;
  }
}
@media (max-width: 700px) {
  .armory-sheet {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .armory-inventory {
    max-width: 400px;
    width: 100%;
    justify-self: center;
    box-sizing: border-box;
    padding: 20px 12px;
    grid-template-rows: repeat(3, minmax(140px, auto)) minmax(140px, auto);
  }
  .armory-view-item {
    width: 88px;
    height: 88px;
  }
  .armory-view-item-name {
    font-size: 11px;
  }
  .armory-skills-panel {
    padding: 20px;
  }
  .armory-selected-skills {
    padding-left: 68px;
  }
  .gear-selector .gear-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 435px;
  }
  .gear-selector .gear-item {
    font-size: 11px;
    padding: 9px 6px;
  }
  .gear-selector .gear-item-image {
    width: 78px;
    height: 78px;
  }
  .gear-selector .gear-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gear-selector .gear-search-field {
    grid-column: 1/-1;
  }
  .armory-view-instructions {
    padding: 18px;
  }
  .armory-view-instructions p {
    font-size: 13px;
  }
}
@media (max-width: 390px) {
  .armory-inventory {
    gap: 16px 7px;
  }
  .armory-view-item {
    width: 76px;
    height: 76px;
  }
  .armory-view-item-name {
    font-size: 10px;
  }
  .armory-selected-skills {
    padding-left: 0;
  }
}

/* Compact public loadout: selected abilities stay with their equipment. */
.armory-sheet-compact {
  grid-template-columns: minmax(320px, 500px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.armory-overview {
  padding: 22px;
  border: 1px solid #685b41;
  background: radial-gradient(ellipse at center, #6d573527, transparent 70%), #171c1e;
  border-radius: 12px;
  min-width: 0;
}
.armory-overview h3 {
  font: 600 19px/1.4 var(--font-body, system-ui);
  color: #f1e9d8;
  margin: 0 0 18px;
  letter-spacing: 0;
}
.armory-sheet-compact .armory-inventory {
  padding: 0;
  border: 0;
  background: none;
  grid-template-rows: none;
  gap: 22px 14px;
  max-width: 100%;
  width: 100%;
}
.armory-sheet-compact .armory-view-slot {
  grid-area: auto;
  gap: 8px;
}
.armory-sheet-compact .armory-view-item {
  width: 104px;
  height: 104px;
  max-width: 100%;
  box-sizing: border-box;
  border-color: #716247;
}
.armory-sheet-compact .armory-view-slot-label {
  font-size: 12px;
  color: #d5dcdf;
}
.armory-sheet-compact .armory-view-item-name {
  font-size: 12px;
  line-height: 1.55;
  color: #d9e0e5;
}
.armory-inline-skills {
  display: flex;
  justify-content: center;
  gap: 3px;
  flex-wrap: wrap;
  width: 100%;
}
.armory-inline-skills .armory-selected-skill {
  width: 28px;
  gap: 3px;
  font-size: 10px;
}
.armory-inline-skills .armory-selected-skill img {
  height: 28px;
  width: 28px;
  border-color: #ba9a56;
}
.armory-inline-skills .armory-selected-skill b {
  font-weight: 600;
  color: #e4c988;
}
.armory-build-notes {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.armory-build-notes .armory-view-variants {
  grid-column: auto;
  padding: 22px;
}
.armory-build-notes .armory-view-instructions {
  margin: 0;
  padding: 22px;
  border-radius: 0 10px 10px 0;
}
.armory-build-notes .armory-view-variants > div {
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
}
.armory-build-notes .armory-variant-item > .armory-picture {
  height: 80px;
  width: 80px;
}
.armory-build-notes .armory-variant-item > span {
  font-size: 12px;
  color: #d5dde3;
}
.armory-no-skills {
  font-size: 13px;
  line-height: 1.7;
  color: #bdc6ce;
  margin: 16px 0 0;
}
@media (max-width: 850px) {
  .armory-sheet-compact {
    grid-template-columns: 1fr;
  }
  .armory-overview {
    width: 100%;
    max-width: 500px;
    justify-self: center;
    box-sizing: border-box;
  }
  .armory-build-notes {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .armory-overview {
    padding: 16px 12px;
  }
  .armory-sheet-compact .armory-inventory {
    gap: 18px 8px;
  }
  .armory-sheet-compact .armory-view-item {
    width: 80px;
    height: 80px;
  }
  .armory-sheet-compact .armory-view-item-name {
    font-size: 11px;
  }
  .armory-inline-skills {
    gap: 2px;
  }
  .armory-inline-skills .armory-selected-skill {
    width: 24px;
  }
  .armory-inline-skills .armory-selected-skill img {
    width: 24px;
    height: 24px;
  }
  .armory-build-notes .armory-view-variants,
  .armory-build-notes .armory-view-instructions {
    padding: 18px;
  }
}

.armory-sheet-compact .armory-view-item {
  height: auto;
  aspect-ratio: 1;
}
.armory-sheet-compact .armory-view-slot {
  position: relative;
}
.armory-sheet-compact .armory-view-item-name {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  max-width: 220px;
  z-index: 5;
  padding: 9px 12px;
  border: 1px solid #96815b;
  border-radius: 7px;
  background: #101718;
  color: #f2e7cc;
  box-shadow: 0 6px 18px #0006;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s;
  box-sizing: border-box;
}
.armory-sheet-compact .armory-view-slot:hover .armory-view-item-name,
.armory-sheet-compact .armory-view-slot:focus-within .armory-view-item-name {
  opacity: 1;
}
.armory-view-item:focus-visible {
  outline: 2px solid #f0d18c;
  outline-offset: 4px;
}
.armory-sheet-compact .armory-view-slot:nth-child(3n + 1) .armory-view-item-name {
  left: 0;
  transform: none;
}
.armory-sheet-compact .armory-view-slot:nth-child(3n) .armory-view-item-name {
  left: auto;
  right: 0;
  transform: none;
}

.ops-participant-list {
  display: grid;
  gap: 10px;
}
.ops-participant-list article {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid #455265;
  border-radius: 8px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.ops-participant-list a {
  color: #efd494;
}
.ops-participant-list code {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.ops-template-card > .button {
  margin: 5px 6px 5px 0;
}
@media (max-width: 600px) {
  .ops-participant-list article {
    grid-template-columns: 1fr;
  }
}

/* Brand remains inside equipment captures. */
.armory-brand {
  height: 36px;
  min-width: 0;
  border: 1px solid #655936;
  border-radius: 6px;
  background: linear-gradient(110deg, #a7802620, transparent 38%, #9b76291a), #111719;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  overflow: hidden;
  color: #cbd1d7;
}
.armory-brand > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}
.armory-brand strong {
  font: 800 14px/18px var(--font-body, system-ui);
  letter-spacing: 0.025em;
  color: #e4bf68;
}
.armory-brand > div > span {
  font: 700 7px/8px var(--font-body, system-ui);
  letter-spacing: 0.1em;
  border-left: 1px solid #5f573f;
  padding-left: 10px;
}
.armory-brand small {
  font: 400 8px/10px var(--font-body, system-ui);
  color: #a6b3ba;
  letter-spacing: 0.02em;
}
.armory-branded-sheet {
  min-width: 0;
}
.armory-branded-sheet > .armory-brand {
  height: 52px;
  margin-bottom: 16px;
}
.armory-branded-sheet > .armory-brand strong {
  font-size: 19px;
  line-height: 23px;
}
.armory-branded-sheet > .armory-brand > div > span {
  font-size: 9px;
  line-height: 10px;
}
.armory-branded-sheet > .armory-brand small {
  font-size: 9px;
  line-height: 12px;
}

.armory-sheet.armory-sheet-single {
  grid-template-columns: minmax(0, 500px);
  justify-content: center;
}
.armory-sheet-single .armory-overview {
  width: 100%;
  box-sizing: border-box;
}
.armory-overview > .armory-brand {
  width: 100%;
  height: 44px;
  margin: 0 0 20px;
}

/* Optional activity duties use the same card treatment as the main editor. */
.ops-special-roles {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--border, #3a4349);
  border-radius: 12px;
  background: var(--surface, #151c20);
}
.ops-special-roles > legend,
.ops-special-role > legend {
  padding: 0 8px;
  color: var(--gold, #e5c77f);
  font-weight: 600;
}
.ops-special-roles > p {
  margin: 0 0 16px;
  color: var(--muted, #b5c0c9);
  font-size: 13px;
  line-height: 1.6;
}
.ops-special-role {
  min-width: 0;
  margin: 0;
  padding: 14px;
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid var(--border, #3a4349);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.12);
}
.ops-special-role label {
  display: grid;
  gap: 8px;
  font-size: 13px;
}
.ops-special-role .form-group {
  margin: 0;
}
.ops-special-role select[multiple] {
  width: 100%;
  min-height: 130px;
  height: auto;
}
.ops-special-role small {
  color: var(--muted, #b5c0c9);
  font-size: 12px;
}

/* Task-oriented workspaces: one list at a time, category management on its own tab. */
.ops-task-tabs,.ops-wizard-nav,.ops-step-actions{display:flex;gap:9px;flex-wrap:wrap;margin:18px 0}
.ops-task-tabs button[aria-pressed="true"],.ops-wizard-nav button[aria-pressed="true"]{border-color:#d4ad54;color:#f0d999}
.ops-layout.ops-focused{grid-template-columns:minmax(0,1fr)}
.ops-focused>[hidden],.ops-toolbar[hidden],.ops-wizard-step[hidden],.ops-editor-actions[hidden],.ops-pager[hidden]{display:none!important}
.ops-focused .ops-category-block{max-width:none}
.ops-focused .ops-build-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}
.ops-focused .ops-category{padding:18px}
.ops-limits{font-size:12px;color:var(--muted,#a8adb0);margin:12px 0}
.ops-limits summary{cursor:pointer}
.ops-filter{display:grid;gap:5px;min-width:140px;font-size:12px;flex:1}
.ops-toolbar{align-items:end}
.ops-toolbar form{min-width:min(100%,250px)}
.ops-wizard-step{min-width:0;padding:12px 0}
.ops-wizard-nav button.ops-step-pending{border-color:#b75a5a;color:#ffc1c1}
.ops-wizard-nav button.ops-step-complete{border-color:#398568;color:#a6e5c6}
.ops-wizard-nav{position:sticky;top:0;z-index:2;background:var(--surface,#101215);padding:10px 0;margin:0}
.ops-step-actions{justify-content:space-between;border-top:1px solid #ffffff17;padding-top:16px}
.ops-composition-grid{grid-template-columns:1fr}
@media(max-width:700px){.ops-task-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.ops-task-tabs button,.ops-wizard-nav button{font-size:11px;white-space:normal;min-height:44px}.ops-wizard-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.ops-toolbar form{flex-basis:100%;max-width:none}.ops-filter{min-width:0}.ops-activity-card{display:grid;gap:14px}.ops-activity-card .ops-row-actions{justify-content:flex-start}}

/* 2.20: short summaries retain the full activity behind a native disclosure. */
details.ops-activity-card { display: block; padding: .8rem 1rem; }
details.ops-activity-card > summary { cursor: pointer; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .35rem 1rem; }
details.ops-activity-card > summary h4 { margin: 0; grid-column: 1; }
details.ops-activity-card > summary > span:last-child { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
details.ops-activity-card[open] > summary { margin-bottom: .7rem; }
.ops-participant-list details { width: 100%; }
@media(max-width:640px) { details.ops-activity-card > summary { grid-template-columns: 1fr; } details.ops-activity-card > summary > span:last-child { grid-column: 1; grid-row: auto; } }
details.ops-activity-card > summary { position: relative; padding-left: 1rem; }
details.ops-activity-card > summary::before { content: ''; position: absolute; left: 0; top: .5rem; width: .4rem; height: .4rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
details.ops-activity-card[open] > summary::before { transform: rotate(45deg); }
