:root {
  --bg: #f7f8fa;
  --surface: #fff;
  --ink: #253b38;
  --muted: #84918e;
  --green: #347b65;
  --green-dark: #28634f;
  --line: #e6ebe8;
  --soft: #edf5f0;
  --radius: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #76b59b;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  padding: 33px 20px 0;
  background: white;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -1.1px;
  margin: 0 9px 45px;
}
.brand > span:not(.brandmark) {
  color: var(--green);
}
.brand i {
  font-style: normal;
  font-size: 20px;
  color: #9abc84;
  padding-left: 2px;
}
.brandmark {
  background: var(--green);
  color: white;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  margin-right: 9px;
  transform: rotate(-15deg);
}
.brandmark svg {
  width: 25px;
  height: 25px;
}
.workspace-label {
  font-size: 9px;
  font-weight: 700;
  color: #9aa5a1;
  letter-spacing: 1.8px;
  margin: 0 13px 15px;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.sidebar nav > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 8px;
  color: #7d8986;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.sidebar nav > a:hover {
  background: #f5f8f6;
}
.sidebar nav > a.active {
  color: #347b65;
  background: #eaf3ec;
  font-weight: 650;
}
.nav-small {
  font-size: 9px;
  margin-left: auto;
  color: #56866b;
  background: #dcebdd;
  padding: 2px 5px;
  border-radius: 4px;
}
.count {
  margin-left: auto;
  font-size: 10px;
  background: #f0f2f1;
  padding: 1px 6px;
  border-radius: 4px;
}
.sidebar-divider {
  height: 1px;
  background: var(--line);
  margin: 27px 12px;
}
.sidebar-bottom {
  margin-top: auto;
}
.creative-tip {
  background: linear-gradient(120deg, #f1f5ed, #f5f7f0);
  border: 1px solid #e8eee1;
  border-radius: 11px;
  padding: 16px 13px;
  margin: 40px 0 22px;
}
.creative-tip > span {
  font-size: 11px;
  font-weight: 650;
  color: #65795b;
}
.creative-tip p {
  font-size: 11px;
  line-height: 1.8;
  color: #8e9b84;
  margin: 9px 0 14px;
}
.creative-tip a {
  font-size: 10px;
  font-weight: 650;
  color: #5d7653;
  display: flex;
  justify-content: space-between;
}
.profile {
  display: flex;
  gap: 9px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 21px 0;
}
.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  background: #f1e6d5;
  color: #968265;
  font-weight: 650;
  font-size: 12px;
  flex-shrink: 0;
}
.profile strong {
  font-size: 11px;
  font-weight: 600;
}
.profile small {
  display: block;
  font-size: 8px;
  color: #8e9993;
  margin-top: 3px;
}
.profile small i,
.local-pill i,
.source-label i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7caa86;
  margin-right: 4px;
}
.profile > a {
  margin-left: auto;
}
.shell {
  margin-left: 238px;
}
.topbar {
  height: 78px;
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--line);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}
.breadcrumb {
  color: #9da6a3;
}
.slash {
  color: #c8ceca;
  margin: 0 16px;
}
.topbar strong {
  font-weight: 550;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.local-pill {
  background: #f2f6f2;
  color: #7f927f;
  font-size: 10px;
  border: 1px solid #e6ede5;
  padding: 5px 9px;
  border-radius: 20px;
  white-space: nowrap;
}
.top-create {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 550;
}
.top-create svg {
  width: 15px;
}
.avatar.small {
  height: 29px;
  width: 29px;
  font-size: 10px;
}
main {
  max-width: 1550px;
  margin: auto;
  padding: 35px 40px 0;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 9px;
  color: #81978a;
  letter-spacing: 1.7px;
  font-weight: 650;
  margin-bottom: 8px;
}
h1 {
  font-size: 31px;
  line-height: 1.25;
  letter-spacing: -1.2px;
  margin: 0 0 10px;
  font-weight: 650;
}
h1 > span {
  color: #71a788;
}
.page-heading p {
  color: #8c9793;
  font-size: 12px;
  margin: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  min-height: 38px;
}
.button svg {
  width: 16px;
  height: 16px;
}
.secondary {
  background: white;
  border-color: #e0e6e2;
  color: #65766e;
}
.secondary:hover {
  border-color: #8aa58e;
  background: #fafcf9;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary:hover {
  background: var(--green-dark);
}
.button-count {
  font-size: 9px;
  background: #f0f4ef;
  padding: 1px 5px;
  border-radius: 3px;
}
.hero {
  height: 245px;
  border: 1px solid #e0e9db;
  border-radius: 14px;
  background: linear-gradient(110deg, #edf3e5 0%, #edf4e6 39%, #e8f2e7 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  margin-bottom: 33px;
}
.hero-copy {
  padding: 27px 32px;
  z-index: 2;
}
.hero-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 8px;
  letter-spacing: 1.3px;
  font-weight: 650;
  color: #6a8462;
}
.hero-label svg {
  width: 13px;
  height: 13px;
}
.hero h2 {
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.8px;
  font-weight: 600;
  margin: 11px 0;
  color: #3f614a;
}
.hero p {
  font-size: 11px;
  color: #81937c;
  line-height: 1.8;
  margin: 0 0 16px;
}
.hero-copy > a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 650;
  color: #55774b;
}
.hero-copy > a svg {
  width: 15px;
}
.hero-art {
  position: relative;
  width: 53%;
  height: 100%;
  isolation: isolate;
}
.hero-art img {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 10px 10px #53795c18);
}
.hero-bulba {
  width: 205px;
  height: 205px;
  left: 25%;
  top: 39px;
  z-index: 3;
  transform: rotate(-7deg);
}
.hero-charm {
  width: 155px;
  height: 155px;
  left: 1%;
  top: 38px;
  transform: rotate(-12deg);
}
.hero-squirt {
  width: 165px;
  height: 165px;
  right: 0;
  top: 48px;
  transform: rotate(8deg);
}
.orbit {
  border: 1px solid #d8e6d4;
  border-radius: 50%;
  position: absolute;
  width: 390px;
  height: 390px;
  left: 10%;
  top: -62px;
  z-index: -1;
}
.orbit.two {
  width: 290px;
  height: 290px;
  left: 20%;
  top: -11px;
  background: #e0ecdc55;
}
.spark {
  position: absolute;
  color: #a9bd98;
  font-size: 23px;
}
.s1 {
  top: 27px;
  left: 49%;
}
.s2 {
  bottom: 37px;
  right: 12%;
  font-size: 35px;
}
.floating-note {
  position: absolute;
  bottom: 18px;
  right: 9%;
  padding: 7px 11px;
  background: #ffffffb8;
  backdrop-filter: blur(4px);
  border: 1px solid white;
  border-radius: 7px;
  font-size: 8px;
  color: #7c8e73;
  z-index: 5;
  transform: rotate(-5deg);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.section-heading h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.45px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 5px;
}
.soft-badge {
  display: inline-block;
  background: #ecf1ec;
  color: #859680;
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 500;
  letter-spacing: 0;
}
.section-heading p {
  font-size: 11px;
  color: #929c97;
  margin: 0;
}
.source-label {
  font-size: 9px;
  color: #9aa49d;
}
.filters {
  display: flex;
  gap: 10px;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  align-items: center;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  background: #f8faf9;
  border: 1px solid #e7ece8;
  border-radius: 6px;
  height: 39px;
  flex: 1;
  min-width: 120px;
}
.search-box svg {
  width: 16px;
  color: #a0aea5;
}
.search-box input {
  background: transparent;
  border: 0;
  outline: none;
  width: 100%;
  min-width: 0;
  font-size: 11px;
  color: #50655b;
}
.search-box input::placeholder {
  color: #9ca89f;
}
.search-box kbd {
  color: #b4bdb6;
  border: 1px solid #e5e9e3;
  border-radius: 3px;
  padding: 0 5px;
  font-size: 10px;
}
select {
  border: 1px solid #e4e9e5;
  border-radius: 6px;
  background: #fff;
  padding: 10px 28px 10px 11px;
  font-size: 11px;
  color: #7d8a81;
  max-width: 100%;
}
.reset-filters {
  border: 1px solid #e4e9e5;
  background: white;
  border-radius: 6px;
  width: 37px;
  height: 38px;
  font-size: 18px;
  color: #8b9d8e;
}
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #8e9a92;
  margin: 19px 0 17px;
  gap: 12px;
}
.results-toolbar strong {
  font-weight: 600;
  color: #65796a;
}
.catalog-note {
  color: #a5aea7;
  margin-left: 4px;
  font-size: 9px;
}
.results-toolbar > div {
  display: flex;
  align-items: center;
  gap: 14px;
}
.results-toolbar select {
  border: 0;
  background: transparent;
  padding: 4px 4px 4px 6px;
  color: #617565;
  font-size: 10px;
}
.view-switch {
  display: flex;
  background: white;
  border: 1px solid #e3e9e3;
  padding: 3px;
  border-radius: 5px;
  gap: 3px;
}
.view-switch button {
  display: grid;
  place-items: center;
  width: 27px;
  height: 25px;
  border: 0;
  background: transparent;
  color: #a2afa5;
  border-radius: 3px;
}
.view-switch button.selected {
  background: #eef4ec;
  color: #6e906a;
}
.view-switch svg {
  width: 14px;
  height: 14px;
}
.pokemon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  align-items: start;
}
.pokemon-card {
  background: white;
  border: 1px solid #e4e9e5;
  border-radius: 11px;
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.pokemon-card:hover {
  box-shadow: 0 5px 18px #385d4010;
  transform: translateY(-2px);
}
.card-art {
  height: 154px;
  background: linear-gradient(
    110deg,
    var(--tint, #eff3eb),
    var(--tint2, #f5f7f1)
  );
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.card-art img {
  position: relative;
  width: 126px;
  height: 126px;
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(0 5px 3px #293d2910);
  transition: transform 0.25s;
}
.pokemon-card:hover .card-art img {
  transform: scale(1.06);
}
.dex-number {
  position: absolute;
  left: 15px;
  top: 13px;
  font-size: 10px;
  letter-spacing: 1px;
  color: #7d938188;
  font-weight: 600;
}
.card-gen {
  position: absolute;
  right: 13px;
  top: 14px;
  font-size: 7px;
  letter-spacing: 1.5px;
  color: #84958280;
  font-weight: 600;
}
.art-ring {
  position: absolute;
  width: 112px;
  height: 112px;
  border: 1px solid #ffffff60;
  border-radius: 50%;
  background: #ffffff25;
}
.art-ring:after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid #ffffff65;
  border-radius: 50%;
}
.card-body {
  padding: 13px 15px 0;
}
.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.card-title h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.25px;
}
.add-button {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid #e2e9e2;
  border-radius: 6px;
  color: #8ba286;
  background: #fafcf9;
}
.add-button:hover {
  background: #deecda;
  color: #427942;
}
.add-button svg {
  width: 15px;
  height: 15px;
}
.type-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.type-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 4px;
  color: var(--type-ink, #778470);
  background: var(--type-bg, #edf0e9);
  font-weight: 550;
}
.type-dot {
  height: 5px;
  width: 5px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.7;
}
.grass {
  --type-ink: #638952;
  --type-bg: #eef5e5;
}
.poison {
  --type-ink: #9c71a3;
  --type-bg: #f3eaf5;
}
.fire {
  --type-ink: #cf8a58;
  --type-bg: #fdf0e2;
}
.water {
  --type-ink: #6394bc;
  --type-bg: #eaf3fc;
}
.flying {
  --type-ink: #8393b9;
  --type-bg: #eef0f9;
}
.bug {
  --type-ink: #929f49;
  --type-bg: #f1f4df;
}
.normal {
  --type-ink: #959885;
  --type-bg: #f2f2e9;
}
.electric {
  --type-ink: #a69435;
  --type-bg: #fcf6d9;
}
.ground {
  --type-ink: #ac9066;
  --type-bg: #f4edde;
}
.fairy {
  --type-ink: #b77e9b;
  --type-bg: #f8eaf1;
}
.fighting {
  --type-ink: #b17469;
  --type-bg: #f8eae7;
}
.psychic {
  --type-ink: #bf7894;
  --type-bg: #fdeaf1;
}
.rock {
  --type-ink: #9e956b;
  --type-bg: #f2f0e1;
}
.steel {
  --type-ink: #7e999e;
  --type-bg: #eaf1f2;
}
.ice {
  --type-ink: #619f9f;
  --type-bg: #e6f6f5;
}
.ghost {
  --type-ink: #8b7ba9;
  --type-bg: #f0eafa;
}
.dragon {
  --type-ink: #8276af;
  --type-bg: #eeeafb;
}
.dark {
  --type-ink: #8a817b;
  --type-bg: #eeeae7;
}
.type-grass {
  --tint: #edf4e6;
  --tint2: #f2f7ed;
}
.type-fire {
  --tint: #f9eee4;
  --tint2: #fcf5ec;
}
.type-water {
  --tint: #e9f1f7;
  --tint2: #f0f5fa;
}
.type-bug {
  --tint: #f0f3e2;
  --tint2: #f6f8ed;
}
.type-poison,
.type-ghost {
  --tint: #f0eaf5;
  --tint2: #f7f1f8;
}
.type-electric {
  --tint: #f9f4de;
  --tint2: #fdf9ec;
}
.type-psychic,
.type-fairy {
  --tint: #f8e9ee;
  --tint2: #fcf3f5;
}
.type-ground,
.type-rock {
  --tint: #f3ecdf;
  --tint2: #faf5eb;
}
.type-normal {
  --tint: #f0eee7;
  --tint2: #f7f6f1;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f0f3ee;
  margin-top: 15px;
  padding: 10px 0;
  font-size: 8px;
  color: #a0aaa1;
  gap: 5px;
}
.expand {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: none;
  font-size: 8px;
  padding: 0;
  color: #7e927b;
  min-height: 24px;
}
.expand svg {
  width: 11px;
  height: 11px;
}
.expand[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.form-pill {
  position: absolute;
  bottom: 8px;
  right: 9px;
  font-size: 7px;
  z-index: 2;
  padding: 3px 6px;
  border-radius: 10px;
  background: #ffffffc9;
  color: #7a8a78;
}
.pokemon-detail {
  padding: 15px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.pokemon-detail p {
  font-size: 10px;
  color: #8a978b;
  line-height: 1.7;
}
.pokemon-detail h4 {
  margin: 16px 0 8px;
  font-size: 11px;
  font-weight: 600;
}
.bio {
  display: flex;
  gap: 20px;
  font-size: 9px;
  color: #97a18f;
  margin: 14px 0;
}
.bio strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
  color: #61765b;
  margin-top: 3px;
}
.stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  margin: 7px 0;
  color: #8b9986;
}
.stat > span {
  width: 72px;
}
.stat b {
  font-size: 10px;
  width: 24px;
  color: #6a7d62;
  font-weight: 550;
}
.stat > div {
  flex: 1;
  height: 4px;
  background: #f0f4ed;
  border-radius: 4px;
}
.stat i {
  display: block;
  height: 100%;
  background: #a7c49c;
  border-radius: 4px;
}
.ability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ability-list span {
  font-size: 9px;
  padding: 4px 6px;
  background: #f5f7f3;
  border-radius: 4px;
  color: #819276;
}
.detail-create {
  margin-top: 15px;
  width: 100%;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 25px 0;
  color: #9aa494;
  font-size: 10px;
}
.pagination > div {
  display: flex;
  gap: 8px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 24px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #a6afa6;
  margin-top: 28px;
}
.version {
  background: #eef2eb;
  margin-left: 7px;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 8px;
}
.empty {
  text-align: center;
  border: 1px dashed #d9e5d6;
  border-radius: 12px;
  padding: 65px 25px;
  background: #ffffff80;
  margin: 20px 0;
}
.empty h2 {
  font-size: 21px;
  letter-spacing: -0.6px;
  font-weight: 550;
}
.empty p {
  color: #8f9a8a;
  font-size: 12px;
  margin-bottom: 24px;
}
.empty-icon {
  font-size: 40px;
  color: #97b18b;
}
.pokemon-grid.list-view {
  grid-template-columns: 1fr;
}
.list-view .pokemon-card {
  display: grid;
  grid-template-columns: 115px 1fr;
}
.list-view .card-art {
  height: 110px;
}
.list-view .card-art img {
  width: 83px;
  height: 83px;
}
.list-view .card-gen {
  display: none;
}
.list-view .dex-number {
  left: 5px;
  top: 4px;
  font-size: 7px;
}
.list-view .pokemon-detail {
  grid-column: 1/-1;
}
.list-view .card-body {
  padding: 12px 22px 0;
}
.list-view .card-bottom {
  margin-top: 6px;
  padding: 4px 0;
}
.list-view .form-pill {
  font-size: 6px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #2f5343;
  color: white;
  border: 1px solid #ffffff2b;
  padding: 13px 25px;
  border-radius: 10px;
  z-index: 100;
  box-shadow: 0 8px 30px #1c31232b;
  max-width: 90vw;
  font-size: 12px;
}
.collection-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 25px 0;
}
.collection-stats > div {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.collection-stats strong {
  font-size: 30px;
  color: #699269;
  font-weight: 500;
}
.collection-stats span {
  font-size: 11px;
  color: #8a9786;
}
.collection-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
}
.character-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.character-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}
.character-art {
  height: 170px;
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(
    120deg,
    var(--tint, #eef4e8),
    var(--tint2, #f6f8f1)
  );
}
.character-art img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}
.favorite {
  position: absolute;
  right: 13px;
  top: 13px;
  display: grid;
  place-items: center;
  border: 0;
  background: #ffffff90;
  border-radius: 50%;
  padding: 7px;
  color: #94a58f;
}
.favorite svg {
  width: 17px;
  height: 17px;
}
.favorite.is-favorite {
  color: #c6858f;
}
.favorite.is-favorite svg {
  fill: #ecc8ce;
}
.status-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: #ffffffcc;
  color: #89947f;
  font-size: 8px;
  border-radius: 4px;
  padding: 3px 7px;
}
.character-body {
  padding: 18px;
}
.character-body h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.5px;
  font-weight: 550;
}
.character-body p {
  font-size: 11px;
  color: #90a08b;
  margin: 5px 0 12px;
}
.character-body p span {
  color: #a5afa0;
}
.creative-badge {
  font-size: 8px;
  color: #9a90a4;
  background: #f5f1f7;
  padding: 4px 7px;
  border-radius: 4px;
}
.character-notes {
  height: 34px;
  overflow: hidden;
  margin-top: 16px !important;
  font-size: 10px !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 20px;
  font-size: 8px;
  color: #8d9f85;
}
.character-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 12px;
  font-size: 9px;
}
.character-actions a {
  font-weight: 600;
  color: #64825b;
  margin-right: auto;
}
.character-actions button {
  font-size: 9px;
  border: 0;
  background: none;
  color: #a0ab99;
  padding: 4px 0;
}
.character-actions .delete {
  font-size: 20px;
  color: #b99e96;
}
.back-link {
  font-size: 10px;
  color: #8a9d83;
  display: block;
  margin-bottom: 20px;
}
.editor-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 25px;
  align-items: start;
}
.reference-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  position: sticky;
  top: 20px;
}
.reference-art {
  height: 225px;
  background: linear-gradient(120deg, var(--tint), var(--tint2));
  display: grid;
  place-items: center;
  position: relative;
}
.reference-art img {
  height: 190px;
  width: 190px;
  object-fit: contain;
}
.reference-art > span {
  position: absolute;
  top: 17px;
  left: 20px;
  font-size: 11px;
  color: #90a080;
}
.reference-copy {
  padding: 23px;
}
.reference-copy h2 {
  margin: 4px 0;
  font-size: 24px;
  font-weight: 550;
  letter-spacing: -0.7px;
}
.reference-copy p {
  color: #92a08c;
  font-size: 11px;
}
.reference-copy .description {
  font-size: 11px;
  line-height: 1.8;
  margin-top: 20px;
}
.reference-copy h4 {
  font-size: 12px;
  font-weight: 550;
  margin-top: 25px;
}
.tiny {
  font-size: 9px !important;
  color: #9da895 !important;
  line-height: 1.8;
  margin-top: 20px;
}
.form-panel {
  padding: 25px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 19px;
}
.form-panel h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 550;
  letter-spacing: -0.4px;
}
.form-panel > p {
  font-size: 11px;
  color: #97a18f;
  line-height: 1.8;
  margin: 4px 0 22px;
}
.field {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 11px;
  font-weight: 550;
  color: #6c8061;
}
.field label span {
  color: #9caf90;
}
.field input:not([type="checkbox"]),
.field textarea,
.field select {
  border: 1px solid #dfe7d8;
  background: #fcfdfa;
  border-radius: 6px;
  padding: 11px 12px;
  color: #6f8264;
  font-size: 12px;
  width: 100%;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #acb4a3;
}
.field small {
  font-size: 9px;
  color: #9da895;
}
.field .field-error {
  color: #b46f64;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.panel-heading h2 {
  margin: 0;
}
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.label-row select {
  width: auto;
  font-size: 9px;
  padding: 5px 8px;
  background: #f5f8f0;
  max-width: 65%;
}
.type-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.type-options label {
  cursor: pointer;
  position: relative;
}
.type-options input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.type-options input:checked + span {
  outline: 2px solid #7fa575;
  outline-offset: 1px;
}
.type-options input:focus-visible + span {
  outline: 3px solid #347b65;
}
.type-options .type-tag {
  padding: 7px 9px;
  font-size: 10px;
}
.save-bar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 15px;
  padding: 0 0 20px;
}
.save-bar .field {
  margin-top: 0;
}
.save-bar .button {
  min-height: 42px;
}
.creative-notice {
  margin-top: 20px;
  padding: 12px;
  border-radius: 7px;
  color: #9d8cad;
  background: #f7f2fa;
  font-size: 10px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.settings-grid .form-panel {
  margin: 0;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}
.setting-row strong {
  font-size: 11px;
  font-weight: 550;
}
.setting-row p {
  font-size: 10px;
  color: #98a58f;
  margin-bottom: 0;
}
.settings-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.file-label {
  cursor: pointer;
}
.teams-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}
.team-members {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 22px;
}
.team-members > a,
.empty-slot {
  display: flex;
  flex-direction: column;
  border: 1px solid #e4eadf;
  border-radius: 8px;
  padding: 15px;
  min-height: 100px;
  font-size: 10px;
}
.team-members strong {
  font-size: 13px;
  font-weight: 550;
  margin: 7px 0 3px;
}
.slot-number {
  font-size: 9px;
  color: #a7b39b;
}
.team-members a > span:last-child {
  font-size: 9px;
  color: #97a38d;
}
.empty-slot {
  border-style: dashed;
  color: #b9c2b0;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: #fcfdfa;
}
.empty-slot > span {
  font-size: 9px;
}
.member-check {
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}
.member-check small {
  margin-left: auto;
}
.member-check input {
  accent-color: #6c925c;
}
.text-button {
  border: 0;
  background: none;
  font-size: 10px;
}
.delete {
  color: #ba9182;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 25px 80px #20312330;
  padding: 30px;
  max-width: 90vw;
}
dialog::backdrop {
  background: #25392e55;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-weight: 550;
  font-size: 21px;
}
dialog p {
  font-size: 12px;
  color: #8e9c85;
}
.dialog-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
  margin-top: 25px;
}
.danger {
  color: white;
  background: #b87c6d;
}
#form-error {
  color: #b46f64;
  font-size: 12px;
}
.loading {
  opacity: 0.5;
  pointer-events: none;
}
.reduce-motion * {
  transition: none !important;
  animation: none !important;
}
@media (min-width: 1550px) {
  .pokemon-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hero-art {
    width: 48%;
  }
  .hero-art .hero-squirt {
    right: 10%;
  }
  .hero-bulba {
    left: 28%;
  }
  .hero-charm {
    left: 7%;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
    padding: 28px 13px 0;
  }
  .shell {
    margin-left: 205px;
  }
  main {
    padding: 28px 26px 0;
  }
  .topbar {
    padding: 0 26px;
  }
  .hero-copy {
    padding-left: 25px;
  }
  .hero-art {
    width: 48%;
  }
  .hero-bulba {
    width: 170px;
    height: 170px;
    left: 17%;
    top: 65px;
  }
  .hero-charm {
    width: 125px;
    height: 125px;
    left: -10%;
    top: 51px;
  }
  .hero-squirt {
    width: 135px;
    height: 135px;
    right: -7%;
    top: 50px;
  }
  .filters {
    gap: 7px;
    padding: 11px;
  }
  .filters select {
    font-size: 10px;
    padding: 10px 18px 10px 8px;
  }
  .search-box input {
    font-size: 10px;
  }
  .catalog-note {
    display: none;
  }
  .editor-layout {
    grid-template-columns: 240px 1fr;
    gap: 18px;
  }
  .form-panel {
    padding: 20px;
  }
  .teams-layout {
    grid-template-columns: 1fr 260px;
  }
  .brand {
    font-size: 23px;
  }
  .nav-small {
    display: none;
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 75px;
    padding: 22px 10px;
  }
  .brand {
    font-size: 0;
    margin: 0 0 30px;
    justify-content: center;
  }
  .brandmark {
    margin: 0;
  }
  .brand i,
  .brand > span:not(.brandmark) {
    display: none;
  }
  .sidebar nav > a {
    font-size: 0;
    justify-content: center;
    padding: 13px 0;
  }
  .sidebar nav > a svg {
    width: 22px;
    height: 22px;
  }
  .workspace-label,
  .sidebar-bottom,
  .count,
  .nav-small {
    display: none;
  }
  .sidebar-divider {
    margin: 22px 7px;
  }
  .shell {
    margin-left: 75px;
  }
  .hero-art {
    width: 47%;
  }
  .hero h2 {
    font-size: 26px;
  }
  .hero-squirt {
    right: -13%;
  }
  .topbar {
    height: 64px;
  }
  .editor-layout {
    grid-template-columns: 220px 1fr;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .character-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .teams-layout {
    grid-template-columns: 1fr 250px;
  }
}
@media (max-width: 690px) {
  .sidebar {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    height: 63px;
    border-right: 0;
    border-top: 1px solid var(--line);
    padding: 6px 12px;
    background: white;
  }
  .sidebar .brand,
  .sidebar-divider,
  .sidebar nav:nth-of-type(2) {
    display: none;
  }
  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
  }
  .sidebar nav > a {
    font-size: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 5px;
  }
  .sidebar nav > a svg {
    width: 19px;
    height: 19px;
  }
  .shell {
    margin-left: 0;
    padding-bottom: 62px;
  }
  .topbar {
    padding: 0 20px;
    height: 57px;
  }
  .top-actions {
    gap: 12px;
  }
  .local-pill {
    font-size: 8px;
  }
  .top-create {
    font-size: 0;
  }
  .top-create svg {
    width: 18px;
  }
  .topbar .avatar {
    display: none;
  }
  main {
    padding: 25px 18px 0;
  }
  .page-heading {
    align-items: start;
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 25px;
    letter-spacing: -0.9px;
  }
  .eyebrow {
    font-size: 7px;
    letter-spacing: 1.3px;
  }
  .page-heading p {
    font-size: 10px;
    max-width: 240px;
  }
  .page-heading > .button {
    font-size: 0;
    padding: 8px;
    min-height: 30px;
  }
  .page-heading > .button svg {
    width: 17px;
  }
  .page-heading .button-count {
    font-size: 9px;
  }
  .hero {
    height: 220px;
    margin-bottom: 27px;
  }
  .hero-copy {
    padding: 23px 20px;
  }
  .hero-label {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .hero h2 {
    font-size: 23px;
  }
  .hero p {
    font-size: 9px;
  }
  .hero-copy > a {
    font-size: 10px;
  }
  .hero-art {
    width: 41%;
  }
  .hero-bulba {
    width: 140px;
    height: 140px;
    left: -15%;
    top: 95px;
  }
  .hero-charm {
    width: 90px;
    height: 90px;
    top: 18px;
    left: -7%;
  }
  .hero-squirt {
    width: 85px;
    height: 85px;
    right: -8%;
    top: 45px;
  }
  .orbit {
    width: 230px;
    height: 230px;
    left: -60%;
    top: 0;
  }
  .orbit.two {
    width: 170px;
    height: 170px;
    top: 30px;
    left: -35%;
  }
  .floating-note {
    display: none;
  }
  .s1 {
    left: 40%;
    font-size: 15px;
  }
  .s2 {
    bottom: 18px;
    right: 0;
  }
  .section-heading h2 {
    font-size: 17px;
  }
  .section-heading p {
    font-size: 10px;
  }
  .source-label {
    font-size: 7px;
  }
  .filters {
    flex-wrap: wrap;
    padding: 10px;
    gap: 8px;
  }
  .filters .search-box {
    flex: 1 1 100%;
    height: 37px;
  }
  .filters select {
    flex: 1;
    min-width: 0;
    max-width: calc(33.333% - 8px);
    font-size: 9px;
  }
  .reset-filters {
    display: none;
  }
  .results-toolbar {
    font-size: 8px;
    gap: 6px;
  }
  .results-toolbar > div {
    gap: 6px;
  }
  .results-toolbar label {
    font-size: 0;
  }
  .results-toolbar select {
    font-size: 9px;
  }
  .pokemon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .card-art {
    height: 135px;
  }
  .card-art img {
    width: 110px;
    height: 110px;
  }
  .dex-number {
    font-size: 8px;
    left: 10px;
    top: 10px;
  }
  .card-gen {
    font-size: 6px;
    right: 9px;
    top: 11px;
  }
  .card-body {
    padding: 11px 11px 0;
  }
  .card-title h3 {
    font-size: 13px;
  }
  .add-button {
    width: 24px;
    height: 24px;
  }
  .type-tag {
    font-size: 7px;
    padding: 4px 6px;
  }
  .card-bottom {
    font-size: 7px;
    margin-top: 12px;
    padding: 8px 0;
  }
  .expand {
    font-size: 7px;
    gap: 2px;
  }
  .card-bottom > span {
    max-width: 70px;
  }
  .expand svg {
    width: 9px;
  }
  .form-pill {
    font-size: 6px;
  }
  .pagination {
    font-size: 9px;
  }
  .button {
    font-size: 10px;
  }
  .collection-stats {
    gap: 8px;
  }
  .collection-stats > div {
    padding: 14px 10px;
    flex-direction: column;
    gap: 4px;
    align-items: start;
  }
  .collection-stats strong {
    font-size: 25px;
  }
  .collection-stats span {
    font-size: 8px;
  }
  .collection-controls {
    flex-wrap: wrap;
    gap: 8px;
  }
  .collection-controls .search-box {
    flex: 1 1 100%;
  }
  .character-grid {
    gap: 12px;
  }
  .character-art {
    height: 145px;
  }
  .character-art img {
    height: 125px;
    width: 125px;
  }
  .character-body {
    padding: 13px;
  }
  .character-body h2 {
    font-size: 18px;
  }
  .character-actions {
    gap: 5px;
    font-size: 8px;
    flex-wrap: wrap;
  }
  .character-actions button {
    font-size: 8px;
  }
  .character-actions a {
    flex: 1 1 100%;
  }
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .reference-panel {
    position: static;
    display: grid;
    grid-template-columns: 120px 1fr;
  }
  .reference-art {
    height: 100%;
    min-height: 170px;
  }
  .reference-art img {
    width: 110px;
    height: 110px;
  }
  .reference-copy {
    padding: 17px;
  }
  .reference-copy h2 {
    font-size: 20px;
  }
  .reference-copy .description,
  .reference-copy h4,
  .reference-copy .stat,
  .reference-copy .tiny {
    display: none;
  }
  .reference-copy .bio {
    margin-bottom: 0;
  }
  .settings-grid,
  .teams-layout {
    grid-template-columns: 1fr;
  }
  .team-members {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-panel {
    padding: 20px;
  }
  .toast {
    bottom: 79px;
  }
  .form-panel h2 {
    font-size: 17px;
  }
  footer {
    font-size: 7px;
    gap: 12px;
  }
  .version {
    font-size: 7px;
  }
  .save-bar .button {
    font-size: 10px;
  }
  .save-bar select {
    font-size: 10px;
  }
  .settings-grid .form-panel p {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
/* Community, accounts and reference explorer */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  max-width: 980px;
  margin: 25px auto 50px;
}
.auth-story h1 {
  font-size: 46px;
  line-height: 1.16;
  margin-top: 22px;
  letter-spacing: -1.8px;
}
.auth-story > p {
  color: #7d9183;
  max-width: 330px;
  font-size: 13px;
  line-height: 1.9;
}
.auth-story > img {
  display: block;
  width: 230px;
  height: 230px;
  object-fit: contain;
  margin: auto;
}
.privacy-note {
  display: block;
  font-size: 11px;
  line-height: 1.8;
  color: #83957b;
  background: #f0f5ec;
  border-radius: 8px;
  padding: 13px 16px;
}
.auth-panel {
  padding: 32px;
}
.auth-panel .button {
  width: 100%;
  margin-top: 24px;
  font-size: 12px;
}
.auth-panel h2 {
  font-size: 23px;
  margin-top: 15px;
}
.auth-alternative {
  margin-top: 23px !important;
  text-align: center;
}
.auth-alternative a {
  color: #347b65;
  font-weight: 600;
}
#auth-error {
  font-size: 12px;
  color: #a75d57;
}
.community-banner {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 24px 26px;
  background: linear-gradient(100deg, #eaf3e7, #eff5f1);
  border: 1px solid #dce8da;
  border-radius: 13px;
  margin-bottom: 27px;
}
.community-banner > svg {
  width: 32px;
  height: 32px;
  color: #87a77a;
}
.community-banner strong {
  font-size: 14px;
  font-weight: 550;
}
.community-banner p {
  font-size: 11px;
  color: #83957b;
  margin: 5px 0 0;
}
.community-banner .soft-badge {
  margin-left: auto;
  white-space: nowrap;
}
.like-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 10px;
  background: #f7f9f5;
  border: 1px solid #e4eadd;
  border-radius: 7px;
  color: #839176;
  font-size: 11px;
  white-space: nowrap;
}
.like-button svg {
  width: 16px;
  height: 16px;
}
.like-button.liked {
  background: #fbf0f3;
  color: #b27189;
  border-color: #efdce3;
}
.like-button.liked svg {
  fill: #ecc5d1;
}
.character-art .custom-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.visibility-label {
  font-size: 9px;
  color: #819477;
  display: block;
  margin-top: 4px;
}
.character-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
}
.character-showcase {
  border: 1px solid #e0e8d9;
  background: linear-gradient(
    130deg,
    var(--tint, #eff4e9),
    var(--tint2, #f6f8ef)
  );
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 350px;
}
.character-showcase img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
}
.art-credit {
  font-size: 10px;
  color: #89977f;
  text-align: center;
  margin: 12px 0 20px;
}
.publication-panel {
  margin-top: 20px;
}
.detail-fact {
  margin: 25px 0;
}
.detail-fact > span {
  display: block;
  font-size: 10px;
  color: #93a087;
  margin-bottom: 7px;
}
.detail-fact > strong {
  font-size: 19px;
  font-weight: 550;
  display: block;
}
.detail-fact > small {
  display: block;
  color: #8d9d80;
  font-size: 10px;
  margin-top: 5px;
}
.detail-fact p {
  font-size: 12px;
  line-height: 1.7;
  color: #7e9174;
}
.story-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px !important;
  color: #687d5e !important;
}
.photo-editor {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 20px 0;
}
.photo-editor > img {
  width: 115px;
  height: 115px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #e3eadb;
  background: #f4f8ef;
}
.photo-editor p {
  font-size: 10px;
  color: #99a78f;
}
.photo-editor .text-button {
  display: block;
  margin: 12px 0;
  color: #6a865f;
}
.ability-description {
  font-size: 11px;
  color: #819774;
  margin: 0;
  line-height: 1.7;
}
.selected-moves {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.selected-move {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eaf3e5;
  border: 1px solid #dce9d4;
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 11px;
  color: #5f7e50;
}
.selected-move button {
  background: none;
  border: 0;
  font-size: 18px;
  padding: 0;
  color: #8aa17b;
}
.selected-moves:empty:after {
  content: "Añade movimientos del repertorio de abajo.";
  font-size: 11px;
  color: #9aa88e;
  padding: 8px 0;
}
.ability-showcase {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}
.reference-portrait {
  background: linear-gradient(130deg, var(--tint), var(--tint2));
  border-radius: 13px;
  display: grid;
  place-items: center;
  min-height: 190px;
}
.reference-portrait img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}
.ability-showcase h2 {
  font-size: 19px;
  font-weight: 550;
  margin-top: 0;
}
.ability-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.ability-cards > article {
  padding: 17px;
  border: 1px solid #e2e9dc;
  background: white;
  border-radius: 9px;
}
.ability-cards h3 {
  font-size: 16px;
  font-weight: 550;
  margin: 9px 0;
}
.ability-cards p {
  font-size: 11px;
  color: #7f9275;
  line-height: 1.7;
  margin: 0;
}
.learnset-widget {
  margin: 25px 0 8px;
  min-width: 0;
}
.learnset-widget h3 {
  font-size: 16px;
  font-weight: 550;
  margin: 0;
}
.learnset-intro {
  font-size: 11px;
  color: #8d9f83;
  line-height: 1.8;
}
.learnset-controls {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
.learnset-controls label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 10px;
  color: #718764;
  min-width: 0;
}
.learnset-controls select,
.learnset-controls input {
  width: 100%;
  min-width: 0;
  border: 1px solid #dfe8d8;
  border-radius: 6px;
  padding: 9px;
  background: #fcfdfa;
  font-size: 11px;
  color: #718764;
}
.level-controls {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 16px 0;
  flex-wrap: wrap;
}
.level-controls label {
  font-size: 10px;
  color: #819575;
  display: flex;
  align-items: center;
  gap: 7px;
}
.level-controls input[type="number"] {
  width: 65px;
  border: 1px solid #dce5d5;
  border-radius: 5px;
  padding: 6px;
  color: #69805a;
  background: #fcfdfa;
}
.level-controls input[type="checkbox"] {
  accent-color: #72965d;
}
.learnset-results {
  max-height: 630px;
  overflow-y: auto;
  padding-right: 5px;
  overscroll-behavior: contain;
}
.game-moves {
  margin-bottom: 18px;
}
.game-moves h4 {
  font-size: 12px;
  font-weight: 600;
  background: #eff5e9;
  padding: 11px;
  border-radius: 6px;
  color: #6c865d;
  margin: 0;
  position: sticky;
  top: 0;
  z-index: 2;
}
.move-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 7px;
  border-bottom: 1px solid #eaf0e4;
}
.move-identity {
  flex: 1;
  min-width: 0;
}
.move-identity strong {
  font-size: 12px;
  font-weight: 550;
  display: block;
}
.move-identity small {
  display: block;
  font-size: 9px;
  color: #8fa182;
  margin-top: 3px;
}
.move-identity summary {
  font-size: 9px;
  color: #8a9e7b;
  margin-top: 6px;
  cursor: pointer;
}
.move-identity details p {
  font-size: 10px;
  line-height: 1.7;
  color: #7e9370;
  max-width: 350px;
}
.move-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  max-width: 160px;
}
.move-facts > span:not(.type-tag) {
  font-size: 8px;
  color: #8d9e81;
}
.move-facts > small {
  display: block;
  width: 100%;
  font-size: 9px;
  color: #a0ad95;
}
.learnset-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}
.learnset-pagination > span {
  font-size: 9px;
  color: #8b9d7e;
}
.learnset-pagination > div {
  display: flex;
  gap: 5px;
}
.learnset-pagination .button {
  padding: 7px 9px;
  font-size: 9px;
  min-height: 31px;
}
.move-empty {
  padding: 45px 20px;
  text-align: center;
  font-size: 12px;
  color: #97a68a;
  background: #f7faf3;
  border-radius: 9px;
}
.character-grid .character-body .panel-heading {
  gap: 8px;
}
.character-grid .character-body .panel-heading h2 {
  font-size: 18px;
  overflow-wrap: anywhere;
}
@media (max-width: 1100px) {
  .auth-layout {
    gap: 25px;
  }
  .auth-story h1 {
    font-size: 38px;
  }
  .learnset-controls {
    grid-template-columns: 1fr 1fr;
  }
  .learnset-controls label:last-child {
    grid-column: 1/-1;
  }
  .move-facts {
    max-width: 110px;
  }
  .character-detail-layout {
    gap: 20px;
  }
  .learnset-pagination {
    flex-wrap: wrap;
  }
}
@media (max-width: 690px) {
  .sidebar nav {
    grid-template-columns: repeat(5, 1fr);
  }
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 0;
  }
  .auth-story {
    display: none;
  }
  .auth-panel {
    padding: 25px;
  }
  .auth-panel .field input {
    font-size: 16px;
  }
  .community-banner {
    padding: 20px;
    gap: 12px;
  }
  .community-banner .soft-badge {
    display: none;
  }
  .character-detail-layout {
    grid-template-columns: 1fr;
  }
  .character-showcase {
    min-height: 250px;
  }
  .character-showcase img {
    max-height: 330px;
  }
  .ability-showcase {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .reference-portrait {
    min-height: 140px;
  }
  .reference-portrait img {
    width: 130px;
    height: 130px;
  }
  .ability-cards {
    gap: 9px;
  }
  .ability-cards > article {
    padding: 13px;
  }
  .learnset-controls {
    grid-template-columns: 1fr 1fr;
  }
  .learnset-widget .soft-badge {
    font-size: 7px;
  }
  .move-row {
    gap: 8px;
  }
  .move-facts {
    max-width: 102px;
  }
  .move-facts small {
    font-size: 8px;
  }
  .move-identity strong {
    font-size: 11px;
  }
  .photo-editor {
    gap: 12px;
  }
  .photo-editor > img {
    width: 90px;
    height: 90px;
  }
  .top-actions {
    gap: 9px;
  }
  .top-actions .local-pill {
    display: none;
  }
  .top-actions #logout-button {
    font-size: 9px;
  }
  .character-grid .like-button {
    font-size: 9px;
    padding: 5px;
    gap: 3px;
  }
  .character-grid .character-body .panel-heading {
    align-items: start;
  }
  .character-grid .character-body .panel-heading h2 {
    font-size: 16px;
  }
  .character-grid .like-button svg {
    width: 12px;
    height: 12px;
  }
}
.character-art {
  overflow: hidden;
}
.character-art .custom-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar {
  overflow-y: auto;
}
.character-art .custom-art {
  object-fit: contain;
}
@media (max-height: 820px) {
  .creative-tip {
    display: none;
  }
}
