@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  font-family: "DM Sans", sans-serif;
  color: #1d211f;
  background: #f7f7f4;
  font-synthesis: none;
  font-optical-sizing: auto;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  background: #f0f0ec;
  border-right: 1px solid #e5e5df;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1e2923;
  font:
    700 15px Manrope,
    sans-serif;
  letter-spacing: -0.5px;
  padding: 1px 6px 34px;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #254f3e;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.brand-light {
  font-weight: 500;
  color: #778178;
}
.workspace-label,
.eyebrow {
  font:
    500 10px "DM Mono",
    monospace;
  letter-spacing: 1.3px;
  color: #899089;
}
.workspace-label {
  padding: 0 9px 10px;
}
.nav-item {
  height: 39px;
  border: 0;
  background: none;
  text-align: left;
  border-radius: 7px;
  padding: 0 10px;
  color: #737970;
  font:
    500 13px "DM Sans",
    sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 3px;
  cursor: pointer;
}
.nav-item span {
  width: 15px;
  font-size: 16px;
}
.nav-item.active {
  background: #e2e8e1;
  color: #284e3d;
  font-weight: 600;
}
.nav-item:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.nav-item i {
  font:
    10px "DM Mono",
    monospace;
  margin-left: auto;
  color: #969c92;
}
.rail-bottom {
  margin-top: auto;
  border-top: 1px solid #dfdfd8;
  padding: 16px 2px 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
}
.avatar {
  height: 29px;
  width: 29px;
  border-radius: 50%;
  background: #d9e5dc;
  color: #315743;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.rail-bottom b,
.rail-bottom small {
  display: block;
}
.rail-bottom b {
  font-size: 11px;
}
.rail-bottom small {
  color: #888f87;
  margin-top: 3px;
}
.dots {
  margin-left: auto;
  font-size: 19px;
  color: #8d948c;
}
main {
  margin-left: 238px;
  min-height: 100vh;
}
.topbar {
  height: 58px;
  border-bottom: 1px solid #e9e9e4;
  background: #fafaf8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  font-size: 12px;
}
.crumb {
  color: #858c84;
}
.slash {
  padding: 0 10px;
  color: #b5b9b2;
}
.topbar b {
  font-weight: 600;
}
.save-state {
  font-size: 11px;
  color: #737a72;
  display: flex;
  align-items: center;
  gap: 7px;
}
.status-dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #75a982;
}
.content {
  max-width: 1140px;
  margin: 0 auto;
  padding: 43px 42px 64px;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 27px;
}
.intro h1 {
  font:
    700 30px Manrope,
    sans-serif;
  letter-spacing: -1.1px;
  margin: 9px 0 6px;
}
.intro p {
  margin: 0;
  color: #788078;
  font-size: 13px;
}
.button {
  height: 36px;
  border-radius: 7px;
  padding: 0 13px;
  border: 1px solid transparent;
  font:
    600 12px "DM Sans",
    sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover {
  transform: translateY(-1px);
}
.primary {
  background: #28523e;
  color: #fff;
}
.primary:hover,
.dark:hover {
  background: #173d2a;
}
.dark {
  background: #252b27;
  color: #fff;
}
.outline {
  border-color: #dedfd9;
  background: #fafaf8;
  color: #424942;
}
.notice {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid #dfe9df;
  background: #f3f7f1;
  border-radius: 8px;
  margin-bottom: 28px;
}
.notice-icon {
  color: #4f785b;
  font-size: 15px;
}
.notice div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.notice b {
  font-size: 11px;
  color: #385544;
}
.notice span {
  font-size: 11px;
  color: #758077;
}
.notice button {
  background: none;
  border: 0;
  color: #858e84;
  font-size: 19px;
  cursor: pointer;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-bottom: 1px solid #e2e3dd;
}
.box-tabs {
  display: flex;
  gap: 21px;
  overflow: auto;
  max-width: 50%;
}
.box-tab {
  border: 0;
  background: none;
  color: #81877f;
  padding: 0 1px 12px;
  font:
    500 12px "DM Sans",
    sans-serif;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.box-tab.active {
  color: #284f3b;
  font-weight: 700;
  border-color: #37674d;
}
.toolbar-actions {
  display: flex;
  gap: 8px;
  padding-bottom: 8px;
}
.search {
  height: 34px;
  width: 185px;
  border: 1px solid #e3e4de;
  border-radius: 6px;
  background: #fbfbf9;
  display: flex;
  align-items: center;
  padding: 0 9px;
  gap: 6px;
  color: #979e96;
}
.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font:
    12px "DM Sans",
    sans-serif;
  color: #303731;
}
.box-summary {
  padding: 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.box-summary h2 {
  font:
    700 16px Manrope,
    sans-serif;
  margin: 0;
  letter-spacing: -0.3px;
}
.box-summary p {
  font-size: 11px;
  color: #858c84;
  margin: 4px 0 0;
}
.pill {
  padding: 4px 8px;
  border-radius: 20px;
  background: #edf0eb;
  color: #677267;
  font:
    10px "DM Mono",
    monospace;
}
.table-wrap {
  border: 1px solid #e5e6e0;
  border-radius: 9px;
  background: #fbfbf9;
  overflow: hidden;
  min-height: 160px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  height: 38px;
  background: #f6f6f2;
  color: #899088;
  font:
    10px "DM Mono",
    monospace;
  letter-spacing: 0.7px;
  padding: 0 16px;
  border-bottom: 1px solid #e8e9e3;
}
td {
  height: 59px;
  padding: 0 16px;
  border-bottom: 1px solid #efefeb;
  font-size: 12px;
  color: #545b54;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.num {
  text-align: right;
}
.item-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2d332e;
  font-weight: 600;
}
.item-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #eff1eb;
  display: grid;
  place-items: center;
  color: #65735e;
  font-size: 14px;
}
.item-cell small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #9aa098;
  margin-top: 2px;
}
.rarity {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.rarity-Common {
  background: #edf0ec;
  color: #667365;
}
.rarity-Rare {
  background: #e8f1f4;
  color: #527b8b;
}
.rarity-Epic {
  background: #f1eafb;
  color: #8063a6;
}
.rarity-Legendary {
  background: #fbf1dc;
  color: #a67c2f;
}
.rarity-Mythic {
  background: #fae7e8;
  color: #ac5f68;
}
.weight {
  font:
    11px "DM Mono",
    monospace;
  color: #555d55;
}
.probability {
  font:
    11px "DM Mono",
    monospace;
  color: #424c43;
}
.inactive {
  color: #9da39c;
}
.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 3px;
}
.icon-button {
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #8a9188;
  cursor: pointer;
  font-size: 13px;
}
.icon-button:hover {
  background: #efefea;
  color: #303830;
}
.empty {
  text-align: center;
  padding: 36px 12px;
  color: #697168;
}
.empty[hidden] {
  display: none;
}
.empty-icon {
  font-size: 28px;
  color: #9aa995;
}
.empty b {
  display: block;
  margin: 7px 0 4px;
  font-size: 13px;
}
.empty p {
  font-size: 11px;
  color: #929890;
  margin: 0 0 14px;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  color: #90978f;
  font-size: 10px;
  padding: 11px 2px;
}
.next-step {
  margin-top: 35px;
  border-top: 1px solid #e5e6df;
  padding: 18px 2px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #515a51;
}
.step-number {
  height: 27px;
  width: 27px;
  border: 1px solid #e0e2dc;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #858d84;
  font:
    11px "DM Mono",
    monospace;
}
.next-step b,
.next-step span {
  display: block;
}
.next-step b {
  font-size: 12px;
  color: #596258;
}
.next-step div:nth-child(2) span {
  font-size: 10px;
  color: #929991;
  margin-top: 4px;
}
.step-arrow {
  margin-left: auto;
  color: #9aa197;
}
dialog {
  padding: 0;
  border: 1px solid #e5e6e0;
  border-radius: 12px;
  width: min(440px, calc(100vw - 32px));
  box-shadow: 0 20px 60px #18211926;
  color: #252a25;
}
dialog::backdrop {
  background: #1a221d60;
  backdrop-filter: blur(2px);
}
dialog form {
  padding: 24px;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 22px;
}
.dialog-head h2 {
  font:
    700 20px Manrope,
    sans-serif;
  margin: 6px 0 0;
  letter-spacing: -0.5px;
}
.close {
  border: 0;
  background: none;
  color: #858d84;
  font-size: 22px;
  cursor: pointer;
}
dialog label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 14px 0;
  color: #596159;
  font-size: 11px;
  font-weight: 600;
}
dialog input:not([type="checkbox"]),
dialog select {
  height: 38px;
  border: 1px solid #dedfd9;
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
  font:
    12px "DM Sans",
    sans-serif;
  outline: none;
  color: #252a25;
}
dialog input:focus,
dialog select:focus {
  border-color: #66826b;
  box-shadow: 0 0 0 3px #66826b1c;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.toggle-row {
  border-top: 1px solid #efefea;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.toggle-row b,
.toggle-row small {
  display: block;
}
.toggle-row small {
  font-weight: 400;
  color: #92988f;
  margin-top: 3px;
}
.toggle-row input {
  accent-color: #315943;
  width: 16px;
  height: 16px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 17px;
  margin-top: 18px;
  border-top: 1px solid #efefea;
}
.toast {
  position: fixed;
  bottom: 25px;
  right: 26px;
  background: #252c27;
  color: #fff;
  padding: 11px 15px;
  border-radius: 8px;
  box-shadow: 0 6px 20px #10161024;
  font-size: 12px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 1000px) {
  .rail {
    width: 190px;
  }
  main {
    margin-left: 190px;
  }
  .content {
    padding: 35px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .toolbar {
    align-items: start;
    gap: 12px;
    flex-direction: column;
  }
  .box-tabs {
    max-width: 100%;
  }
  .toolbar-actions {
    width: 100%;
    padding-bottom: 10px;
  }
  .search {
    flex: 1;
  }
}
@media (max-width: 680px) {
  .rail {
    position: static;
    width: auto;
    height: 54px;
    padding: 0 14px;
    flex-direction: row;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid #e5e5df;
  }
  .brand {
    padding: 0;
    font-size: 13px;
  }
  .brand-mark {
    width: 25px;
    height: 25px;
  }
  .workspace-label,
  .nav-item,
  .rail-bottom {
    display: none;
  }
  main {
    margin: 0;
  }
  .topbar {
    height: 46px;
    padding: 0 17px;
  }
  .save-state {
    font-size: 0;
  }
  .save-state .status-dot {
    height: 8px;
    width: 8px;
  }
  .content {
    padding: 27px 16px;
  }
  .intro {
    align-items: start;
  }
  .intro h1 {
    font-size: 24px;
  }
  .intro p {
    font-size: 11px;
    max-width: 250px;
    line-height: 1.5;
  }
  .intro > .button {
    padding: 0 10px;
  }
  .intro > .button span,
  .toolbar-actions .outline span {
    display: none;
  }
  .toolbar-actions {
    gap: 6px;
  }
  .search {
    width: auto;
    min-width: 70px;
  }
  .toolbar-actions .button {
    padding: 0 10px;
  }
  .table-wrap {
    overflow-x: auto;
  }
  table {
    min-width: 650px;
  }
  .table-footer {
    gap: 15px;
  }
  .notice {
    align-items: start;
  }
  .notice div span {
    line-height: 1.45;
  }
}
