:root {
  --ink: #172d24;
  --green: #194d39;
  --paper: #f9f8f3;
  --line: #dbdfd4;
  --mute: #53665a;
  --accent: #ffd674;
  --white: #fff;
  --r: 15px;
  color: var(--ink);
  background: var(--paper);
  font:
    16px/1.5 "DM Sans",
    "Microsoft YaHei",
    Roboto,
    system-ui,
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  border-radius: 10px;
  background: #e9eee5;
  min-height: 44px;
  padding: 7px 14px;
  font-weight: 650;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus,
select:focus {
  outline: 3px solid #ca9335;
  outline-offset: 2px;
}
button:active {
  transform: translateY(1px);
}
a {
  color: var(--green);
}
.mast {
  background: #183e31;
  color: white;
}
.mast-inner,
main {
  max-width: 950px;
  margin: auto;
}
.mast-inner {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #214833;
  background: #ffdc84;
  border-radius: 10px 10px 4px 4px;
  line-height: 1;
  font-weight: 900;
  font-family: serif;
}
.account {
  border: 1px solid #6f8776;
  color: white;
  background: transparent;
  min-height: 40px;
}
.account::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #efcf7e;
  vertical-align: middle;
  margin-right: 7px;
}
main {
  padding: 24px 24px 180px;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #edebd9;
  border-radius: 17px;
  padding: 22px 26px;
  margin: 0 0 17px;
  border: 1px solid #d8d9c7;
}
.hero h1 {
  position: relative;
  font-size: clamp(27px, 5vw, 43px);
  line-height: 1.15;
  margin: 5px 0 8px;
  z-index: 1;
}
.hero p,
.caption,
.sub {
  color: var(--mute);
  margin: 0;
  font-size: 14px;
}
.hero .awning {
  position: absolute;
  right: -6%;
  bottom: -70%;
  width: 46%;
  height: 165%;
  transform: rotate(-26deg);
  border-radius: 38%;
  background: repeating-linear-gradient(
    90deg,
    #d5deb9 0 17px,
    #b4c59b 17px 33px
  );
  z-index: -1;
}
.eyebrow {
  font:
    700 11px/1.4 "Courier New",
    monospace;
  letter-spacing: 0.15em;
  color: #446149;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 13px;
  margin-bottom: 14px;
}
.search input {
  height: 44px;
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 15px;
}
.search span {
  font-size: 22px;
}
.catalog {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.cats {
  position: sticky;
  top: 8px;
  display: grid;
  gap: 5px;
}
.cats button {
  font-size: 14px;
  text-align: left;
  background: transparent;
  padding: 8px 13px;
}
.cats .on,
.tabs .on {
  background: #dce7d8;
  color: #174b36;
}
.products,
.stack {
  display: grid;
  gap: 9px;
}
.product,
.card,
.order {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
}
.product {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
}
.product h3,
.card h3,
.order h3 {
  margin: 0;
  font-size: 17px;
}
.details {
  min-width: 0;
  overflow-wrap: anywhere;
}
.price {
  font-size: 18px;
  font-weight: 800;
  color: #254933;
}
.money {
  font-variant-numeric: tabular-nums;
}
.art {
  width: 74px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #ece8d7;
  overflow: hidden;
}
.pkg {
  display: grid;
  align-content: center;
  justify-items: center;
  background: #c8793c;
  color: #fff9e8;
  transform: rotate(-8deg);
  width: 48px;
  height: 59px;
  border-radius: 3px 3px 8px 8px;
  border-top: 4px double #fff7;
  border-bottom: 4px double #fff7;
  box-shadow: 3px 4px 0 #0002;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}
.pkg small {
  font: 700 7px/1.5 monospace;
  letter-spacing: 1px;
}
.a1 {
  background: #e1ead2;
}
.a1 .pkg {
  background: #799559;
  border-radius: 9px;
  width: 34px;
}
.a2 {
  background: #e6e3ec;
}
.a2 .pkg {
  background: #8e7799;
  border-top: 8px solid #eae3ec;
}
.a3 {
  background: #f4e0c9;
}
.a3 .pkg {
  height: 44px;
  background: #bf713b;
  border-top: 5px solid #e6b777;
  border-radius: 3px 3px 11px 11px;
}
.a4 {
  background: #dce8eb;
}
.a4 .pkg {
  background: #739aa6;
  width: 30px;
  border-radius: 9px;
}
.a5 {
  background: #f4dfbd;
}
.a5 .pkg {
  background: #b89455;
}
.step {
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.step button,
.icon {
  min-width: 42px;
  min-height: 44px;
  padding: 4px;
  font-size: 21px;
}
.step button:last-child,
.primary {
  background: var(--green);
  color: white;
}
.step b {
  font-size: 14px;
  min-width: 18px;
  text-align: center;
}
.bar,
.nav-inner {
  width: min(902px, calc(100% - 28px));
  margin: auto;
}
.bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(68px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: #173e31;
  color: white;
  box-shadow: 0 4px 15px #19392920;
  padding: 8px 10px 8px 17px;
  border-radius: 15px;
  z-index: 2;
}
.bar button {
  background: var(--accent);
  color: #293524;
}
.bag-summary {
  display: grid;
  text-align: left;
  background: transparent !important;
  color: white !important;
  padding: 0;
  min-height: 44px;
}
.bag-summary small {
  color: #d7e5d5;
}
.bar strong {
  font-size: 18px;
}
nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: #fff;
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-inner {
  height: 59px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.nav-inner button {
  background: transparent;
  color: #667268;
  min-width: 90px;
}
.nav-inner .on {
  color: var(--green);
  background: #ebf1e8;
}
.heading,
.row,
.tabs,
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.heading {
  margin: 8px 0 14px;
}
.heading h1,
h2 {
  margin: 0;
}
.tabs {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 12px 0;
}
.tabs button {
  background: white;
}
.empty {
  text-align: center;
  padding: 28px 12px;
  color: var(--mute);
}
.badge {
  border-radius: 7px;
  padding: 4px 8px;
  background: #eaf0df;
  color: #335139;
  font-size: 13px;
  font-weight: 700;
}
.order .row {
  flex-wrap: wrap;
}
.order ul,
.lines {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.order li,
.lines li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  overflow-wrap: anywhere;
}
.order footer {
  border-top: 1px dashed var(--line);
  margin-top: 12px;
  padding-top: 12px;
}
.card p {
  margin: 0.4em 0;
}
.tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.tiles strong {
  display: block;
  font-size: 26px;
}
.full {
  width: 100%;
  margin-top: 12px;
}
.note {
  background: #f5edd5;
  color: #574728;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}
.label {
  display: grid;
  gap: 4px;
  font-weight: 650;
  font-size: 14px;
  margin: 9px 0;
}
.label input,
.label select,
.label textarea {
  width: 100%;
  background: white;
  border: 1px solid #bbc6ba;
  border-radius: 8px;
  padding: 10px;
  min-width: 0;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
dialog {
  border: 0;
  padding: 18px 20px 22px;
  border-radius: 20px;
  width: min(460px, calc(100vw - 26px));
  max-height: 84dvh;
  overflow-y: auto;
  color: var(--ink);
}
dialog::backdrop {
  background: #102d2455;
}
.dialog-head {
  margin-bottom: 12px;
}
.dialog-head h2 {
  font-size: 21px;
}
.icon {
  background: transparent;
}
#dialog-error {
  color: #9f2925;
  font-size: 14px;
  margin-top: 8px;
}
.handle {
  margin: 0 auto 8px;
  width: 30px;
  height: 4px;
  background: #d1d8ce;
  border-radius: 8px;
}
#toast {
  position: fixed;
  z-index: 8;
  left: 50%;
  bottom: 148px;
  transform: translateX(-50%);
  background: #172d24;
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  max-width: 90vw;
  pointer-events: none;
}
#toast:empty {
  display: none;
}
.muted {
  font-size: 13px;
  color: var(--mute);
}
@media (max-width: 600px) {
  .mast-inner {
    height: 53px;
    padding: 0 15px;
  }
  main {
    padding: 14px 12px 170px;
  }
  .hero {
    padding: 14px 17px;
  }
  .hero .awning {
    right: -16%;
    height: 135%;
  }
  .catalog {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 6px;
  }
  .cats button {
    font-size: 13px;
    padding: 5px;
    text-align: center;
  }
  .product {
    padding: 9px;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 5px 8px;
  }
  .art {
    width: 54px;
    height: 61px;
    grid-row: span 2;
  }
  .pkg {
    transform: scale(0.83) rotate(-8deg);
  }
  .details h3 {
    font-size: 15px;
  }
  .details .sub {
    font-size: 12px;
  }
  .product .step {
    grid-column: 2;
    justify-self: end;
    margin-top: -31px;
  }
  .product .price {
    display: block;
    padding-right: 88px;
    font-size: 15px;
  }
  .step {
    gap: 0;
  }
  .step button {
    min-width: 31px;
    min-height: 38px;
    font-size: 18px;
  }
  .step b {
    min-width: 14px;
  }
  .bar {
    bottom: calc(61px + env(safe-area-inset-bottom));
  }
  .nav-inner {
    height: 54px;
  }
  dialog {
    margin: auto auto 0;
    border-radius: 18px 18px 0 0;
    width: 100%;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 365px) {
  .catalog {
    grid-template-columns: 51px minmax(0, 1fr);
  }
  .product {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .art {
    width: 42px;
  }
  .product .step {
    margin-top: 0;
  }
  .product .price {
    padding-right: 0;
  }
}
.auth-card {
  width: min(100%, 430px);
  margin: clamp(12px, 7vh, 70px) auto 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(20px, 4vw, 34px);
  box-shadow: 0 8px 32px #163d2d09;
}
.auth-card header {
  margin-bottom: 20px;
}
.auth-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #214833;
  background: #ffdc84;
  border-radius: 12px;
  font-family: serif;
  font-weight: 900;
}
.auth-card h1 {
  margin: 12px 0 6px;
  font-size: 27px;
}
.auth-card .label {
  margin: 12px 0;
}
.auth-card input {
  font-size: 16px;
}
.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5px;
  margin-top: 10px;
}
.auth-link {
  background: transparent;
  color: var(--green);
  padding: 4px 0;
}
.code-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}
.code-line button {
  margin-bottom: 12px;
  font-size: 14px;
}
#auth-status {
  margin: 6px 0;
  color: #795126;
  font-size: 14px;
}
#auth-status:empty {
  display: none;
}
.credential {
  display: block;
  user-select: all;
  background: #eff3e8;
  color: #214535;
  overflow-wrap: anywhere;
  border-radius: 8px;
  padding: 12px;
  font: 600 16px/1.5 monospace;
}
#nav:empty {
  display: none;
}
/* Shared storefront and stock-management views. */
:root {
  --green: #08785e;
  --ink: #182b29;
  --mute: #526764;
  --paper: #f3f7f6;
  --line: #dce6e2;
  --accent: #deef9c;
}
.ui-icon {
  display: inline-block;
  width: 21px;
  height: 21px;
  vertical-align: middle;
  flex: none;
  pointer-events: none;
}
.mast {
  background: #08775e;
}
.mast-inner {
  height: 60px;
}
.identity .mark {
  color: #174831;
  background: #ddeda7;
}
.account {
  border-color: #ffffff65;
}
.account::before {
  background: #c8e999;
}
.shop-top {
  background: #096d57;
  color: white;
  padding: 19px 22px;
  border-radius: 16px;
  margin-bottom: 15px;
}
.shop-topline,
.shelf-heading,
.stock-title,
.stock-buttons,
.buy-line,
.filters {
  display: flex;
  align-items: center;
  gap: 10px;
}
.shop-topline,
.shelf-heading,
.buy-line {
  justify-content: space-between;
}
.shop-topline h1 {
  font-size: 26px;
  margin: 0;
}
.shop-topline span {
  font-size: 13px;
  color: #e4f2eb;
}
.shop-top .search {
  margin: 12px 0 0;
  color: #427264;
  border: 0;
  border-radius: 11px;
}
.search input {
  outline-offset: 0;
}
.shop-top .search input:focus-visible {
  outline-offset: -3px;
}
.shelf {
  min-width: 0;
}
.shelf-heading {
  padding: 3px 4px 10px;
}
.shelf-heading h2,
.stock-title h2 {
  font-size: 17px;
}
.shelf-heading small,
.stock-title small,
.stock-info small,
.stock-info p span {
  color: var(--mute);
}
.catalog {
  grid-template-columns: 118px minmax(0, 1fr);
}
.cats {
  background: #eaf0ed;
  border-radius: 13px;
  padding: 6px;
  gap: 4px;
}
.cats button {
  position: relative;
  border-radius: 8px;
}
.cats .on {
  background: #fff;
  color: #086547;
  box-shadow: 0 1px 3px #24392d13;
}
.cats .on::before {
  content: "";
  position: absolute;
  left: 0;
  border-radius: 2px;
  top: 26%;
  height: 48%;
  width: 3px;
  background: #159b71;
}
.product {
  grid-template-columns: 76px minmax(0, 1fr) minmax(165px, auto);
  gap: 14px;
}
.art {
  border: 1px solid #00000009;
}
.product .buy-line {
  align-self: center;
}
.product .price {
  padding: 0;
  white-space: nowrap;
}
.stock-hint,
.stock-low {
  color: #8b5117 !important;
  font-weight: 650;
}
.stock-hint {
  font-size: 12px;
}
.step button {
  border-radius: 50%;
  background: #f2f6f2;
  color: #167657;
  width: 42px;
}
.step button:last-child {
  background: #067759;
  color: white;
}
.step button.sold-out:disabled {
  border-radius: 8px;
  background: #e7e9e9;
  color: #53605d;
  width: auto;
  opacity: 1;
  font-size: 13px;
}
.bar {
  background: #163e35;
}
.bag-summary small {
  display: flex;
  align-items: center;
  gap: 4px;
}
.bag-summary .ui-icon {
  width: 15px;
  height: 15px;
}
.nav-inner button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  color: #425550;
}
.nav-inner .on {
  color: #006a4b;
  background: #e8f3eb;
}
.profile-card,
.profile-actions {
  max-width: 550px;
  margin: 0 auto;
}
.profile-card {
  border-radius: 16px;
  background: #e0eee5;
  padding: 24px;
}
.profile-card h1 {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}
.profile-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.profile-actions button {
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px;
}
.profile-actions svg {
  margin-right: 10px;
}
.manager-site {
  --green: #343e68;
  --paper: #f4f5f8;
  --mute: #536174;
  --line: #dce1e9;
}
.manager-site .mast {
  background: #202e40;
}
.manager-site .mark,
.manager-site .auth-mark {
  background: #d8dcee;
  color: #313d57;
}
.manager-site #nav {
  display: none;
}
.manager-site .tabs {
  gap: 5px;
  padding: 5px;
  background: #e8ecf1;
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.manager-site .tabs button {
  min-width: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: transparent;
}
.manager-site .tabs button.on {
  background: #fff;
  color: #353c66;
  box-shadow: 0 1px 4px #18234116;
}
.stock-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 19px 0 12px;
}
.stock-title {
  align-items: baseline;
  flex-wrap: wrap;
}
.stock-title small {
  font-size: 13px;
}
.stock-buttons {
  flex-wrap: wrap;
}
.stock-buttons button {
  background: #e3ebe6;
}
.stock-buttons .import-button {
  background: #454687;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.filters {
  gap: 5px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.filters button {
  min-height: 38px;
  font-size: 14px;
  background: transparent;
  border: 1px solid var(--line);
}
.filters button.selected {
  color: #fff;
  border-color: #394961;
  background: #394961;
}
.stock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.stock-info {
  min-width: 0;
  overflow-wrap: anywhere;
}
.stock-info small {
  font-size: 12px;
}
.stock-info p {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 4px 0 0;
}
.stock-info p span {
  font-size: 13px;
}
.stock-control {
  display: grid;
  justify-items: end;
  flex-shrink: 0;
  gap: 5px;
}
.stock-control button {
  min-height: 36px;
  padding: 4px 12px;
  background: #eef0f5;
}
.status-chip {
  font-size: 12px;
  font-weight: 700;
  color: #146449;
  background: #e3f2e8;
  padding: 3px 7px;
  border-radius: 6px;
}
.status-chip.off {
  color: #536174;
  background: #eef0f4;
}
.import-guide {
  border-radius: 12px;
  border: 1px solid #daddf0;
  background: #f2f2fa;
  padding: 14px;
  font-size: 14px;
  color: #333e5f;
}
.import-guide p {
  margin: 6px 0;
}
.import-guide a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  font-weight: 700;
  color: #44488b;
}
@media (max-width: 600px) {
  .mast-inner {
    height: 52px;
  }
  .shop-top {
    border-radius: 0 0 18px 18px;
    margin: -14px -12px 12px;
    padding: 6px 14px 14px;
    background: #08775e;
  }
  .shop-topline h1 {
    font-size: 22px;
  }
  .shop-top .search {
    margin-top: 8px;
  }
  .catalog {
    grid-template-columns: 61px minmax(0, 1fr);
    gap: 7px;
  }
  .cats {
    padding: 4px 2px;
  }
  .shelf-heading {
    padding: 2px 3px 8px;
  }
  .shelf-heading h2 {
    font-size: 15px;
  }
  .products {
    gap: 7px;
  }
  .product {
    padding: 9px;
    grid-template-columns: 51px minmax(0, 1fr);
    gap: 3px 8px;
  }
  .product .art {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 51px;
    height: 62px;
  }
  .product .details {
    grid-column: 2;
  }
  .product .buy-line {
    grid-column: 2;
    min-width: 0;
    align-self: end;
    flex-wrap: wrap;
    gap: 2px;
  }
  .product .step {
    margin: 0;
  }
  .step button {
    min-width: 34px;
    min-height: 38px;
    width: 34px;
  }
  .buy-line .price {
    font-size: 15px;
  }
  .buy-line .price small {
    font-size: 11px;
  }
  .nav-inner button {
    flex: 1;
    min-width: 0;
    border-radius: 0;
    background: transparent !important;
    font-size: 12px;
    flex-direction: column;
    gap: 0;
    line-height: 1.35;
  }
  .nav-inner .on svg {
    stroke-width: 2.4;
  }
  .manager-site .tabs {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    margin: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    padding: 3px 8px calc(3px + env(safe-area-inset-bottom));
    background: white;
  }
  .manager-site .tabs button {
    min-height: 48px;
    flex-direction: column;
    gap: 1px;
    padding: 2px;
    font-size: 12px;
  }
  .manager-site .tabs button.on {
    background: #edeefa;
    box-shadow: none;
  }
  .manager-site main {
    padding-bottom: 95px;
  }
  .manager-site .heading h1 {
    font-size: 24px;
  }
  .stock-actions {
    margin-top: 10px;
  }
  .stock-buttons {
    gap: 5px;
  }
  .stock-buttons button {
    font-size: 13px;
  }
  .filters button {
    padding: 5px 9px;
  }
  .stock-title {
    width: 100%;
  }
  .stock-control button {
    min-height: 42px;
  }
}
@media (max-width: 360px) {
  .catalog {
    grid-template-columns: 49px minmax(0, 1fr);
  }
  .product {
    grid-template-columns: 43px minmax(0, 1fr);
  }
  .product .art {
    width: 43px;
  }
  .step button {
    min-width: 31px;
    width: 31px;
  }
}

.rank-entry { margin: 0 0 12px; }
.rank-entry button, .rank-shop { display: inline-flex; align-items: center; gap: 7px; background: #e3f2e9; color: #135943; }
.ranking { border: 1px solid var(--line); padding: clamp(14px,3vw,24px); border-radius: var(--r); background: #fff; }
.rank-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.rank-top h1, .rank-top h2, .rank-item h3 { margin: 0; }
.rank-top .filters { margin: 0; }
.rank-top .filters button { min-height: 44px; }
.rank-caption, .rank-item small, .rank-fig small { color: var(--mute); }
.rank-caption { margin: 7px 0 12px; font-size: 14px; }
.rank-list { list-style: none; padding: 0; margin: 0; }
.rank-list li { display: grid; grid-template-columns: 33px minmax(0,1fr) auto; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding: 12px 0; }
.rank-position { font-variant-numeric: tabular-nums; text-align: center; color: #53665a; }
.rank-list li:first-child .rank-position { color: #88530e; background: #fff0ce; border-radius: 8px; padding: 4px 0; }
.rank-item, .rank-fig { overflow-wrap: anywhere; }
.rank-item h3 { font-size: 16px; }
.rank-fig { max-width: 12em; text-align: right; display: grid; justify-items: end; gap: 3px; }
.rank-fig strong { font-size: 15px; }
.rank-empty { border-top: 1px solid var(--line); display: grid; justify-items: center; padding: 28px 8px; gap: 15px; }
.reorder-lines li { flex-wrap: wrap; }
.reorder-lines ~ button { margin: 6px 8px 0 0; }
.order footer { flex-wrap: wrap; }
