.ob-page {
  --ob-page-gutter: clamp(0.75rem, 2.2vw, 2rem);
  --ob-useful-gold: 183 146 76;
  --ob-useful-green: 71 140 106;
  flex: 1 0 auto;
  min-inline-size: 0;
  inline-size: 100%;
  width: 100%;
  margin: 0;
  padding: 1rem var(--ob-page-gutter) clamp(3rem, 7vw, 5.5rem);
  color: hsl(var(--foreground));
}

html.light .ob-page {
  --ob-useful-gold: 125 85 33;
}

.ob-page button,
.ob-page input,
.ob-page select {
  font: inherit;
}

.ob-page-head {
  display: block;
  min-block-size: 0;
  margin: 0;
  padding: clamp(1.15rem, 2.5vw, 1.8rem);
}

.ob-page:not(.ob-workspace) .ob-page-head {
  margin-block-end: 0;
}

.ob-page:not(.ob-workspace) .ob-page-head + .ob-card-grid {
  margin-block-start: clamp(1.4rem, 3vw, 2.25rem);
}

.ob-page-head > .aw-index-hero-copy {
  position: relative;
  z-index: 1;
}

.ob-page-head > .aw-index-hero-copy {
  z-index: 2;
  display: block;
  min-inline-size: 0;
}

.ob-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.45rem;
  color: hsl(var(--primary));
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ob-eyebrow::before {
  content: '';
  flex: 0 0 1.6rem;
  block-size: 2px;
  border-radius: 999px;
  background: currentColor;
}

.ob-page h1,
.ob-page h2,
.ob-page h3,
.ob-page p {
  margin-top: 0;
}

.ob-page h1 {
  max-inline-size: 20ch;
  margin-bottom: 0;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 780;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.ob-page-head .aw-index-hero-copy > p:last-of-type {
  max-inline-size: 72ch;
  margin: 0.65rem 0 0;
  color: hsl(var(--muted-foreground));
  font-size: clamp(0.89rem, 1.2vw, 0.98rem);
  line-height: 1.62;
  text-wrap: pretty;
}

.ob-workspace .ob-page-head {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.ob-breadcrumbs {
  display: block;
  min-block-size: 1.75rem;
  margin-bottom: 0.55rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.78rem;
  font-weight: 600;
}

.ob-breadcrumbs > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ob-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.ob-breadcrumbs a:hover {
  color: hsl(var(--foreground));
}

.ob-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 16px;
}

.ob-character-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 340px));
}

.ob-team-grid {
  grid-template-columns: minmax(0, 1020px);
}

.ob-character-card,
.ob-team-card {
  position: relative;
  display: grid;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.78);
  border-radius: var(--radius);
  background: hsl(var(--card) / 0.8);
  color: hsl(var(--card-foreground));
  box-shadow: inset 0 1px 0 hsl(var(--foreground) / 0.04), 0 12px 28px hsl(220 20% 2% / 0.14);
  text-decoration: none;
  isolation: isolate;
}

.ob-character-card {
  min-height: 0;
  aspect-ratio: 340 / 568;
}

.ob-character-card::after,
.ob-team-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 25%, hsl(var(--card) / 0.4) 55%, hsl(var(--card)) 92%);
}

.ob-character-card:not([aria-disabled='true']):hover,
.ob-team-card:hover {
  border-color: hsl(var(--primary) / 0.8);
  transform: translateY(-2px);
}

.ob-character-card,
.ob-team-card {
  transition: transform var(--dur-med) var(--ease), border-color var(--dur-fast) var(--ease);
}

.ob-character-card[aria-disabled='true'] {
  cursor: not-allowed;
  opacity: 0.66;
}

.ob-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.ob-card-copy {
  align-self: end;
  padding: 24px;
}

.ob-card-copy h2 {
  margin-bottom: 6px;
  font-size: 1.45rem;
}

.ob-card-copy p {
  margin-bottom: 0;
  color: hsl(var(--muted-foreground));
}

.ob-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid hsl(var(--primary) / 0.45);
  border-radius: 999px;
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ob-status--muted {
  border-color: hsl(var(--border));
  background: hsl(var(--secondary) / 0.55);
  color: hsl(var(--muted-foreground));
}

.ob-team-card {
  display: grid;
  min-height: 0;
  grid-template-rows: auto auto;
}

.ob-team-card::after {
  display: none;
}

.ob-team-portraits {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  aspect-ratio: 1020 / 568;
  overflow: hidden;
}

.ob-team-portraits img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ob-team-portraits img + img {
  border-inline-start: 1px solid hsl(var(--border) / 0.78);
}

.ob-team-card .ob-card-copy {
  position: relative;
  z-index: 1;
  border-top: 1px solid hsl(var(--border) / 0.55);
  background: hsl(var(--card));
}

.ob-workspace {
  display: block;
}

.ob-workspace > * {
  min-width: 0;
}

.ob-workspace > :is(.ob-team-strip, .ob-section) {
  margin-block-start: clamp(16px, 2vw, 24px);
}

.ob-team-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  min-height: 132px;
  border: 1px solid hsl(var(--border) / 0.75);
  border-radius: var(--radius);
  background: hsl(var(--card) / 0.8);
  box-shadow: inset 0 1px 0 hsl(var(--foreground) / 0.04);
}

.ob-team-strip article {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  column-gap: clamp(12px, 1.2vw, 18px);
  min-width: 0;
  padding-inline-end: 14px;
  border-inline-end: 1px solid hsl(var(--border) / 0.55);
}

.ob-team-strip article:last-child {
  border-inline-end: 0;
}

.ob-team-strip img {
  width: 92px;
  height: 130px;
  object-fit: cover;
}

.ob-team-strip h2 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.ob-team-strip p {
  margin-bottom: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.82rem;
}

.ob-section {
  padding-top: 0;
}

.ob-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 0.9rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid hsl(var(--border) / 0.72);
}

.ob-section-head h2 {
  margin-bottom: 4px;
  font-size: 1.25rem;
}

.ob-section-head p {
  margin-bottom: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}

.ob-section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.ob-scan-action {
  flex: 0 0 auto;
}

.ob-workspace-transfer {
  border: 1px solid hsl(var(--border) / 0.75);
  border-radius: var(--radius);
  background: hsl(var(--card) / 0.8);
  padding: clamp(15px, 1.6vw, 20px);
  box-shadow: inset 0 1px 0 hsl(var(--foreground) / 0.04);
}

.ob-workspace-transfer .ob-section-head {
  align-items: center;
  margin: 0;
  border: 0;
  padding: 0;
}

.ob-workspace-transfer .ob-section-head > div:first-child {
  max-width: 72rem;
}

.ob-workspace-transfer__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.ob-assumption-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid hsl(var(--border) / 0.68);
  border-radius: var(--radius);
  overflow: hidden;
  background: hsl(var(--card) / 0.8);
  box-shadow: inset 0 1px 0 hsl(var(--foreground) / 0.04);
}

.ob-assumption-grid > div {
  padding: 14px;
  border-inline-end: 1px solid hsl(var(--border) / 0.55);
}

.ob-assumption-grid > div:last-child {
  border-inline-end: 0;
}

.ob-assumption-grid span,
.ob-metric span {
  display: block;
  margin-bottom: 4px;
  color: hsl(var(--muted-foreground));
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ob-config-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid hsl(var(--border) / 0.72);
  border-radius: var(--radius);
  overflow: hidden;
  background: hsl(var(--card) / 0.8);
  box-shadow: inset 0 1px 0 hsl(var(--foreground) / 0.04);
}

.ob-character-config {
  min-width: 0;
  padding: 18px;
  border-inline-end: 1px solid hsl(var(--border) / 0.55);
}

.ob-character-config:last-child {
  border-inline-end: 0;
}

.ob-character-config__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ob-character-config__head img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}

.ob-character-config__head h3 {
  margin-bottom: 2px;
}

.ob-character-config__head p {
  margin-bottom: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.78rem;
}

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

.ob-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

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

.ob-field label,
.ob-field > span {
  color: hsl(var(--muted-foreground));
  font-size: 0.78rem;
  font-weight: 700;
}

.ob-field select,
.ob-field input,
.ob-modal select,
.ob-modal input {
  width: 100%;
  min-height: 54px;
  border: 1px solid hsl(var(--input));
  border-radius: 6px;
  background: hsl(var(--background) / 0.7);
  color: hsl(var(--foreground));
  padding: 8px 10px;
}

.ob-native-select--visual {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}

.ob-visual-select {
  position: relative;
  min-width: 0;
}

.ob-visual-trigger {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  border: 1px solid hsl(var(--input));
  border-radius: 6px;
  background: hsl(var(--background) / 0.7);
  color: hsl(var(--foreground));
  padding: 5px 9px;
  text-align: start;
  cursor: pointer;
}

.ob-visual-trigger:hover,
.ob-visual-trigger[aria-expanded='true'] {
  border-color: hsl(var(--primary) / 0.72);
}

.ob-visual-trigger:focus-visible,
.ob-visual-option:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.ob-visual-thumb {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.72);
  border-radius: 5px;
  background: hsl(var(--muted) / 0.28);
}

.ob-visual-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ob-visual-thumb--empty::after {
  content: '—';
  color: hsl(var(--muted-foreground));
}

.ob-visual-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ob-visual-copy strong,
.ob-visual-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ob-visual-copy strong {
  font-size: 0.78rem;
}

.ob-visual-copy small {
  color: hsl(var(--muted-foreground));
  font-size: 0.68rem;
}

.ob-visual-chevron {
  width: 8px;
  height: 8px;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  color: hsl(var(--muted-foreground));
  transform: translateY(-2px) rotate(45deg);
}

.ob-visual-trigger[aria-expanded='true'] .ob-visual-chevron {
  transform: translateY(2px) rotate(225deg);
}

.ob-visual-menu {
  position: absolute;
  z-index: 40;
  inset-inline: 0;
  top: calc(100% + 5px);
  display: grid;
  gap: 4px;
  max-height: min(330px, 48vh);
  overflow-y: auto;
  border: 1px solid hsl(var(--border));
  border-radius: 7px;
  background: hsl(var(--popover));
  box-shadow: 0 18px 44px rgb(0 0 0 / 0.34);
  padding: 5px;
}

.ob-visual-select.is-upward .ob-visual-menu {
  top: auto;
  bottom: calc(100% + 5px);
}

.ob-visual-menu[hidden] {
  display: none;
}

.ob-visual-option {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: hsl(var(--background) / 0.48);
  color: hsl(var(--foreground));
  padding: 4px 7px;
  text-align: start;
  cursor: pointer;
}

.ob-visual-option:hover,
.ob-visual-option[aria-selected='true'] {
  border-color: hsl(var(--primary) / 0.58);
  background: hsl(var(--primary) / 0.1);
}

.ob-field select:focus-visible,
.ob-field input:focus-visible,
.ob-modal select:focus-visible,
.ob-modal input:focus-visible,
.ob-button:focus-visible,
.ob-echo-row:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.ob-talents {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.ob-talents label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.67rem;
  text-align: center;
}

.ob-talents select {
  min-height: 38px;
  padding-inline: 4px;
}

.ob-stat-editor {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ob-stat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.42fr);
  align-items: end;
  gap: 8px;
  min-width: 0;
}

.ob-readonly-value {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 54px;
  border: 1px solid hsl(var(--input));
  border-radius: 6px;
  background: hsl(var(--muted) / 0.22);
  color: hsl(var(--foreground));
  padding: 8px 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ob-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid hsl(var(--border));
  border-radius: 6px;
  background: hsl(var(--secondary) / 0.72);
  color: hsl(var(--secondary-foreground));
  padding: 9px 14px;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
}

.ob-button:is(:hover, :focus-visible, :active):not(:disabled) {
  border-color: hsl(var(--primary) / 0.75);
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.ob-button--primary {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.ob-button--primary:is(:hover, :focus-visible, :active):not(:disabled) {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.ob-button--quiet {
  background: transparent;
}

.ob-button--danger {
  color: hsl(var(--destructive));
}

.ob-button--danger:is(:hover, :focus-visible, :active):not(:disabled) {
  border-color: hsl(var(--destructive) / 0.72);
  background: hsl(var(--destructive) / 0.12);
  color: hsl(var(--destructive));
}

.ob-button:disabled {
  cursor: not-allowed;
  border-color: hsl(var(--border) / 0.58);
  background: hsl(var(--muted) / 0.2);
  color: hsl(var(--muted-foreground));
  box-shadow: none;
  opacity: 1;
  transform: none;
}

.ob-button--primary:disabled {
  border-color: hsl(var(--primary) / 0.38);
  background: hsl(var(--primary) / 0.14);
  color: hsl(var(--muted-foreground));
}

.ob-button[data-ob-calculate] {
  border-color: hsl(var(--destructive));
  background: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
  box-shadow:
    inset 0 1px 0 hsl(var(--destructive-foreground) / 0.18),
    0 8px 18px hsl(var(--destructive) / 0.2);
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.ob-button[data-ob-calculate]:is(:hover, :focus-visible):not(:disabled) {
  border-color: hsl(var(--destructive));
  background: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
  box-shadow:
    inset 0 1px 0 hsl(var(--destructive-foreground) / 0.22),
    0 0 0 3px hsl(var(--destructive) / 0.16),
    0 10px 22px hsl(var(--destructive) / 0.28);
  transform: translateY(-1px);
}

.ob-button[data-ob-calculate]:focus-visible {
  outline-color: hsl(var(--destructive));
}

.ob-button[data-ob-calculate]:active:not(:disabled) {
  border-color: hsl(var(--destructive));
  background: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
  box-shadow: inset 0 1px 2px hsl(0 0% 0% / 0.2);
  transform: translateY(0);
}

.ob-button[data-ob-calculate]:disabled {
  border-color: hsl(var(--destructive) / 0.42);
  background: hsl(var(--destructive) / 0.16);
  color: hsl(var(--muted-foreground));
  box-shadow: none;
}

.ob-character-config__actions,
.ob-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ob-criteria-groups {
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.72);
  border-radius: var(--radius);
  background: hsl(var(--card) / 0.8);
  box-shadow: inset 0 1px 0 hsl(var(--foreground) / 0.04);
}

.ob-choice-group {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 16px;
}

.ob-choice-group + .ob-choice-group {
  border-top: 1px solid hsl(var(--border) / 0.58);
}

.ob-choice-group > legend {
  float: left;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin: 0 0 11px;
  padding: 0;
  color: hsl(var(--foreground));
  font-size: 0.88rem;
  font-weight: 800;
}

.ob-choice-group > legend + .ob-choice-grid {
  clear: both;
}

.ob-choice-group > legend small {
  border: 1px solid hsl(var(--border) / 0.75);
  border-radius: 999px;
  padding: 2px 7px;
  color: hsl(var(--muted-foreground));
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ob-choice-grid {
  display: grid;
  gap: 8px;
}

.ob-choice-grid--objectives {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ob-choice-grid--energy {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ob-choice-card {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 58px;
  border: 1px solid hsl(var(--border) / 0.82);
  border-radius: 8px;
  background: hsl(var(--background) / 0.34);
  padding: 10px 11px;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.ob-choice-card:hover {
  border-color: hsl(var(--foreground) / 0.3);
  background: hsl(var(--muted) / 0.24);
  transform: translateY(-1px);
}

.ob-choice-card:has(input:checked) {
  border-color: hsl(var(--primary) / 0.9);
  background: hsl(var(--primary) / 0.1);
  box-shadow: inset 0 0 0 1px hsl(var(--primary) / 0.28), 0 7px 18px hsl(var(--primary) / 0.08);
}

.ob-choice-card:has(input:focus-visible) {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.ob-choice-card:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}

.ob-choice-card > input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.ob-choice-card__marker {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid hsl(var(--border));
  border-radius: 50%;
  background: hsl(var(--background));
}

.ob-choice-card__marker::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: hsl(var(--primary));
  transform: scale(0);
  transition: transform 140ms ease;
}

.ob-choice-card:has(input:checked) .ob-choice-card__marker {
  border-color: hsl(var(--primary));
}

.ob-choice-card:has(input:checked) .ob-choice-card__marker::after {
  transform: scale(1);
}

.ob-choice-card__title {
  min-width: 0;
  color: hsl(var(--foreground));
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.32;
  text-wrap: balance;
}

.ob-choice-card--energy {
  grid-template-columns: 18px minmax(0, 1fr);
  align-content: center;
}

.ob-choice-card--energy.is-recommended {
  border-color: hsl(42 76% 52% / 0.7);
  background: hsl(42 76% 52% / 0.075);
}

.ob-choice-card--energy.is-recommended:has(input:checked) {
  border-color: hsl(var(--primary) / 0.92);
  background: linear-gradient(135deg, hsl(var(--primary) / 0.11), hsl(42 76% 52% / 0.09));
}

.ob-choice-card--energy.is-ok {
  border-color: hsl(42 64% 52% / 0.38);
  background: hsl(42 64% 52% / 0.035);
}

.ob-choice-card--energy.is-ok:has(input:checked) {
  border-color: hsl(var(--primary) / 0.92);
  background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(42 64% 52% / 0.04));
}

.ob-choice-card__badge {
  grid-column: 2;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  background: hsl(42 76% 52% / 0.16);
  padding: 2px 6px;
  color: hsl(42 82% 66%);
  font-size: 0.6rem;
  font-weight: 850;
  line-height: 1.25;
  white-space: nowrap;
}

.ob-choice-card__badge--ok {
  background: hsl(42 64% 52% / 0.09);
  color: hsl(42 62% 66%);
}

html.light .ob-choice-card__badge {
  color: hsl(36 72% 34%);
}

html.light .ob-choice-card__badge--ok {
  color: hsl(36 58% 40%);
}

.ob-character-config__actions {
  margin-top: 14px;
}

.ob-inventory {
  display: grid;
  gap: 16px;
}

.ob-inventory-character {
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) 1fr;
  border: 1px solid hsl(var(--border) / 0.72);
  border-radius: var(--radius);
  overflow: hidden;
  background: hsl(var(--card) / 0.8);
  box-shadow: inset 0 1px 0 hsl(var(--foreground) / 0.04);
}

.ob-inventory-character__label {
  padding: 18px;
  border-inline-end: 1px solid hsl(var(--border) / 0.55);
}

.ob-inventory-character__identity {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.ob-inventory-character__identity > img {
  width: 82px;
  height: 116px;
  border: 1px solid hsl(var(--border) / 0.72);
  border-radius: var(--radius-sm);
  background: hsl(var(--background) / 0.36);
  object-fit: cover;
}

.ob-inventory-character__identity > div {
  min-width: 0;
}

.ob-inventory-character__identity h3 {
  margin-bottom: 4px;
}

.ob-inventory-character__identity p {
  margin-bottom: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.8rem;
}

.ob-inventory-character__label > .ob-button {
  margin-top: 12px;
}

.ob-inventory-character__label .ob-inventory-message {
  margin-top: 12px;
  margin-bottom: 0;
  border-inline-start: 2px solid hsl(var(--primary));
  background: hsl(var(--primary) / 0.08);
  color: hsl(var(--foreground));
  padding: 8px 10px;
  line-height: 1.5;
}

.ob-echo-groups {
  min-width: 0;
  padding: 16px;
}

.ob-echo-group + .ob-echo-group {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid hsl(var(--border) / 0.48);
}

.ob-echo-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.ob-echo-group__head h4 {
  margin: 0;
  font-size: 0.88rem;
}

.ob-echo-list {
  display: grid;
  gap: 6px;
}

.ob-inventory-note,
.ob-inline-note {
  margin: 8px 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.78rem;
  line-height: 1.55;
}

.ob-echo-row {
  display: grid;
  grid-template-columns: 28px 44px minmax(180px, 0.78fr) minmax(320px, 1.42fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 64px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: hsl(var(--background) / 0.42);
  color: inherit;
  padding: 8px;
  text-align: start;
}

button.ob-echo-row {
  width: 100%;
  cursor: pointer;
}

button.ob-echo-row:hover {
  border-color: hsl(var(--primary) / 0.5);
}

.ob-echo-row img {
  width: 42px;
  height: 42px;
  border-radius: 5px;
  object-fit: cover;
}

.ob-echo-row__slot,
.ob-echo-row__identity > strong,
.ob-echo-row__identity > small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ob-echo-row__slot {
  font-variant-numeric: tabular-nums;
}

.ob-echo-row__identity {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.ob-echo-row__identity > small {
  color: hsl(var(--muted-foreground));
}

.ob-echo-row__stats {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.ob-owned-echo-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 4px;
  background: hsl(var(--background) / 0.38);
  padding: 3px 5px;
  color: hsl(var(--muted-foreground));
  font-size: 0.62rem;
  line-height: 1.25;
  white-space: nowrap;
}

.ob-owned-echo-stat em {
  color: hsl(var(--muted-foreground) / 0.82);
  font-size: 0.56rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

html[dir='rtl'] .ob-owned-echo-stat em {
  letter-spacing: 0;
}

.ob-owned-echo-stat strong {
  color: hsl(var(--foreground));
  font-variant-numeric: tabular-nums;
}

.ob-owned-echo-stat.ob-owned-echo-stat--useful {
  border-color: rgb(var(--ob-useful-gold) / 0.54);
  background: linear-gradient(135deg, rgb(var(--ob-useful-gold) / 0.11), rgb(var(--ob-useful-green) / 0.07));
}

.ob-echo-row__action {
  color: hsl(var(--foreground));
  font-weight: 700;
}

.ob-echo-row--empty {
  grid-template-columns: minmax(56px, max-content) minmax(0, 1fr) auto;
  border-style: dashed;
  border-color: hsl(var(--border) / 0.6);
  color: hsl(var(--muted-foreground));
}

.ob-echo-row--empty strong {
  overflow: visible;
  text-overflow: clip;
}

.ob-calculate-bar {
  position: sticky;
  z-index: 6;
  bottom: 10px;
  margin-block-start: clamp(12px, 1.5vw, 16px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  background: hsl(var(--card) / 0.96);
  box-shadow: 0 18px 44px rgb(0 0 0 / 0.28);
  padding: 12px 14px;
  backdrop-filter: blur(12px);
}

.ob-result-selection {
  flex: 0 1 auto;
  max-width: min(100%, 52rem);
  margin: 0;
  border: 1px solid hsl(var(--border) / 0.72);
  border-radius: 999px;
  background: hsl(var(--muted) / 0.22);
  padding: 7px 10px;
  color: hsl(var(--foreground));
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: end;
}

.ob-calculate-bar p {
  margin-bottom: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.84rem;
}

.ob-calculate-copy {
  min-width: 0;
}

.ob-calculate-status {
  display: flex;
  align-items: baseline;
  gap: 6px 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.ob-calculate-status > p {
  margin-top: 0;
}

.ob-calculation-elapsed {
  border-inline-start: 1px solid hsl(var(--border) / 0.78);
  padding-inline-start: 12px;
  font-size: 0.76rem !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ob-calculation-elapsed bdi {
  color: hsl(var(--foreground));
  font-weight: 750;
}

.ob-calculation-wait-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  max-width: 68rem;
  margin-top: 6px;
  font-size: 0.76rem !important;
  line-height: 1.5;
}

.ob-calculation-wait-note::before {
  content: 'i';
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border: 1px solid hsl(var(--primary) / 0.55);
  border-radius: 50%;
  color: hsl(var(--primary));
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.ob-calculate-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.ob-progress {
  width: 100%;
  height: 5px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: hsl(var(--muted) / 0.6);
}

.ob-progress span {
  display: block;
  width: var(--ob-progress, 0%);
  height: 100%;
  background: hsl(var(--primary));
  transition: width 180ms linear;
}

.ob-results[hidden],
.ob-modal[hidden],
.ob-toast[hidden] {
  display: none !important;
}

.ob-workspace [hidden] {
  display: none !important;
}

.ob-primary-results {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.ob-primary-results .ob-result-entry[open] {
  grid-column: 1 / -1;
}

.ob-result-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.ob-result-calculation-count {
  margin: 14px 0 0;
  border-top: 1px solid hsl(var(--border) / 0.58);
  padding-top: 11px;
  color: hsl(var(--muted-foreground));
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  text-align: start;
}

.ob-damage-position > .ob-section-head {
  align-items: flex-end;
  gap: 18px;
}

.ob-damage-position__filters {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
}

.ob-damage-position__filter {
  display: grid;
  gap: 5px;
}

.ob-damage-position__filter > span {
  color: hsl(var(--muted-foreground));
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.ob-damage-position__filter-options {
  display: grid;
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.82);
  border-radius: var(--radius-sm);
  background: hsl(var(--muted) / 0.12);
}

.ob-damage-position__filter-options:has([data-ob-damage-metric]) {
  grid-template-columns: repeat(2, max-content);
}

.ob-damage-position__filter-options:has([data-ob-damage-period]) {
  grid-template-columns: repeat(5, max-content);
}

.ob-damage-position__filter-options button {
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  border-inline-start: 1px solid hsl(var(--border) / 0.62);
  background: transparent;
  color: hsl(var(--muted-foreground));
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.ob-damage-position__filter-options button:first-child {
  border-inline-start: 0;
}

.ob-damage-position__filter-options button:is(:hover, :focus-visible) {
  color: hsl(var(--foreground));
}

.ob-damage-position__filter-options button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid hsl(var(--ring));
  outline-offset: -2px;
}

.ob-damage-position__filter-options button[aria-pressed='true'] {
  background: hsl(var(--primary) / 0.14);
  box-shadow: inset 0 -2px 0 hsl(var(--primary));
  color: hsl(var(--primary));
}

.ob-damage-position__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ob-damage-position__panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.75);
  border-radius: var(--radius);
  background: hsl(var(--card));
  box-shadow: inset 0 1px 0 hsl(var(--foreground) / 0.035);
}

.ob-damage-position__panel > header {
  min-height: 74px;
  padding: 12px 14px;
  border-bottom: 1px solid hsl(var(--border) / 0.58);
  background: hsl(var(--muted) / 0.1);
}

.ob-damage-position__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.ob-damage-position__identity > img {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid hsl(var(--border) / 0.72);
  border-radius: 50%;
  background: hsl(var(--secondary) / 0.34);
  object-fit: cover;
}

.ob-damage-position__identity > div {
  min-width: 0;
}

.ob-damage-position__identity h3 {
  margin-bottom: 2px;
  font-size: 0.98rem;
  line-height: 1.25;
}

.ob-damage-position__identity p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.72rem;
  line-height: 1.35;
}

.ob-damage-position__portraits {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  padding-inline-start: 4px;
}

.ob-damage-position__portraits img {
  width: 38px;
  height: 38px;
  margin-inline-start: -8px;
  border: 2px solid hsl(var(--card));
  border-radius: 50%;
  background: hsl(var(--secondary) / 0.34);
  object-fit: cover;
}

.ob-damage-position__plot {
  position: relative;
  height: clamp(360px, 28vw, 430px);
  min-height: 360px;
  overflow: hidden;
}

.ob-damage-position__axis {
  position: absolute;
  top: 6%;
  bottom: 6%;
  left: 50%;
  width: 2px;
  border-radius: 999px;
  background: hsl(var(--border));
  transform: translateX(-50%);
}

.ob-damage-position__axis::before,
.ob-damage-position__axis::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: hsl(var(--border));
  transform: translateX(-50%);
}

.ob-damage-position__axis::before {
  top: 0;
}

.ob-damage-position__axis::after {
  bottom: 0;
}

.ob-damage-position__point {
  --ob-point-color: hsl(156 38% 58%);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ob-damage-position__point.is-current {
  --ob-point-color: hsl(var(--primary));
}

.ob-damage-position__point.is-optimal {
  --ob-point-color: hsl(40 70% 62%);
}

.ob-damage-position__point.is-mixed {
  --ob-point-color: hsl(var(--foreground));
}

html.light .ob-damage-position__point {
  --ob-point-color: hsl(157 45% 29%);
}

html.light .ob-damage-position__point.is-current {
  --ob-point-color: hsl(var(--primary));
}

html.light .ob-damage-position__point.is-optimal {
  --ob-point-color: hsl(35 68% 35%);
}

html.light .ob-damage-position__point.is-mixed {
  --ob-point-color: hsl(var(--foreground));
}

.ob-damage-position__connector {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ob-damage-position__connector line {
  stroke: var(--ob-point-color);
  stroke-width: 1.25px;
  stroke-opacity: 0.68;
}

.ob-damage-position__dot {
  position: absolute;
  top: var(--ob-point-y);
  left: 50%;
  z-index: 2;
  width: 12px;
  height: 12px;
  border: 2px solid hsl(var(--card));
  border-radius: 50%;
  background: var(--ob-point-color);
  box-shadow: 0 0 0 2px var(--ob-point-color);
  transform: translate(-50%, -50%);
}

.ob-damage-position__point.is-optimal .ob-damage-position__dot {
  border-radius: 2px;
  transform: translate(-50%, -50%) rotate(45deg);
}

.ob-damage-position__point.is-rank .ob-damage-position__dot {
  background: hsl(var(--card));
}

.ob-damage-position__point.is-mixed .ob-damage-position__dot {
  border-radius: 3px;
  background: hsl(var(--card));
  box-shadow: 0 0 0 2px var(--ob-point-color), 0 0 0 5px hsl(var(--card));
}

.ob-damage-position__callout {
  position: absolute;
  top: var(--ob-label-y);
  display: grid;
  width: calc(50% - 32px);
  min-width: 0;
  gap: 4px;
  padding: 7px 8px;
  border: 1px solid hsl(var(--border) / 0.72);
  border-radius: var(--radius-sm);
  background: hsl(var(--card));
  box-shadow: 0 5px 14px hsl(220 20% 2% / 0.12);
  transform: translateY(-50%);
}

.ob-damage-position__point.is-right .ob-damage-position__callout {
  right: auto;
  left: calc(50% + 22px);
  border-left: 2px solid var(--ob-point-color);
}

.ob-damage-position__point.is-left .ob-damage-position__callout {
  right: calc(50% + 22px);
  left: auto;
  border-right: 2px solid var(--ob-point-color);
}

.ob-damage-position__labels {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 3px;
}

.ob-damage-position__label {
  display: inline-flex;
  max-width: 100%;
  min-height: 20px;
  align-items: center;
  padding: 2px 5px;
  border: 1px solid hsl(156 38% 58% / 0.48);
  border-radius: 999px;
  background: hsl(156 38% 58% / 0.1);
  color: hsl(156 48% 68%);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.1;
}

.ob-damage-position__label.is-current {
  border-color: hsl(var(--primary) / 0.52);
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

.ob-damage-position__label.is-optimal {
  border-color: hsl(40 70% 62% / 0.52);
  background: hsl(40 70% 62% / 0.1);
  color: hsl(40 70% 68%);
}

html.light .ob-damage-position__label {
  border-color: hsl(157 45% 29% / 0.48);
  background: hsl(157 45% 29% / 0.08);
  color: hsl(157 45% 25%);
}

html.light .ob-damage-position__label.is-current {
  border-color: hsl(var(--primary) / 0.5);
  background: hsl(var(--primary) / 0.08);
  color: hsl(var(--primary));
}

html.light .ob-damage-position__label.is-optimal {
  border-color: hsl(35 68% 35% / 0.48);
  background: hsl(35 68% 35% / 0.08);
  color: hsl(35 68% 31%);
}

.ob-damage-position__callout strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: hsl(var(--foreground));
  font-size: clamp(0.7rem, 0.8vw, 0.82rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.ob-result-entry {
  --ob-result-accent: 156 38% 58%;
  min-width: 0;
  overflow: clip;
  border: 1px solid hsl(var(--ob-result-accent) / 0.48);
  border-inline-start: 3px solid hsl(var(--ob-result-accent) / 0.92);
  border-radius: var(--radius);
  background: hsl(var(--card));
  box-shadow: inset 0 1px 0 hsl(var(--foreground) / 0.035);
}

.ob-result-entry--current {
  --ob-result-accent: var(--primary);
}

.ob-result-entry--ranked {
  --ob-result-accent: 156 38% 58%;
}

.ob-result-entry--reference {
  --ob-result-accent: 40 70% 62%;
}

html.light .ob-result-entry {
  --ob-result-accent: 157 45% 29%;
}

html.light .ob-result-entry--current {
  --ob-result-accent: var(--primary);
}

html.light .ob-result-entry--ranked {
  --ob-result-accent: 157 45% 29%;
}

html.light .ob-result-entry--reference {
  --ob-result-accent: 35 68% 35%;
}

.ob-result-entry > summary {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 45rem) auto;
  align-items: center;
  gap: 18px;
  min-height: 106px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  transition: background 150ms ease, border-color 150ms ease;
}

.ob-result-entry > summary:hover {
  background: hsl(var(--muted) / 0.16);
}

.ob-result-entry[open] > summary {
  border-bottom: 1px solid hsl(var(--ob-result-accent) / 0.36);
  background: hsl(var(--muted) / 0.12);
}

.ob-result-entry .ob-status {
  border-color: hsl(var(--ob-result-accent) / 0.58);
  background: hsl(var(--ob-result-accent) / 0.13);
  color: hsl(var(--ob-result-accent));
}

.ob-result-entry > summary::-webkit-details-marker,
.ob-result-substats > summary::-webkit-details-marker {
  display: none;
}

.ob-result-card__heading {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 5px;
  min-width: 0;
}

.ob-result-card__heading > strong {
  overflow: hidden;
  max-width: 100%;
  font-size: 1.08rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ob-result-card__heading > small {
  color: hsl(var(--muted-foreground));
  font-size: 0.76rem;
}

.ob-result-card__heading > .ob-result-card__purpose {
  color: hsl(var(--ob-result-accent));
  font-weight: 750;
}

.ob-result-card__metrics,
.ob-result-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(78px, 1fr));
  min-width: 0;
}

.ob-result-card__metrics--two {
  grid-template-columns: repeat(2, minmax(100px, 1fr));
}

.ob-result-card__metrics > span,
.ob-metric {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  padding-inline: 12px;
  border-inline-end: 1px solid hsl(var(--border) / 0.48);
}

.ob-result-card__metrics > span {
  justify-items: center;
  text-align: center;
}

.ob-result-card__metrics > span:last-child,
.ob-metric:last-child {
  border-inline-end: 0;
}

.ob-result-card__metrics small,
.ob-metric span {
  color: hsl(var(--muted-foreground));
  font-size: 0.66rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  white-space: normal;
}

.ob-result-card__metrics strong,
.ob-metric strong {
  overflow: hidden;
  font-size: clamp(0.95rem, 1.35vw, 1.22rem);
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ob-result-card__metrics .is-positive strong {
  color: hsl(151 52% 52%);
}

.ob-result-card__metrics .is-negative strong {
  color: hsl(var(--destructive));
}

.ob-result-card__metrics .is-neutral strong {
  color: hsl(var(--foreground));
}

html.light .ob-result-card__metrics .is-positive strong {
  color: hsl(151 55% 27%);
}

.ob-result-card__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 38px;
  border: 1px solid hsl(var(--border) / 0.8);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  color: hsl(var(--foreground));
  font-size: 0.74rem;
  font-weight: 750;
  text-align: center;
}

.when-open {
  display: none;
}

.ob-result-entry[open] > summary .when-closed,
.ob-result-substats[open] > summary .when-closed {
  display: none;
}

.ob-result-entry[open] > summary .when-open,
.ob-result-substats[open] > summary .when-open {
  display: inline;
}

.ob-result-entry__body {
  min-width: 0;
  padding: 0 18px 20px;
}

.ob-result-reference-note {
  display: grid;
  gap: 5px;
  margin: 16px 0 0;
  border: 1px solid hsl(var(--ob-result-accent) / 0.32);
  border-inline-start: 3px solid hsl(var(--ob-result-accent) / 0.82);
  border-radius: var(--radius-sm);
  background: hsl(var(--muted) / 0.12);
  padding: 12px 14px;
  color: hsl(var(--muted-foreground));
  font-size: 0.82rem;
  line-height: 1.55;
}

.ob-result-reference-note > strong {
  color: hsl(var(--foreground));
  font-size: 0.8rem;
}

.ob-result-reference-note > strong:not(:first-child) {
  margin-top: 7px;
}

.ob-result-reference-note > p {
  margin: 0;
}

.ob-result-section {
  min-width: 0;
  scroll-margin-top: 88px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid hsl(var(--border) / 0.55);
}

.ob-result-entry__body > .ob-result-section:first-child {
  margin-top: 14px;
  padding-top: 0;
  border-top: 0;
}

.ob-result-section > h3 {
  margin: 0 0 10px;
  font-size: 0.94rem;
}

.ob-result-table-wrap {
  overflow-x: auto;
  border: 1px solid hsl(var(--border) / 0.66);
  border-radius: var(--radius-sm);
  background: hsl(var(--background) / 0.28);
}

.ob-result-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.ob-result-table--damage {
  min-width: 680px;
}

.ob-result-table th,
.ob-result-table td {
  padding: 10px 9px;
  border-inline-end: 1px solid hsl(var(--border) / 0.42);
  border-bottom: 1px solid hsl(var(--border) / 0.42);
  text-align: end;
  white-space: nowrap;
}

.ob-result-table tr > :last-child {
  border-inline-end: 0;
}

.ob-result-table tbody tr:last-child > * {
  border-bottom: 0;
}

.ob-result-table th:first-child,
.ob-result-table td:first-child {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  min-width: 92px;
  background: hsl(var(--card));
  text-align: start;
}

.ob-result-table th.ob-result-table__character-cell {
  padding: 6px 8px;
  text-align: center;
}

.ob-result-table__character {
  display: block;
  width: 38px;
  height: 38px;
  margin-inline: auto;
  border: 1px solid hsl(var(--border) / 0.78);
  border-radius: 8px;
  background: hsl(var(--muted) / 0.22);
  object-fit: cover;
  box-shadow: 0 2px 8px hsl(var(--background) / 0.22);
}

.ob-result-table thead th {
  background: hsl(var(--muted) / 0.42);
  color: hsl(var(--muted-foreground));
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ob-result-table thead tr:first-child th[colspan] {
  border-bottom-color: hsl(var(--border) / 0.66);
  text-align: center;
}

.ob-result-table tbody tr:nth-child(even) > * {
  background-color: hsl(var(--muted) / 0.11);
}

.ob-result-table tbody tr:last-child > * {
  background-color: hsl(var(--primary) / 0.065);
  font-weight: 800;
}

.ob-result-team-details > h4 {
  margin: 16px 0 9px;
  font-size: 0.82rem;
}

.ob-result-facts,
.ob-result-loadouts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.62);
  border-radius: var(--radius-sm);
}

.ob-result-facts > div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px;
  border-inline-end: 1px solid hsl(var(--border) / 0.48);
  background: hsl(var(--muted) / 0.1);
}

.ob-result-facts > div:last-child,
.ob-result-loadouts > article:last-child {
  border-inline-end: 0;
}

.ob-result-facts img,
.ob-result-loadouts header img,
.ob-result-final-stats header img,
.ob-result-echoes header img {
  border: 1px solid hsl(var(--border) / 0.6);
  border-radius: 7px;
  object-fit: cover;
}

.ob-result-facts > div > div,
.ob-result-loadouts header > div,
.ob-result-echoes header > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ob-result-facts span,
.ob-result-facts small {
  color: hsl(var(--muted-foreground));
  font-size: 0.72rem;
}

.ob-result-facts strong,
.ob-result-facts small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ob-result-loadouts > article {
  min-width: 0;
  border-inline-end: 1px solid hsl(var(--border) / 0.48);
}

.ob-result-loadouts header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 10px;
  background: hsl(var(--muted) / 0.16);
}

.ob-result-loadouts header span {
  overflow: hidden;
  color: hsl(var(--muted-foreground));
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ob-result-loadout-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 8px 10px;
  border-top: 1px solid hsl(var(--border) / 0.42);
}

.ob-result-loadout-row > img {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
}

.ob-result-loadout-row > span {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.ob-result-loadout-row small {
  color: hsl(var(--muted-foreground));
  font-size: 0.66rem;
}

.ob-result-loadout-row strong {
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ob-result-final-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.62);
  border-radius: var(--radius-sm);
}

.ob-result-final-stats > article {
  min-width: 0;
  border-inline-end: 1px solid hsl(var(--border) / 0.48);
}

.ob-result-final-stats > article:last-child {
  border-inline-end: 0;
}

.ob-result-final-stats header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 63px;
  padding: 10px;
  background: hsl(var(--muted) / 0.18);
}

.ob-result-final-stats header img {
  width: 42px;
  height: 42px;
}

.ob-result-final-stats header strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ob-result-final-stats dl {
  margin: 0;
}

.ob-result-final-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  margin: 0;
  border-top: 1px solid hsl(var(--border) / 0.4);
  padding: 8px 10px;
}

.ob-result-final-stat:nth-child(even) {
  background: hsl(var(--muted) / 0.09);
}

.ob-result-final-stat dt {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.72rem;
  line-height: 1.35;
}

.ob-result-final-stat dt img {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

html.light .ob-result-final-stat dt img {
  filter: brightness(0);
  opacity: 0.72;
}

.ob-result-final-stat dt span {
  overflow-wrap: anywhere;
}

.ob-result-final-stat dd {
  flex: 0 0 auto;
  margin: 0;
  color: hsl(var(--foreground));
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  white-space: nowrap;
}

.ob-result-final-stat.ob-result-final-stat--useful {
  border-inline-start: 2px solid rgb(var(--ob-useful-gold) / 0.72);
  background: linear-gradient(135deg, rgb(var(--ob-useful-gold) / 0.11), rgb(var(--ob-useful-green) / 0.07));
}

[dir="rtl"] .ob-result-final-stat.ob-result-final-stat--useful {
  background: linear-gradient(225deg, rgb(var(--ob-useful-gold) / 0.11), rgb(var(--ob-useful-green) / 0.07));
}

.ob-result-final-stats .ob-inline-error {
  margin: 0;
  border-top: 1px solid hsl(var(--border) / 0.4);
  padding: 12px;
}

.ob-result-echoes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.62);
  border-radius: var(--radius-sm);
}

.ob-result-echoes > section {
  min-width: 0;
  border-inline-end: 1px solid hsl(var(--border) / 0.48);
}

.ob-result-echoes > section:last-child {
  border-inline-end: 0;
}

.ob-result-echoes header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 10px;
  background: hsl(var(--muted) / 0.18);
}

.ob-result-echoes header span {
  color: hsl(var(--muted-foreground));
  font-size: 0.7rem;
}

.ob-result-echoes ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ob-result-echoes li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  min-width: 0;
  padding: 10px;
  border-top: 1px solid hsl(var(--border) / 0.4);
}

.ob-result-echoes li:nth-child(even) {
  background: hsl(var(--muted) / 0.09);
}

.ob-result-echoes li.ob-result-echo--replacement {
  border-inline-start: 3px solid hsl(var(--warning));
  background: linear-gradient(90deg, hsl(var(--warning) / 0.12), hsl(var(--warning) / 0.035));
}

[dir="rtl"] .ob-result-echoes li.ob-result-echo--replacement {
  background: linear-gradient(270deg, hsl(var(--warning) / 0.12), hsl(var(--warning) / 0.035));
}

.ob-result-echoes li > img {
  width: 48px;
  height: 48px;
  border-radius: 7px;
  object-fit: cover;
}

.ob-result-echo-content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ob-result-echo-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 7px;
}

.ob-result-echo-head b {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  font-size: 0.75rem;
  line-height: 1.35;
}

.ob-result-echo-head b > span {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid hsl(var(--border) / 0.7);
  border-radius: 50%;
  color: hsl(var(--muted-foreground));
  font-size: 0.64rem;
}

.ob-result-echo-head em {
  flex: 0 0 auto;
  border: 1px solid hsl(var(--border) / 0.62);
  border-radius: 999px;
  padding: 2px 6px;
  color: hsl(var(--muted-foreground));
  font-size: 0.62rem;
  font-style: normal;
  white-space: nowrap;
}

.ob-result-echo-tags {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.ob-result-echo-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid hsl(var(--warning) / 0.72);
  border-radius: 999px;
  background: hsl(var(--warning) / 0.12);
  padding: 2px 6px;
  color: hsl(var(--warning));
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
}

.ob-result-echo-content > p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.68rem;
  line-height: 1.4;
}

.ob-result-echo-main-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ob-result-substats > summary {
  display: inline-flex;
  width: fit-content;
  cursor: pointer;
  color: hsl(var(--primary));
  font-size: 0.68rem;
  font-weight: 750;
  list-style: none;
}

.ob-result-substats > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.ob-result-echo-stat {
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 4px;
  background: hsl(var(--background) / 0.38);
  padding: 3px 5px;
  color: hsl(var(--muted-foreground));
  font-size: 0.62rem;
}

.ob-result-echo-main-stats > .ob-result-echo-stat {
  font-size: 0.68rem;
}

.ob-result-echo-stat strong {
  color: hsl(var(--foreground));
  font-variant-numeric: tabular-nums;
}

.ob-result-echo-stat.ob-result-echo-stat--useful {
  border-color: rgb(var(--ob-useful-gold) / 0.54);
  background: linear-gradient(135deg, rgb(var(--ob-useful-gold) / 0.11), rgb(var(--ob-useful-green) / 0.07));
}

.ob-result-effects ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ob-result-effects li {
  border-inline-start: 2px solid hsl(var(--primary) / 0.64);
  background: hsl(var(--muted) / 0.13);
  padding: 8px 10px;
  color: hsl(var(--muted-foreground));
  font-size: 0.76rem;
  line-height: 1.45;
}

.ob-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgb(0 0 0 / 0.72);
}

.ob-modal__panel {
  width: min(820px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  background: hsl(var(--popover));
  box-shadow: 0 24px 80px rgb(0 0 0 / 0.42);
}

.ob-modal__head,
.ob-modal__foot {
  position: sticky;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: hsl(var(--popover));
  padding: 8px 12px;
}

.ob-modal__head {
  top: 0;
  border-bottom: 1px solid hsl(var(--border) / 0.7);
}

.ob-modal__head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.ob-modal__body {
  display: grid;
  grid-template-columns: minmax(190px, 0.42fr) minmax(0, 1fr);
  gap: 8px;
  padding: 10px 12px;
}

.ob-modal .ob-field {
  gap: 4px;
}

.ob-modal .ob-field[hidden] {
  display: none;
}

.ob-modal .ob-field select,
.ob-modal .ob-field input,
.ob-modal .ob-readonly-value {
  min-height: 38px;
  padding: 4px 8px;
}

.ob-modal .ob-visual-trigger {
  grid-template-columns: 28px minmax(0, 1fr) 10px;
  min-height: 38px;
  padding: 3px 7px;
}

.ob-modal .ob-visual-trigger .ob-visual-thumb {
  width: 28px;
  height: 28px;
}

.ob-modal__head .ob-button,
.ob-modal__foot .ob-button {
  min-height: 38px;
  padding: 7px 11px;
}

.ob-modal__foot {
  bottom: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  border-top: 1px solid hsl(var(--border) / 0.7);
}

.ob-modal__error {
  flex: 1 0 100%;
  margin: 0;
  border: 1px solid hsl(var(--destructive) / 0.45);
  border-radius: 6px;
  background: hsl(var(--destructive) / 0.08);
  padding: 6px 8px;
  line-height: 1.4;
}

.ob-restore-confirm__panel {
  width: min(520px, 100%);
  overflow: hidden;
}

.ob-restore-confirm .ob-modal__head,
.ob-restore-confirm .ob-modal__foot {
  position: static;
  padding: 13px 16px;
}

.ob-restore-confirm .ob-modal__head .ob-button,
.ob-restore-confirm .ob-modal__foot .ob-button {
  min-height: 44px;
}

.ob-restore-confirm__body {
  padding: 20px 18px;
}

.ob-restore-confirm__body p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  line-height: 1.65;
}

.ob-import-confirm__file {
  display: block;
  margin-top: 12px;
  overflow-wrap: anywhere;
  color: hsl(var(--foreground));
  font-size: 0.8rem;
  unicode-bidi: plaintext;
}

.ob-toast {
  position: fixed;
  z-index: 1200;
  inset-inline-end: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100vw - 36px));
  border: 1px solid hsl(var(--border));
  border-radius: 7px;
  background: hsl(var(--card));
  box-shadow: 0 16px 50px rgb(0 0 0 / 0.35);
  padding: 12px 14px;
}

.ob-inline-error {
  margin-top: 10px;
  color: hsl(var(--destructive));
  font-size: 0.82rem;
}

html[dir='rtl'] .ob-page h1 {
  letter-spacing: 0;
}

html[dir='rtl'] .ob-eyebrow {
  letter-spacing: 0;
}

@media (max-width: 1050px) {
  .ob-config-grid,
  .ob-team-strip,
  .ob-primary-results {
    grid-template-columns: 1fr;
  }

  .ob-character-config,
  .ob-team-strip article {
    border-inline-end: 0;
    border-bottom: 1px solid hsl(var(--border) / 0.55);
  }

  .ob-character-config:last-child,
  .ob-team-strip article:last-child {
    border-bottom: 0;
  }

  .ob-team-strip article {
    grid-template-columns: 76px 1fr;
  }

  .ob-team-strip img {
    width: 76px;
    height: 92px;
  }

  .ob-assumption-grid,
  .ob-result-summary,
  .ob-result-card__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ob-choice-grid--objectives {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ob-choice-grid--energy {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ob-assumption-grid > div:nth-child(2),
  .ob-result-summary > :nth-child(2),
  .ob-result-card__metrics > :nth-child(2) {
    border-inline-end: 0;
  }

  .ob-assumption-grid > div:nth-child(-n + 2),
  .ob-result-summary > :nth-child(-n + 2),
  .ob-result-card__metrics > :nth-child(-n + 2) {
    border-bottom: 1px solid hsl(var(--border) / 0.55);
  }

  .ob-result-card__metrics--two > :nth-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 1250px) {
  .ob-echo-row {
    grid-template-columns: 28px 44px minmax(0, 1fr) auto;
  }

  .ob-echo-row__slot,
  .ob-echo-row > img {
    grid-row: 1 / span 2;
  }

  .ob-echo-row__identity {
    grid-column: 3;
    grid-row: 1;
  }

  .ob-echo-row__stats {
    grid-column: 3 / 5;
    grid-row: 2;
  }

  .ob-echo-row__action {
    grid-column: 4;
    grid-row: 1;
  }

  .ob-damage-position > .ob-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .ob-damage-position__filters {
    justify-content: flex-start;
  }
}

@media (max-width: 1400px) {
  .ob-damage-position__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ob-damage-position__plot {
    height: 400px;
  }
}

@media (max-width: 760px) {
  .ob-page {
    --ob-page-gutter: 0.75rem;
    padding-block-start: 0.7rem;
  }

  .ob-page-head {
    padding: 1rem;
  }

  .ob-page > .aw-page-breadcrumb,
  .ob-breadcrumbs {
    margin-block-end: 0.3rem;
  }

  .ob-workspace .ob-breadcrumbs ol {
    overflow: hidden;
    white-space: nowrap;
  }

  .ob-workspace .ob-breadcrumbs li {
    flex: 0 0 auto;
  }

  .ob-workspace .ob-breadcrumbs li[aria-current='page'] {
    flex: 1 1 auto;
    min-inline-size: 0;
  }

  .ob-workspace .ob-breadcrumbs li:nth-child(3) {
    display: none;
  }

  .ob-page h1 {
    font-size: clamp(1.75rem, 8.8vw, 2.35rem);
  }

  .ob-page-head .aw-index-hero-copy > p:last-of-type {
    font-size: 0.85rem;
  }

  .ob-character-grid,
  .ob-team-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ob-character-card {
    width: min(100%, 340px);
  }

  .ob-inventory-character {
    grid-template-columns: 1fr;
  }

  .ob-inventory-character__label {
    border-inline-end: 0;
    border-bottom: 1px solid hsl(var(--border) / 0.55);
  }

  .ob-echo-row {
    grid-template-columns: 26px 40px minmax(0, 1fr) auto;
    align-items: start;
    padding: 8px;
  }

  .ob-echo-row--empty {
    grid-template-columns: minmax(56px, max-content) minmax(0, 1fr) auto;
  }

  .ob-echo-row__slot {
    align-self: center;
  }

  .ob-echo-row__stats {
    padding-top: 2px;
  }

  .ob-result-entry > summary {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .ob-result-card__heading {
    justify-items: start;
  }

  .ob-result-card__heading > strong {
    white-space: normal;
  }

  .ob-result-card__metrics > span {
    min-height: 54px;
    padding: 8px 10px;
  }

  .ob-result-card__metrics > span:nth-child(2n) {
    border-inline-end: 0;
  }

  .ob-result-card__toggle {
    width: 100%;
  }

  .ob-result-entry__body {
    padding: 0 12px 16px;
  }

  .ob-result-echoes,
  .ob-result-loadouts,
  .ob-result-final-stats,
  .ob-modal__body {
    grid-template-columns: 1fr;
  }

  .ob-result-facts {
    grid-template-columns: 1fr;
  }

  .ob-result-facts > div,
  .ob-result-loadouts > article,
  .ob-result-final-stats > article,
  .ob-result-echoes > section {
    border-inline-end: 0;
    border-bottom: 1px solid hsl(var(--border) / 0.46);
  }

  .ob-result-facts > div:last-child,
  .ob-result-loadouts > article:last-child,
  .ob-result-final-stats > article:last-child,
  .ob-result-echoes > section:last-child {
    border-bottom: 0;
  }

  .ob-result-effects ul {
    grid-template-columns: 1fr;
  }

  .ob-choice-grid--energy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ob-choice-group {
    padding: 13px;
  }

  .ob-result-selection {
    max-width: 100%;
    border-radius: 8px;
    text-align: start;
  }

  .ob-calculate-bar {
    bottom: 6px;
    grid-template-columns: 1fr;
  }

  .ob-calculate-bar .ob-button {
    width: 100%;
  }

  .ob-calculate-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ob-workspace-transfer .ob-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .ob-workspace-transfer__actions {
    justify-content: stretch;
  }

  .ob-workspace-transfer__actions .ob-button {
    flex: 1 1 0;
  }

  .ob-damage-position__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ob-damage-position__filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .ob-damage-position__filter-options:has([data-ob-damage-metric]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ob-damage-position__filter-options:has([data-ob-damage-period]) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .ob-damage-position__filter-options button {
    min-height: 44px;
    padding-inline: 5px;
  }

  .ob-damage-position__plot {
    height: 390px;
  }
}

@media (max-width: 520px) {
  .ob-echo-row__stats {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .ob-owned-echo-stat {
    max-width: 100%;
    white-space: normal;
  }

  .ob-owned-echoes .ob-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .ob-scan-action {
    display: flex;
  }

  .ob-scan-action .ob-button {
    width: 100%;
  }

  .ob-restore-confirm__foot {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ob-restore-confirm__foot .ob-button {
    width: 100%;
  }

  .ob-workspace-transfer__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ob-workspace-transfer__actions .ob-button {
    width: 100%;
  }

  .ob-fields {
    grid-template-columns: 1fr;
  }

  .ob-stat-row {
    grid-template-columns: minmax(0, 1fr) minmax(104px, 0.42fr);
    gap: 8px;
  }

  .ob-choice-grid--objectives {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ob-character-card,
  .ob-team-card,
  .ob-progress span,
  .ob-choice-card,
  .ob-choice-card__marker::after {
    transition: none;
  }
}
