/* A trainer license over a wardrobe: wine enamel, brass rail and dark lining. */
.trainer-identity-tags {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
}
.trainer-guild-tag {
  display: inline-block;
  font-size: 0.9em;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.025em;
  white-space: nowrap;
}
button.trainer-guild-tag[data-open-guild] {
  appearance: none;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 2px;
  padding: 2px 1px;
  margin: -2px -1px;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: pointer;
}
button.trainer-guild-tag[data-open-guild]:hover { text-decoration-style: solid; }
button.trainer-guild-tag[data-open-guild]:focus-visible {
  outline: 2px solid var(--ui-color-primary);
  outline-offset: 2px;
  text-decoration-style: solid;
}
.trainer-pokecard-guild {
  font-size: 0.72em;
  white-space: nowrap;
}
.trainer-pokecard-guild-title {
  color: #783a40;
  font: 700 12px/1.3 var(--ui-font-body);
  overflow-wrap: anywhere;
}
.profile-guild-titles {
  margin: 16px;
  padding: 16px;
  color: var(--ui-color-text);
  background: var(--ui-color-surface);
}
.profile-guild-titles h3 {
  margin: 0;
  font: 26px/1.2 var(--ui-font-display);
}
.profile-guild-titles label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--ui-color-text-muted);
}
.profile-guild-titles select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  color: var(--ui-color-text);
  border: 1px solid var(--ui-color-border);
  background: var(--ui-color-surface-control);
  font: 14px var(--ui-font-body);
}
.profile-guild-titles ul {
  display: grid;
  gap: 8px;
  max-height: 180px;
  overflow: auto;
  padding-left: 20px;
  font-size: 13px;
}
.profile-guild-titles li {
  overflow-wrap: anywhere;
}
.profile-guild-titles .ui-button {
  width: 100%;
  margin-top: 12px;
}
.profile-guild-titles [role="status"] {
  min-height: 20px;
  font-size: 12px;
}
.drawer.profile-drawer {
  width: min(calc(1032px + var(--ui-nav-rail-size)), 100%);
}
.profile-drawer .drawer-panel {
  --profile-rim: #211a21;
  --profile-brass: #af8954;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  background: #2b2329;
}
.profile-drawer .drawer-head {
  flex: none;
  margin: 0;
  padding: 10px 16px;
  align-items: center;
  border-bottom: 3px solid #211a21;
  background: #512d34;
  box-shadow: inset 0 2px #916050;
  color: #fff0d0;
}
.profile-drawer .drawer-head small {
  color: #d8ba85;
  font-size: 9px;
  letter-spacing: 0.14em;
}
.profile-drawer .drawer-head h2 {
  margin: 3px 0 0;
  font: 30px/1 var(--ui-font-display);
}
.profile-drawer #drawer-close {
  width: 36px;
  height: 36px;
  border: 1px solid #bd9271;
  background: #3c252b;
  color: #fff0d0;
}
.profile-drawer #drawer-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  background: #30252b;
}
.profile-shell {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  min-width: 0;
  padding: 0;
}
.profile-shell [hidden] {
  display: none !important;
}
.profile-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  min-width: 0;
  margin: 0;
}
.profile-content {
  container-type: inline-size;
  container-name: profile-body;
  min-height: 0;
  flex: 1;
  overflow: auto;
  scrollbar-color: #a17b58 #30252b;
}
.profile-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  min-width: 0;
  align-items: start;
}
.profile-stage {
  margin: 0;
  min-width: 0;
  position: relative;
  padding: 0;
  color: #352c35;
}
.profile-stage .trainer-pokecard {
  border: 0;
  border-bottom: 2px solid #211a21;
  box-shadow:
    inset 2px 0 #fff7e4,
    inset -2px 0 #ae9770;
}
.profile-portrait-controls {
  position: absolute;
  z-index: 1;
  bottom: 5px;
  inset-inline: 4px;
  display: flex;
  justify-content: center;
}
.profile-turn {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 2px;
  width: 100%;
  max-width: 120px;
  padding: 2px;
  border: 1px solid #a68a61;
  background: #f0e1bdef;
  box-shadow: 0 1px 3px #35232a30;
}
.profile-turn button {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: #e0c99c;
  color: #5f392c;
  font: 22px/1 var(--ui-font-display);
  cursor: pointer;
}
.profile-direction {
  min-width: 0;
  text-align: center;
  font: 9px/1 var(--ui-font-body);
}
.profile-current-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 10px;
  color: #745e47;
  font-size: 10px;
  line-height: 1.25;
}
.profile-current {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
}
.profile-xp {
  white-space: nowrap;
}
.profile-zoom {
  position: absolute;
  z-index: 2;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  min-height: 0;
  padding: 0;
  border: 1px solid #b69a70;
  border-radius: 2px;
  background: #35232aed;
  color: #fff0ce;
  font: 23px/1 var(--ui-font-body);
  box-shadow: 0 1px 3px #0004;
  cursor: pointer;
}
.profile-zoom:hover {
  background: #704c34;
  border-color: #f5cb80;
}
.profile-outfit-card {
  position: relative;
  min-width: 0;
  display: grid;
}
.profile-outfit-card > .profile-variant {
  height: 100%;
}
.profile-editor {
  min-width: 0;
  padding: 10px 14px 12px;
  border: 0;
  background: linear-gradient(90deg, #2d252d 0, #382c34 50%, #2d252d 100%);
}
.profile-wardrobe-title {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 8px;
  padding-bottom: 7px;
  border-bottom: 3px solid #a98753;
  color: #eed3a0;
  font: 24px/1 var(--ui-font-display);
}
.profile-wardrobe-title span {
  color: #bfa98d;
  font: 9px var(--ui-font-body);
  letter-spacing: 0.1em;
}
.profile-editor-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
}
.profile-editor-tabs > button {
  flex: 1;
  min-height: 31px;
  padding: 4px 10px;
  border: 1px solid #8d6e55;
  border-radius: 0;
  background: #3c3038;
  color: #d3c3b7;
  font: 20px/1 var(--ui-font-display);
  cursor: pointer;
}
.profile-editor-tabs > [aria-selected="true"] {
  background: #7b4d3b;
  color: #fff0d0;
  border-color: #d5b07b;
  box-shadow: inset 0 2px #b88757;
}
.profile-wardrobe,
.profile-colors,
.profile-tags {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.profile-colors h3 {
  margin: 0 0 7px;
  font: 21px var(--ui-font-display);
}
.profile-colors .ui-note {
  margin: 5px 0 9px;
  padding: 7px 9px;
  font-size: 11px;
  line-height: 1.4;
  background: #251f27;
  border-color: #685048;
  color: #d5c2b1;
}
.profile-tags > h3 {
  margin: 0 0 8px;
  color: #eed3a0;
  font: 22px/1 var(--ui-font-display);
}
.profile-tags > .ui-note {
  margin: 0 0 14px;
  color: #d5c2b1;
  font-size: 12px;
  line-height: 1.4;
}
.profile-tag-editor {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.profile-tag-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 10px;
  max-width: 100%;
  align-items: start;
}
.profile-tag-card {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.profile-tag-card:focus-visible {
  outline: 2px solid #ffe3a1;
  outline-offset: 3px;
}
.profile-tag-option[aria-disabled="true"] {
  cursor: default;
  border-style: dashed;
}
.profile-tag-option[aria-disabled="true"] .profile-tag-option-art {
  opacity: 0.55;
}
.profile-tag-locked {
  color: #d5c2b1;
  font-size: 10px;
}
.profile-tag-requirement {
  margin: 0;
  color: #d5c2b1;
  font-size: 11px;
  line-height: 1.4;
}
.profile-tag-buy {
  width: 100%;
  white-space: normal;
  min-height: 34px;
  padding: 5px 8px;
  font-size: 11px;
}
.profile-tag-option {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 9px;
  min-width: 0;
  min-height: 84px;
  padding: 12px 8px 9px;
  border: 1px solid #77604f;
  border-radius: 2px;
  background: #251f27;
  box-shadow:
    inset 0 2px #45323b,
    0 2px #17151b;
  color: #d5c2b1;
  cursor: pointer;
  font: 12px var(--ui-font-body);
}
.profile-tag-option:hover:not(:disabled) {
  border-color: #c8a476;
  background: #382a32;
}
.profile-tag-option:focus-visible {
  outline: 2px solid #ffe3a1;
  outline-offset: 3px;
}
.profile-tag-option[aria-checked="true"] {
  border-color: #d2b176;
  background: #49342f;
  box-shadow:
    inset 0 0 0 1px #a17b4b,
    0 2px #17151b;
}
.profile-tag-option:disabled {
  cursor: wait;
  opacity: 0.65;
}
.profile-tag-option-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}
.profile-tag-option .trainer-tag {
  --trainer-tag-scale: 2;
}
.profile-tag-none {
  color: #d5c2b1;
  font-size: 11px;
}
.profile-tag-selected {
  display: flex;
  align-items: center;
  gap: 5px;
  visibility: hidden;
  color: #ffe3a1;
  font-size: 10px;
}
.profile-tag-selected::before {
  content: "✓";
  color: #211e28;
  background: #d2b176;
  font: 700 10px/12px var(--ui-font-body);
  width: 12px;
  height: 12px;
  text-align: center;
}
.profile-tag-option[aria-checked="true"] .profile-tag-selected {
  visibility: visible;
}
.profile-tag-editor .ui-button {
  min-height: 34px;
  padding: 5px 12px;
  border-color: #ac8154;
  background: #765038;
  color: #fff0ce;
  font-size: 12px;
}
.profile-tag-editor [role="status"] {
  flex-basis: 100%;
  color: #d5c2b1;
  font-size: 11px;
}
.profile-tag-editor [role="status"]:empty {
  display: none;
}
.profile-tag-preview {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  min-width: 0;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #77604f;
  background: #211e28;
  color: #eadacb;
}
.profile-tag-preview > strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font: 22px/1.1 var(--ui-font-display);
}
.profile-tag-preview > span:empty {
  display: none;
}
.profile-outfit-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 10px;
  margin-bottom: 8px;
  align-items: end;
}
.profile-outfit-search {
  display: grid;
  gap: 3px;
  color: #d2beb0;
  font-size: 10px;
}
.profile-outfit-search input {
  width: 100%;
  min-width: 0;
  min-height: 31px;
  padding: 6px 10px;
  border: 1px solid #8c6e55;
  border-radius: 0;
  background: #211b23;
  color: #fff0d0;
  font: 12px var(--ui-font-body);
}
.profile-ownership-filters,
.profile-genders {
  display: flex;
  gap: 4px;
}
.profile-ownership-filters {
  grid-column: 1;
}
.profile-genders {
  grid-column: 2;
  grid-row: 1/3;
  align-self: stretch;
  align-items: end;
}
.profile-ownership-filters > button,
.profile-genders > button {
  min-width: 0;
  min-height: 29px;
  flex: 1;
  padding: 4px 8px;
  border: 1px solid #77604f;
  border-radius: 0;
  background: #43323a;
  color: #dac6b5;
  font: 11px var(--ui-font-body);
  cursor: pointer;
}
.profile-ownership-filters > [aria-pressed="true"],
.profile-genders > [aria-pressed="true"] {
  background: #765038;
  color: #fff0ce;
  border-color: #d3ae73;
  box-shadow: inset 0 2px #ac8154;
}
.profile-outfits {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  align-content: start;
  min-height: 100px;
  max-height: clamp(240px, 42dvh, 520px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 3px;
  scroll-padding: 3px;
  scrollbar-gutter: stable;
  scrollbar-color: #a17b58 #211e28;
}
.profile-outfits:focus-visible {
  outline: 2px solid #f5cb80;
  outline-offset: -2px;
}
.profile-variant {
  display: grid;
  grid-template-rows: 55px auto;
  justify-items: center;
  align-content: start;
  width: 100%;
  min-width: 0;
  min-height: 91px;
  position: relative;
  padding: 4px 6px 6px;
  gap: 2px;
  border: 2px solid #6c5349;
  border-radius: 0;
  background: #211e28;
  box-shadow: inset 1px 1px #51414d;
  color: #eadacb;
  text-align: center;
  font: 11px/1.2 var(--ui-font-body);
  cursor: pointer;
}
.profile-variant canvas {
  width: 56px;
  height: 56px;
  max-width: 100%;
  image-rendering: pixelated;
}
.profile-variant-name {
  width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}
.profile-variant .ui-chip {
  font-size: 9px;
  padding: 1px 4px;
  min-height: 0;
}
.profile-variant[aria-pressed="true"] {
  border-color: #d5b87f;
  background: #493b3d;
  box-shadow: inset 0 0 0 1px #8e724f;
}
.profile-variant:hover {
  border-color: #d5b87f;
}
.profile-outfit-state {
  position: absolute;
  left: 4px;
  right: auto;
  max-width: calc(100% - 42px);
  top: 4px;
  z-index: 1;
  background: #ead4a6;
  color: #442f2c;
}
.profile-variant--locked {
  cursor: default;
}
.profile-variant--locked > canvas {
  opacity: 0.6;
}
.profile-variant--locked .profile-outfit-buy {
  position: static;
  margin-top: 3px;
  padding: 4px 6px;
  min-height: 27px;
  width: 100%;
  white-space: normal;
  font-size: 10px;
}
.profile-list-status {
  margin: 7px 0 0;
  color: #d2beb0;
  font: 11px var(--ui-font-body);
}
.profile-empty {
  text-align: center;
  padding: 20px 12px;
  color: #d2beb0;
}
.profile-color-parts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}
.profile-color-part {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 6px;
  border: 1px solid #8c6e55;
  border-radius: 0;
  background: #43323a;
  color: #eadacb;
  font: 11px var(--ui-font-body);
  cursor: pointer;
}
.profile-color-part[aria-pressed="true"] {
  border-color: #d5b87f;
  box-shadow: inset 0 0 0 1px #ac8154;
  background: #765038;
}
.profile-part-swatch {
  flex: none;
  width: 18px;
  height: 18px;
  border: 1px solid #ffffff88;
}
.profile-color-palette {
  display: grid;
  grid-template-columns: repeat(19, minmax(0, 24px));
  justify-content: center;
  gap: 3px;
  padding: 3px;
  max-width: 100%;
}
.profile-color-original {
  grid-column: 1/-1;
  min-height: 27px;
  border: 1px solid #8c6e55;
  background: #43323a;
  color: #eadacb;
  cursor: pointer;
}
.profile-color-swatch {
  width: 100%;
  aspect-ratio: 1;
  min-width: 0;
  min-height: 0;
  border: 1px solid #ffffff33;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
}
.profile-color-swatch[aria-pressed="true"] {
  outline: 2px solid #fff;
  outline-offset: 1px;
  z-index: 1;
}
.profile-color-original[aria-pressed="true"] {
  border-color: #fff;
}
.profile-reset-colors {
  display: block;
  margin: 8px auto 0;
  min-height: 30px;
  font-size: 11px;
}
.profile-actions {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 9px 14px;
  border-top: 2px solid #af8954;
  background: #36272c;
}
.profile-status {
  margin: 0;
  flex: 1;
  min-width: 0;
  color: #dbc2a3;
  font-size: 11px;
}
.profile-actions > button {
  min-height: 36px;
  font-size: 12px;
}
.profile-shell :is(button, input, select):focus-visible {
  outline: 2px solid #f5cb80;
  outline-offset: 2px;
}
.profile-shell button:disabled {
  cursor: default;
}
@container profile-body (min-width: 840px) {
  .profile-workspace {
    grid-template-columns: minmax(320px, 38%) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    height: 100%;
    align-items: stretch;
    overflow: hidden;
  }
  .profile-stage {
    position: sticky;
    top: 0;
    align-self: start;
    max-height: 100%;
    overflow-y: auto;
    border-right: 2px solid #211a21;
  }
  .profile-editor {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 12px;
    overflow: hidden;
  }
  .profile-tabpanel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }
  .profile-editor-panel {
    flex: 1;
    min-height: 0;
    overflow: auto;
  }
  .profile-wardrobe {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  :is(
    .profile-wardrobe-title,
    .profile-editor-tabs,
    .profile-outfit-tools,
    .profile-list-status,
    .profile-empty
  ) {
    flex: none;
  }
  .profile-outfits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    flex: 1;
    min-height: 0;
    max-height: none;
  }
  .profile-color-parts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-outfit-tools {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .profile-genders {
    grid-column: 1;
    grid-row: auto;
  }
}
@container profile-body (min-width: 621px) and (max-width: 839px) {
  .profile-outfits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .profile-drawer .drawer-head {
    padding: 8px 10px;
  }
  .profile-drawer .drawer-head h2 {
    font-size: 27px;
  }
  .profile-editor {
    padding: 9px;
  }
  .profile-wardrobe-title {
    font-size: 23px;
  }
  .profile-wardrobe-title span {
    font-size: 8px;
  }
  .profile-outfit-tools {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }
  .profile-genders {
    grid-column: 1;
    grid-row: auto;
  }
  .profile-outfits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
    max-height: clamp(220px, 42dvh, 360px);
    gap: 5px;
  }
  .profile-variant {
    grid-template-rows: 48px auto;
    min-height: 81px;
    font-size: 10px;
    padding: 3px;
  }
  .profile-variant canvas {
    width: 48px;
    height: 48px;
  }
  .profile-variant .ui-chip {
    font-size: 8px;
  }
  .profile-ownership-filters > button,
  .profile-genders > button {
    min-height: 31px;
  }
  .profile-color-parts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-color-palette {
    grid-template-columns: repeat(19, minmax(0, 1fr));
    gap: 2px;
  }
  .profile-actions {
    flex-wrap: wrap;
    gap: 5px;
    padding: 7px 9px;
  }
  .profile-status {
    flex-basis: 100%;
    font-size: 10px;
  }
  .profile-status:empty {
    display: none;
  }
  .profile-actions > button {
    flex: 1;
    min-height: 38px;
    font-size: 11px;
  }
}
.profile-live-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #376a51;
  background: #102b22;
}
.profile-live-tag p {
  margin: 0;
  color: #d6eddf;
  font-size: 13px;
  line-height: 1.4;
}
