@import url("/type.css?v=20261030-cache");
.drop-results { display: grid; gap: 16px; margin: 20px 0; }
.drop-results li { margin: 8px 0; overflow-wrap: anywhere; }
.browser-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}
.browser-heading h2 {
  font-size: 28px;
  margin: 8px 0;
}
.browser-heading p {
  margin-bottom: 0;
  max-width: 650px;
}
.source-categories,
.picker-filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.source-categories button,
.picker-filters button {
  padding: 9px 14px;
  font-size: 12px;
}
.source-categories .active,
.picker-filters .active {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.source-search {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}
.source-search input {
  max-width: 620px;
}
.source-search button {
  white-space: nowrap;
}
.source-sections section {
  margin-bottom: 30px;
}
.source-sections h3 {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 12px;
}
.source-card {
  display: flex;
  align-items: center;
  min-height: 112px;
  padding: 16px;
  gap: 16px;
  text-align: left;
  background: var(--panel);
  border-color: var(--line);
}
.source-card:hover {
  transform: translateY(-2px);
}
.source-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.source-copy strong {
  font-size: 15px;
}
.source-copy small {
  font-size: 11px;
}
.enabled {
  color: var(--accent);
}
.artwork {
  flex: none;
  width: 76px;
  height: 76px;
  position: relative;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, #39473550, transparent 75%);
}
.artwork img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
}
.art-fallback {
  font-size: 40px;
  color: #9dae91;
}
.artwork.loaded .art-fallback {
  visibility: hidden;
}
.loot-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 24px;
}
.loot-settings {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 18px;
  padding: 20px;
}
.loot-settings p {
  margin: 0;
}
.loot-settings h3 {
  margin: 0;
}
.loot-section {
  margin-bottom: 24px;
}
.loot-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.loot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  padding: 12px 8px;
  min-height: 185px;
  background: #1d2821;
  border-top: 3px solid var(--group-color, #b6cd83);
}
.loot-item .artwork {
  width: 85px;
  height: 85px;
}
.loot-item strong {
  font-size: 12px;
  line-height: 1.4;
}
.loot-item small {
  color: var(--muted);
  font-size: 10px;
}
.loot-item .provider-label {
  color: var(--accent);
  font-size: 9px;
}
.loot-group {
  border: 1px solid var(--line);
  border-left: 4px solid var(--group-color);
  padding: 18px;
  margin: 24px 0;
  border-radius: 8px;
  background: #172018;
}
.group-0 {
  --group-color: #a1c97a;
}
.group-1 {
  --group-color: #6bb6d5;
}
.group-2 {
  --group-color: #d2a35a;
}
.group-3 {
  --group-color: #c188c0;
}
.group-4 {
  --group-color: #db7d74;
}
.group-5 {
  --group-color: #8f92db;
}
.group-settings {
  display: grid;
  grid-template-columns: 1fr 100px 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 22px;
}
.group-settings button {
  padding: 10px;
}
.range-fields {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-width: 0;
}
.range-fields legend {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.range-fields label {
  font-size: 10px;
}
.advanced-settings {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: grid;
  gap: 14px;
}
.advanced-settings summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 16px;
}
.advanced-settings > label {
  margin-bottom: 12px;
}
.help {
  font-size: 12px;
}
.item-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
  gap: 8px;
}
.item-picker-grid button {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 12px 8px;
  font-size: 12px;
}
.item-picker-grid small {
  color: var(--muted);
}
.item-picker-grid > p {
  grid-column: 1/-1;
}
.picker-filters {
  gap: 5px;
  margin-top: 14px;
}
.picker-filters button {
  padding: 7px 10px;
  font-size: 11px;
}
#item-modal {
  width: min(860px, 94vw);
}
.item-editor-heading {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}
.item-editor-heading .artwork {
  width: 120px;
  height: 120px;
}
.item-editor-heading h2 {
  margin: 10px 0;
}
.item-edit-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.extra-items {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.extra-items button {
  margin: 0 8px 8px 0;
}
.item-edit-form .error {
  color: var(--danger);
}
@media (max-width: 1150px) {
  .loot-editor-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .loot-settings {
    position: static;
    grid-row: 1;
  }
  .browser-heading {
    flex-direction: column;
    align-items: stretch;
  }
  .group-settings {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .source-grid {
    grid-template-columns: 1fr;
  }
  .source-search {
    flex-direction: column;
  }
  .item-edit-fields {
    grid-template-columns: 1fr;
  }
  .loot-item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .group-settings {
    grid-template-columns: 1fr;
  }
}
:root {
  color-scheme: dark;
  --bg: #101412;
  --panel: #191f1b;
  --line: #313b33;
  --text: #e9eee5;
  --muted: #a1afa0;
  --accent: #dcf58c;
  --ink: #1b2510;
  --danger: #ffa391;
  font-family: Arial, Helvetica, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  background: #232b24;
  border: 1px solid #465242;
  border-radius: 6px;
  color: var(--text);
  padding: 10px 14px;
  cursor: pointer;
}
button:hover {
  border-color: var(--accent);
  background: #303a2d;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  font-weight: 700;
}
.primary:hover {
  background: #edfdb7;
}
.quiet {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.danger {
  color: var(--danger);
}
input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  color: var(--text);
  border: 1px solid #465242;
  border-radius: 5px;
  background: #101612;
  min-width: 0;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
textarea {
  min-height: 90px;
  resize: vertical;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 500;
  margin-bottom: 0;
}
h2 {
  font-size: 21px;
  font-weight: 500;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.6;
  color: var(--muted);
}
.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 16px;
}
.muted,
small {
  color: var(--muted);
}
.badge {
  display: inline-block;
  background: #2c3921;
  color: var(--accent);
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1350px;
  margin: auto;
  align-items: center;
  padding: 60px 9%;
  gap: 100px;
}
.login-card h1 {
  font-size: 60px;
  line-height: 1.03;
  margin: 25px 0;
}
.login-card form {
  display: grid;
  gap: 18px;
  margin: 32px 0;
}
.login-art {
  aspect-ratio: 1;
  background: repeating-linear-gradient(
    140deg,
    transparent 0 35px,
    #263526 36px 37px
  );
  display: grid;
  place-items: center;
}
.crate {
  width: 260px;
  height: 260px;
  background: #c2d686;
  color: #253719;
  transform: rotate(-9deg);
  border: 15px double #344925;
  font-size: 110px;
  font-weight: 900;
  padding: 28px;
  box-shadow: 24px 24px 0 #293927;
}
.crate span {
  font-size: 12px;
  letter-spacing: 4px;
  display: block;
}
.sidebar {
  position: fixed;
  width: 235px;
  inset: 0 auto 0 0;
  padding: 34px 22px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: #131a15;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 52px;
}
.brand b {
  background: var(--accent);
  color: var(--ink);
  padding: 10px;
  border-radius: 6px;
}
.brand span {
  font-size: 16px;
  font-weight: 700;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  margin-top: 5px;
}
nav {
  display: grid;
  gap: 6px;
}
nav button {
  text-align: left;
  background: transparent;
  border: 0;
  display: flex;
  gap: 12px;
  color: var(--muted);
  padding: 13px;
}
nav button.active {
  color: var(--accent);
  background: #283421;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-bottom p {
  font-size: 12px;
  margin: 18px 0;
}
main {
  margin-left: 235px;
  padding: 34px 42px;
  max-width: 1800px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.header-actions .muted {
  font-size: 11px;
  margin-right: 12px;
}
.statusbar {
  border-block: 1px solid var(--line);
  display: flex;
  gap: 30px;
  padding: 15px 0;
  font-size: 12px;
  margin-bottom: 30px;
  color: var(--muted);
}
.statusbar #user {
  margin-left: auto;
}
.dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}
.profiles-layout {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 24px;
}
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 9px;
  padding: 24px;
}
.profile-list {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  max-height: 62vh;
  overflow: auto;
}
.profile-row {
  display: flex;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 5px;
}
.profile-row button {
  text-align: left;
  border: 0;
  flex: 1;
  background: transparent;
  min-width: 0;
  padding: 10px 5px;
}
.profile-row.active {
  background: #2b3822;
  border-radius: 4px;
}
.profile-row small {
  display: block;
  font-size: 10px;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.profile-row .enabled {
  color: var(--accent);
}
.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 18px 0;
}
.toolbar button {
  font-size: 11px;
  padding: 8px 10px;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.panel-header h2 {
  margin: 0;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.wide {
  grid-column: 1/-1;
}
.check {
  flex-direction: row;
  align-items: center;
  padding: 10px 0;
}
.array {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.array h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.array h3 button {
  padding: 6px 10px;
  font-size: 11px;
}
.entry {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  margin: 10px 0;
  background: #141a16;
}
.entry summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.entry[open] summary {
  margin-bottom: 18px;
}
.entry .fields {
  gap: 12px;
}
.entry .array {
  margin-top: 14px;
}
.entry-actions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  justify-content: flex-end;
}
.entry-actions button {
  padding: 5px 9px;
  font-size: 11px;
}
.empty {
  min-height: 240px;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 35px;
}
.empty h2 {
  font-size: 25px;
}
.empty p {
  max-width: 380px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.node .badge {
  margin-bottom: 20px;
}
.node h2 {
  font-size: 24px;
}
.node dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 12px;
}
.node dd {
  margin: 0;
  text-align: right;
}
.node .error {
  color: var(--danger);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
}
.notice,
#notice {
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: #283320;
  margin-bottom: 22px;
  color: var(--text);
  line-height: 1.5;
}
#notice.error {
  border-color: var(--danger);
  background: #3a2622;
}
footer {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 42px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
footer span {
  flex: 1;
}
footer button {
  font-size: 11px;
}
.simulation-controls {
  border-top: 1px solid #3d493b;
  padding-top: 18px;
  margin-top: 18px;
}
.simulation-controls > button { width: 100%; margin-top: 10px; }
.simulation-summary, .simulation-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.simulation-summary {
  background: #101811;
  padding: 14px;
  border-radius: 8px;
}
.simulation-pages { margin: 18px 0; }
.simulation-roll { border-top: 1px solid #3d493b; padding: 16px 0; }
.simulation-roll h3 { margin: 0; }
.simulation-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
  gap: 10px;
}
.simulation-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  background: #111a14;
  border: 1px solid #46553e;
  border-radius: 8px;
  text-align: center;
  overflow-wrap: anywhere;
}
.simulation-item .artwork { width: 64px; height: 64px; }
.simulation-item small { color: var(--muted); font-size: 11px; }
.simulation-quantity { color: var(--accent); font-weight: 700; }
.simulation-empty { padding: 16px; border: 1px dashed #526048; color: var(--muted); }
dialog {
  background: #1a221c;
  border: 1px solid #5b6e50;
  color: var(--text);
  border-radius: 12px;
  width: min(850px, 92vw);
  max-height: 88vh;
  padding: 30px;
  box-shadow: 0 20px 80px #0008;
}
dialog::backdrop {
  background: #000a;
  backdrop-filter: blur(3px);
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.json {
  font-family: Consolas, monospace;
  font-size: 12px;
  min-height: 45vh;
  white-space: pre;
}
.picker {
  max-height: 50vh;
  overflow: auto;
  display: grid;
  gap: 7px;
  margin-top: 20px;
}
.picker button {
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.picker small {
  font-size: 10px;
}
.history {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.history th,
.history td {
  text-align: left;
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.history th {
  color: var(--muted);
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  max-height: 45vh;
  overflow: auto;
}
.history button {
  font-size: 11px;
}
.item-line {
  display: flex;
  gap: 8px;
}
.item-line input {
  flex: 1;
}
.item-line button {
  padding: 6px 9px;
  font-size: 11px;
}
.help {
  font-size: 12px;
  margin: 0 0 20px;
}
.mobile-hide {
  display: initial;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  .sidebar {
    width: 190px;
    padding: 25px 15px;
  }
  main {
    margin-left: 190px;
    padding: 25px;
  }
  .profiles-layout {
    grid-template-columns: 225px minmax(0, 1fr);
  }
  header {
    align-items: flex-start;
  }
  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .header-actions .muted {
    width: 100%;
    text-align: right;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 20px;
  }
  .brand {
    margin-bottom: 18px;
  }
  .sidebar > .eyebrow,
  .sidebar-bottom p {
    display: none;
  }
  .sidebar-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
  }
  nav {
    display: flex;
    overflow: auto;
  }
  nav button {
    white-space: nowrap;
    padding: 10px;
  }
  main {
    margin: 0;
    padding: 20px;
  }
  header {
    flex-direction: column;
    align-items: stretch;
  }
  .header-actions {
    justify-content: flex-start;
  }
  .header-actions .muted {
    display: none;
  }
  .profiles-layout {
    grid-template-columns: 1fr;
  }
  .profile-list {
    max-height: 220px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .statusbar {
    flex-wrap: wrap;
    gap: 15px;
  }
  .panel {
    padding: 18px;
  }
  footer {
    flex-wrap: wrap;
  }
  footer span {
    display: none;
  }
  .login {
    grid-template-columns: 1fr;
    padding: 40px;
    gap: 20px;
  }
  .login-art {
    display: none;
  }
  .login-card h1 {
    font-size: 50px;
  }
  .history {
    font-size: 11px;
  }
  .history th,
  .history td {
    padding: 10px 5px;
  }
}
.picker-pages {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.variant-notice {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 1rem;
}
