:root {
  color-scheme: dark;
  font-family: Inter, Geist, system-ui, sans-serif;
  color: #f6f2fb;
  background: #090910;
  --muted: #b6b0c6;
  --line: #eee5ff24;
  --cyan: #a6f3ff;
  --lilac: #d9c5ff;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  margin: 0;
  line-height: 1.5;
  background:
    radial-gradient(ellipse 44rem 26rem at 72% 0%, #21264e9c, transparent 78%),
    radial-gradient(ellipse 38rem 27rem at 3% 12%, #42205a52, transparent 77%),
    #090910;
}

h1, h2, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, summary, .upload { cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.wrap { width: min(calc(100% - 56px), 1160px); margin-inline: auto; }

.topbar {
  border-bottom: 1px solid var(--line);
  background: #11102073;
}

.header-inner {
  min-height: 74px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  font-size: 1.0625rem;
  font-weight: 750;
  line-height: 1.24;
}

.brand small { display: block; color: var(--muted); font-size: .75rem; font-weight: 500; }

.brand-mark {
  position: relative;
  width: 33px;
  height: 33px;
  flex: 0 0 33px;
  border: 1px solid #b3d5fb;
  border-radius: 50%;
  background: linear-gradient(150deg, #b7d9ff32, #20182b);
  box-shadow: inset 0 1px #edf3ff54, 0 3px 9px #0008;
}

.brand-mark::before {
  content: '';
  position: absolute;
  width: 7px;
  height: 8px;
  top: 7px;
  left: 15px;
  border-left: 1px solid #d2f5ff;
  border-bottom: 1px solid #d2f5ff;
}

nav { display: flex; flex-wrap: wrap; gap: 6px 21px; }
nav a { padding-block: 4px; color: var(--muted); font-size: .9375rem; font-weight: 620; }
nav a:hover { color: #f6f2fb; }

main { padding-block: 38px 56px; }
.page-heading { margin-bottom: 23px; }

h1 {
  margin-bottom: 6px;
  font-size: clamp(2.1rem, 5.4vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -.065em;
}

h2 { font-size: clamp(1.25rem, 2.5vw, 1.55rem); line-height: 1.18; letter-spacing: -.04em; }
.muted { color: var(--muted); font-size: .9375rem; }

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.panel {
  min-width: 0;
  padding: clamp(18px, 2.45vw, 28px);
  border: 1px solid var(--line);
  border-top-color: #bce7ff65;
  border-radius: 17px;
  background:
    radial-gradient(ellipse at 92% 0%, #504b8a3b, transparent 66%),
    linear-gradient(152deg, #28253dba, #13121ceb 67%);
  box-shadow: inset 0 1px #e8f7ff27, 0 15px 32px #0006;
  scroll-margin-top: 14px;
}

.pog-panel {
  border-top-color: #dec2ff6b;
  background:
    radial-gradient(ellipse at 97% 0%, #66346e37, transparent 67%),
    linear-gradient(152deg, #28233cbd, #13121ceb 65%);
}

.panel-head, .panel-actions, .actions {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.panel-actions, .actions { justify-content: flex-start; }
.section-intro { margin-top: 9px; }

.campaign-status {
  padding: 4px 11px;
  color: var(--lilac);
  font-size: .8125rem;
  font-weight: 680;
  border: 1px solid #d9beff39;
  border-radius: 20px;
  background: #302442;
}

.campaign-status[data-state="active"] { color: #b1f8d9; border-color: #a4ffd459; background: #193933; }
.campaign-status[data-state="ended"] { color: #ffd0da; border-color: #ffd0da52; background: #422838; }

.launch-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 9px;
  margin-top: 11px;
  color: var(--muted);
  font-size: .9375rem;
}

.launch-price strong { color: #f4ebff; font-size: 2.25rem; line-height: 1.05; letter-spacing: -.055em; }

.entry-form, .filters {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 640;
}

input, select {
  min-width: 0;
  max-width: 100%;
  min-height: 42px;
  padding: 7px 10px;
  color: #f6f2fb;
  border: 1px solid #f4eaff35;
  border-radius: 8px;
  background: #0e0d17;
}

.pog-form input { width: 77px; }

button, .upload {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 42px;
  padding: 8px 13px;
  color: #131226;
  font-size: .875rem;
  font-weight: 730;
  border: 1px solid #e8f6ff95;
  border-radius: 8px;
  background: linear-gradient(145deg, #d4fbff, #d8c7ff 83%);
  box-shadow: inset 0 1px #fff9, 0 4px 9px #0004;
}

.secondary {
  color: #f6f1ff;
  border-color: #f0e5ff44;
  background: linear-gradient(150deg, #ffffff15, #ffffff04);
  box-shadow: inset 0 1px #fff2;
}

button:enabled:hover, .upload:hover { filter: brightness(1.15); }
button:disabled, input:disabled, select:disabled { cursor: default; opacity: .56; }

.upload input {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.upload:focus-within { outline: 2px solid var(--cyan); outline-offset: 3px; }

.readouts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-block: 15px;
  margin-block: 18px 13px;
  border-block: 1px solid var(--line);
}

.readouts dt { color: var(--muted); font-size: .875rem; }
.readouts dd { font-size: clamp(1.04rem, 2.9vw, 1.45rem); font-weight: 720; overflow-wrap: anywhere; }
.claim-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.feedback:not(:empty) { margin-top: 9px; color: var(--cyan); font-size: .875rem; }

details { margin-top: 13px; color: var(--muted); font-size: .9375rem; }
summary { padding-block: 4px; }
.history { padding-inline-start: 23px; margin-block: 4px 0; }
.history li + li { margin-top: 6px; }

.claims-panel #message { margin-top: 10px; }
.filters { margin-block: 14px; }
.filters label:first-child { flex: 0 1 260px; }
.table-scroll { overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; text-align: left; font-size: .875rem; }
th, td { padding: 11px 13px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 650; }
tbody tr:last-child td { border-bottom: 0; }
.empty { color: var(--muted); padding: 24px 13px; text-align: center; }

dialog {
  width: min(calc(100% - 32px), 435px);
  max-height: 85dvh;
  overflow: auto;
  color: inherit;
  background: #1a1729;
  border: 1px solid #c8b6f479;
  border-radius: 16px;
  padding: 23px;
  box-shadow: 0 32px 70px #000b;
}

dialog::backdrop { background: #080710b8; backdrop-filter: blur(5px); }
dialog .muted, dialog label, dialog button[type="submit"] { margin-top: 12px; }
dialog label { width: min(100%, 225px); }
.close-button { min-width: 38px; padding: 0; font-size: 1.35rem; }

@media (max-width: 820px) {
  .workspace-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .wrap { width: calc(100% - 30px); }
  .header-inner { align-items: flex-start; flex-direction: column; }
  nav { column-gap: 15px; }
  nav a { font-size: .875rem; }
  main { padding-top: 26px; }
  .readouts dt { font-size: .8125rem; }
}
