.human-card-note {
  margin: 10px 0 4px;
  color: var(--ink-600);
  font-size: 12px;
  line-height: 1.4;
}
.card-info [data-action="edit-human"] {
  padding: 10px 0 2px;
  font-size: 12px;
}
.dialog.human-editor {
  width: 960px;
  height: min(780px, calc(100dvh - 32px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.human-editor > header,
.human-editor > .dialog-subtitle,
.human-editor-actions {
  flex: 0 0 auto;
}
.human-editor-body {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 22px;
  min-height: 0;
  flex: 1;
}
.human-portrait {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  text-align: center;
  border-radius: 24px;
  background: radial-gradient(ellipse at center, #fff 12%, #e0efff 70%);
  padding: 16px 10px;
  min-width: 0;
}
.human-portrait canvas {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  touch-action: none;
  cursor: grab;
}
.human-portrait p {
  font-size: 12px;
  color: var(--ink-600);
  margin: 4px 0;
}
.human-look-caption {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  margin: 16px 16px 0;
  color: #486889;
}
.human-controls {
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
  min-width: 0;
  padding: 0 7px 10px 3px;
  scrollbar-width: thin;
}
.human-wardrobe-tabs {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 4px 0 10px;
  background: var(--sky-50);
}
.human-wardrobe-tabs button {
  min-width: 0;
  min-height: 44px;
  padding: 8px 4px;
  font-size: 14px;
  border: 2px solid #cbdff2;
  border-radius: 14px;
  color: #3b618a;
  background: #e5f0fc;
  box-shadow: none;
}
.human-wardrobe-tabs button[aria-pressed="true"] {
  background: #277ccd;
  color: white;
  border-color: #277ccd;
}
.human-field-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 16px;
}
.human-field-tabs button {
  min-height: 36px;
  min-width: 0;
  padding: 7px 12px;
  font-size: 12px;
  background: white;
  border: 1px solid #cbdff2;
  border-radius: 18px;
  color: #365c86;
  box-shadow: none;
}
.human-field-tabs button[aria-pressed="true"] {
  color: #15497c;
  background: #cfe5fb;
  border-color: #3e8cda;
}
.human-choice-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 2px 10px;
}
.human-choice-heading h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 20px;
}
.human-choice-count {
  font-size: 12px;
  font-weight: 700;
  color: #557797;
}
.human-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.human-choice {
  position: relative;
  min-width: 0;
  padding: 0 0 9px;
  border: 2px solid white;
  border-radius: 16px;
  background: #e5f0fb;
  box-shadow: 0 3px 0 #c8d9ec;
  overflow: hidden;
  color: #27486a;
}
.human-choice canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  pointer-events: none;
  background: radial-gradient(ellipse, #fff9, transparent);
}
.human-choice span {
  display: block;
  padding: 0 3px;
  font-size: 12px;
  line-height: 1.2;
}
.human-choice i {
  display: none;
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #218850;
  color: white;
  font: 700 13px/20px sans-serif;
}
.human-choice[aria-pressed="true"] {
  border-color: #30985f;
  background: #e4f5e8;
  box-shadow: 0 3px 0 #85bd99;
}
.human-choice[aria-pressed="true"] i {
  display: block;
}
.human-choice-stepper {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 10px;
  align-items: center;
  margin: 14px 0;
  text-align: center;
}
.human-choice-stepper button {
  min-width: 44px;
  min-height: 40px;
  background: white;
  color: #285d91;
  border: 1px solid #c5d9ed;
  border-radius: 12px;
  box-shadow: none;
  font: 700 27px/1 sans-serif;
  padding: 3px;
}
.human-choice-name {
  font-size: 14px;
  font-weight: 700;
}
.human-field {
  border: 0;
  padding: 0;
  margin: 16px 2px 4px;
  min-width: 0;
}
.human-field legend {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}
.human-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 3px;
}
.human-swatch {
  position: relative;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 1px #b9cce0;
  padding: 0;
}
.human-swatch[aria-pressed="true"] {
  box-shadow: 0 0 0 3px #245491;
}
.human-swatch[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  right: -4px;
  bottom: -4px;
  background: #245491;
  color: white;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  font: bold 11px/15px sans-serif;
}
.human-owned-note {
  font-size: 12px;
  line-height: 1.4;
  color: #486889;
}
.human-editor :is(button, canvas):focus-visible {
  outline: 3px solid #226dc0;
  outline-offset: 3px;
}
.human-editor-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
}
.human-editor-actions .primary {
  font-size: 17px;
  min-height: 48px;
}
@media (max-width: 580px) {
  .dialog.human-editor {
    padding: 14px;
  }
  .human-editor h2 {
    font-size: 23px;
  }
  .human-editor > .dialog-subtitle {
    margin: 8px 0;
    font-size: 12px;
  }
  .human-editor-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
  }
  .human-portrait {
    padding: 2px;
  }
  .human-portrait .eyebrow,
  .human-look-caption {
    display: none;
  }
  .human-portrait canvas {
    max-width: 240px;
    height: clamp(104px, 20dvh, 170px);
    margin: auto;
    object-fit: contain;
  }
  .human-portrait p {
    font-size: 10px;
    margin: 0;
  }
  .human-field-tabs {
    margin-bottom: 10px;
  }
  .human-field-tabs button {
    padding: 6px 9px;
    font-size: 11px;
  }
  .human-choice-grid {
    gap: 8px;
  }
  .human-choice span {
    font-size: 11px;
  }
  .human-choice-stepper {
    margin: 12px 0;
  }
  .human-editor-actions {
    padding-top: 10px;
  }
}
