@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root {
  color-scheme: dark;
  --bg: #101313;
  --panel: #181c1c;
  --line: #303636;
  --text: #e5e8e2;
  --muted: #909b94;
  --lime: #d2ed9d;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px 'DM Sans',
    sans-serif;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  border-right: 1px solid var(--line);
  padding: 36px 23px;
  background: #141818;
}
.brand {
  display: flex;
  gap: 12px;
  font: 32px 'Space Grotesk';
  color: var(--lime);
  text-decoration: none;
}
.brand span {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 3px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 4px;
}
.side-label {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #68776c;
  margin: 60px 10px 20px;
}
.nav {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 13px 10px;
  margin: 5px 0;
  font-size: 12px;
}
.nav.active {
  background: #242d23;
  color: var(--lime);
  border-left: 2px solid var(--lime);
}
.side-bottom {
  position: absolute;
  bottom: 25px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}
main {
  margin-left: 238px;
  padding: 30px 42px;
  max-width: 1650px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--muted);
}
.accent {
  color: var(--lime);
}
button,
.button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 9px 13px;
  font: 11px 'DM Sans';
  cursor: pointer;
  border-radius: 5px;
  display: inline-block;
}
button:hover,
.button:hover {
  border-color: var(--lime);
  color: var(--lime);
}
.actions {
  display: flex;
  gap: 8px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 53px 0 37px;
}
.intro h1 {
  font: 500 clamp(28px, 3vw, 45px) / 1.15 'Space Grotesk';
  letter-spacing: -1.5px;
  margin: 17px 0;
}
.intro em {
  font-style: normal;
  color: var(--lime);
}
.intro p,
.sub {
  color: var(--muted);
  font-size: 12px;
}
.seal {
  border: 1px solid #48503b;
  color: var(--lime);
  font: 55px 'Space Grotesk';
  width: 145px;
  height: 145px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transform: rotate(-10deg);
  margin-right: 30px;
}
.seal small {
  font: 7px 'DM Sans';
  letter-spacing: 1px;
  margin-top: 8px;
}
.workspace {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 25px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 24px;
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.section-top h2 {
  font: 500 18px 'Space Grotesk';
  margin: 0;
}
.section-top > span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1px;
}
.settings .section-top > span {
  font-size: 7px;
}
.settings label {
  display: block;
  margin-bottom: 16px;
  color: #adb7ae;
  font-size: 11px;
}
input[type='number'],
input[type='date'] {
  display: block;
  background: #111616;
  border: 1px solid #39413a;
  color: var(--text);
  border-radius: 5px;
  padding: 10px 12px;
  width: 100%;
  margin-top: 7px;
  font: 14px 'Space Grotesk';
  outline: none;
}
input:focus {
  border-color: var(--lime);
}
.mini {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  padding-bottom: 20px;
}
.mini strong {
  color: var(--lime);
}
label.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
}
.toggle input {
  accent-color: var(--lime);
  width: 17px;
  height: 17px;
  cursor: pointer;
}
.note {
  font-size: 10px;
  color: #829084;
  line-height: 1.8;
}
.outlook {
  padding-top: 4px;
}
.targets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.target {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 24px;
  background: linear-gradient(135deg, #222b23, #171c19);
}
.target-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--lime);
}
.target-head span + span {
  color: var(--muted);
  font-size: 8px;
}
.run-number {
  font: 500 65px 'Space Grotesk';
  margin: 26px 0 12px;
  letter-spacing: -3px;
}
.run-number small {
  display: block;
  font: 12px 'DM Sans';
  letter-spacing: 0;
  color: #c3ccc0;
  margin-top: 0;
}
.status {
  color: var(--lime);
  font-size: 10px;
  min-height: 28px;
}
dl {
  margin-bottom: 0;
}
dl div {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  padding: 8px 0;
}
dd {
  margin: 0;
  color: #d5dfd1;
}
.total-line {
  border-top: 1px solid #3c4838;
  margin-top: 7px;
  padding-top: 15px;
  color: var(--text);
}
.income-strip {
  padding: 25px 5px 0;
}
.income-strip > span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.2px;
}
.income-strip strong {
  float: right;
  color: var(--lime);
  font: 18px 'Space Grotesk';
}
.income-strip p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 15px;
}
.bar {
  height: 5px;
  background: #323e2d;
  margin-top: 20px;
  border-radius: 3px;
}
.bar i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--lime);
  opacity: 0.65;
  border-radius: 3px;
}
.roster {
  margin: 28px 0;
}
.roster .eyebrow,
#income .eyebrow {
  margin-bottom: 9px;
}
.sub {
  margin-bottom: 22px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: right;
}
th {
  font-size: 9px;
  font-weight: 500;
  color: var(--muted);
  padding: 12px 10px;
  background: #141919;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 10px;
  border-bottom: 1px solid #2a302c;
  font-size: 12px;
}
td:first-child,
th:first-child {
  text-align: left;
}
td:first-child {
  font-weight: 500;
  min-width: 155px;
}
.sinner-number {
  font: 10px 'Space Grotesk';
  color: #72856b;
  margin-right: 16px;
}
td input[type='number'] {
  width: 76px;
  padding: 7px 8px;
  margin: 0 0 0 auto;
  text-align: right;
  font-size: 12px;
}
.shortfall {
  color: #dbc59b;
}
.muted {
  color: #99ab91;
}
.maintenance-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 30px;
}
.maintenance-grid label {
  color: var(--muted);
  font-size: 11px;
}
.stat {
  padding: 15px 0 0 23px;
  border-left: 1px solid var(--line);
}
.stat span,
.stat small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.stat strong {
  font: 30px 'Space Grotesk';
  display: block;
  margin: 15px 0 7px;
  color: var(--lime);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #7e8d7b;
  padding: 30px 0;
}
.offline-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 11px;
}
.offline-status button[hidden] {
  display: none;
}
footer span {
  letter-spacing: 0;
  max-width: 570px;
  text-align: right;
}
#toast:not(:empty) {
  position: fixed;
  bottom: 25px;
  right: 25px;
  padding: 16px 24px;
  background: var(--lime);
  color: #192017;
  border-radius: 6px;
  box-shadow: 0 5px 30px #0008;
}
section[id] {
  scroll-margin-top: 20px;
}
sup {
  font-size: 8px;
}
.collection {
  margin-top: 28px;
}
.wanted-panel {
  margin-bottom: 28px;
}
.roster .sub,
.wanted-panel .sub {
  line-height: 1.8;
  margin: 0 0 24px;
  max-width: 78ch;
}
.roster .section-top,
.wanted-panel .section-top {
  margin-bottom: 14px;
}
.roster td,
.roster th {
  padding: 14px 12px;
}
.wanted-queue {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.wanted-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 18px 20px;
}
.wanted-row > div {
  min-width: 0;
}
.wanted-row strong {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.wanted-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 6px;
  line-height: 1.6;
}
.wanted-row button {
  flex-shrink: 0;
  color: var(--lime);
}
input[readonly][data-key] {
  color: var(--lime);
  background: #20281e;
  cursor: default;
}
@media (max-width: 850px) {
  .wanted-queue {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .wanted-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }
  .wanted-row button {
    justify-self: start;
  }
}
.collection-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin: 22px 0;
}
.collection-filters label {
  color: var(--muted);
  font-size: 11px;
  min-width: 0;
}
.collection-search {
  grid-column: span 3;
}
.collection-filters input,
.collection-filters select {
  display: block;
  width: 100%;
  min-width: 0;
  background: #111616;
  border: 1px solid #39413a;
  color: var(--text);
  border-radius: 5px;
  padding: 11px 12px;
  margin-top: 7px;
  font:
    12px 'DM Sans',
    sans-serif;
}
.primary-status-filter {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 15px 18px;
  margin: 0 0 15px;
}
.primary-status-filter legend {
  color: var(--text);
  font-size: 12px;
  padding: 0 6px;
}
.primary-status-filter legend span {
  color: var(--muted);
  font-size: 10px;
  margin-left: 12px;
}
.status-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 12px 0 16px;
}
.status-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #39413a;
  border-radius: 20px;
  padding: 8px 13px;
  font-size: 12px;
  cursor: pointer;
}
.status-chip:has(input:checked) {
  background: #2c3925;
  border-color: #8aab66;
  color: var(--lime);
}
.status-chip:has(input:disabled) {
  opacity: 0.4;
  cursor: not-allowed;
}
.status-chip input {
  accent-color: var(--lime);
  margin: 0;
}
.status-match-label,
.collection-advanced label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}
.status-match-label select,
.collection-advanced select {
  max-width: 100%;
  background: #111616;
  border: 1px solid #39413a;
  border-radius: 5px;
  padding: 9px 12px;
  color: var(--text);
}
.collection-advanced {
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
}
.collection-advanced summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}
.collection-advanced[open] summary {
  margin-bottom: 16px;
  color: var(--lime);
}
.collection-toolbar,
.collection-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.collection-toolbar > span,
.collection-pagination span {
  color: var(--muted);
  font-size: 11px;
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin: 20px 0;
}
.collection-card {
  border: 1px solid var(--line);
  background: #141919;
  border-radius: 7px;
  padding: 19px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.collection-card.owned {
  border-color: #6a8752;
}
.collection-artwork {
  aspect-ratio: 16 / 9;
  margin: -19px -19px 18px;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(135deg, #293323, #101616);
}
.collection-artwork img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.collection-artwork.unavailable {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
}
.collection-card.wanted {
  border-color: #a58b59;
}
.collection-meta {
  color: var(--lime);
  font-size: 9px;
  letter-spacing: 0.7px;
  margin: 0 0 12px;
}
.collection-card h3 {
  font:
    500 16px/1.45 'Space Grotesk',
    sans-serif;
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}
.collection-season {
  color: #bdc7b7;
  font-size: 10px;
  margin: 0 0 12px;
}
.collection-tags {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
  margin: 0 0 18px;
}
.collection-controls {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.collection-controls button {
  flex: 1;
}
.collection-controls button[aria-pressed='true'] {
  color: var(--lime);
  background: #2c3925;
  border-color: #6a8752;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.collection-locked {
  margin-top: 10px;
  color: #c4a77b;
  font-size: 9px;
}
.collection-pagination {
  justify-content: center;
  margin: 25px 0;
}
.collection-empty {
  color: var(--muted);
  grid-column: 1 / -1;
  padding: 25px 0;
}
.collection .note a {
  color: var(--lime);
}
@media (max-width: 1150px) {
  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .collection-grid {
    grid-template-columns: 1fr;
  }
  .collection-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .collection-search {
    grid-column: span 2;
  }
  .collection-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (min-width: 1600px) {
  main {
    margin-right: auto;
  }
}
@media (max-width: 1150px) {
  aside {
    width: 190px;
    padding: 30px 16px;
  }
  main {
    margin-left: 190px;
    padding: 25px;
  }
  .workspace {
    grid-template-columns: 240px 1fr;
    gap: 17px;
  }
  .target {
    padding: 18px;
  }
  .seal {
    display: none;
  }
  .maintenance-grid {
    gap: 15px;
  }
  .target-head {
    flex-direction: column;
  }
}
@media (max-width: 850px) {
  aside {
    display: none;
  }
  main {
    margin-left: 0;
    padding: 22px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .settings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 22px;
  }
  .settings .section-top,
  .settings .note {
    grid-column: 1/-1;
  }
  .mini {
    grid-column: 1/-1;
  }
  .maintenance-grid {
    grid-template-columns: 1fr 1fr;
  }
  header {
    align-items: start;
  }
  .actions {
    flex-wrap: wrap;
  }
  .intro {
    padding: 35px 0;
  }
  .section-top {
    flex-wrap: wrap;
  }
}
@media (max-width: 480px) {
  main {
    padding: 16px;
  }
  .targets {
    grid-template-columns: 1fr;
  }
  .settings {
    display: block;
  }
  .maintenance-grid {
    grid-template-columns: 1fr 1fr;
  }
  .maintenance-grid > div:first-child {
    grid-column: 1/-1;
  }
  .intro h1 {
    font-size: 32px;
  }
  .panel {
    padding: 18px;
  }
  header {
    flex-direction: column;
  }
  .run-number {
    font-size: 55px;
  }
  footer {
    flex-direction: column;
  }
  footer span {
    text-align: left;
  }
  .target-head {
    flex-direction: row;
  }
}
