:root {
  color-scheme: dark;
  --bg: #0c1420;
  --panel: #132033;
  --surface: #192940;
  --line: #304158;
  --ink: #eef4fa;
  --muted: #adc0d2;
  --accent: #6de5bd;
  --warn: #ffce87;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
header,
footer {
  max-width: 1440px;
  margin: auto;
  padding: 1.3rem 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
header {
  border-bottom: 1px solid var(--line);
}
header a {
  font-size: 0.9rem;
  text-decoration: none;
}
.brand {
  font-weight: 750;
  color: var(--ink);
}
.brand span {
  font-weight: 400;
  color: var(--muted);
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 2.8rem 3rem;
}
.hero {
  max-width: 850px;
  margin-bottom: 2.3rem;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  font-weight: 750;
  color: var(--accent);
  margin: 0 0 0.5rem;
}
h1 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0.1rem 0 0.8rem;
}
.intro {
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  line-height: 1.13;
  letter-spacing: -0.045em;
  font-weight: 740;
  margin: 0.3rem 0 1.2rem;
}
.intro span {
  color: var(--accent);
}
.description {
  max-width: 680px;
  font-size: 1.08rem;
  color: var(--muted);
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.badges span {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.24rem 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.workspace {
  display: grid;
  grid-template-columns: minmax(290px, 0.8fr) minmax(0, 1.65fr);
  gap: 1.4rem;
  align-items: start;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
  min-width: 0;
}
.input-panel {
  position: sticky;
  top: 1rem;
}
h2 {
  font-size: 1.15rem;
  margin: 0 0 1.1rem;
  letter-spacing: -0.015em;
}
h3 {
  font-size: 1.3rem;
  line-height: 1.35;
  margin: 0.4rem 0 1rem;
}
h4 {
  margin: 0.8rem 0;
  font-size: 1rem;
}
p {
  margin: 0.7rem 0;
}
label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}
input,
textarea,
select,
button {
  font: inherit;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #4a5b72;
  border-radius: 7px;
  background: #0c1727;
  color: var(--ink);
  padding: 0.7rem 0.8rem;
  min-width: 0;
}
textarea {
  resize: vertical;
  font-size: 0.9rem;
  line-height: 1.6;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
button {
  border: 1px solid #52657e;
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  padding: 0.6rem 0.95rem;
  font-weight: 650;
  font-size: 0.9rem;
  cursor: pointer;
  min-height: 42px;
}
button:hover {
  background: #253c55;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
.primary {
  background: var(--accent);
  color: #10291f;
  border: 0;
  width: 100%;
  margin-top: 0.6rem;
}
.primary:hover {
  background: #a3f2d8;
}
.quiet {
  background: transparent;
}
.actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.dropzone {
  border: 1px dashed #668398;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.1rem;
  background: #142b35;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.dropzone span:not(.file-symbol) {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
}
.dropzone small {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 0.6rem;
}
.file-symbol {
  display: grid;
  place-items: center;
  background: #264b4d;
  color: var(--accent);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.7rem;
  line-height: 1;
  margin-bottom: 0.6rem;
}
.dropzone input {
  font-size: 0.8rem;
  width: 100%;
  margin-top: 1rem;
  cursor: pointer;
  background: transparent;
  padding: 0.4rem;
  border-color: #668398;
}
.dropzone.dragging {
  outline: 3px solid var(--accent);
}
.divider {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 1.2rem 0;
}
.divider:before,
.divider:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
#status {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
}
.error {
  color: #ffb7af !important;
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.section-top h2 {
  margin: 0.2rem 0;
}
.empty {
  min-height: 370px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 440px;
  margin: auto;
  color: var(--muted);
}
.empty h3 {
  color: var(--ink);
}
.empty-mark {
  font-size: 4rem;
  color: #668398;
  line-height: 1.2;
  margin: 1rem;
}
.result-heading {
  border-top: 1px solid var(--line);
  margin-top: 1.2rem;
  padding-top: 1.2rem;
}
.result-heading h3 {
  overflow-wrap: anywhere;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin: 1rem 0;
}
.stats > div {
  background: #0d1929;
  border-radius: 8px;
  padding: 1rem;
}
.stats span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}
.stats strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 0.2rem;
  overflow-wrap: anywhere;
}
.muted {
  color: var(--muted);
  font-size: 0.86rem;
}
.warnings {
  background: #30291f;
  border: 1px solid #745d38;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  color: var(--warn);
}
.warnings ul {
  padding-left: 1.2rem;
  font-size: 0.88rem;
}
.warnings li + li {
  margin-top: 0.4rem;
}
details {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}
summary {
  font-weight: 650;
  cursor: pointer;
  font-size: 0.95rem;
}
summary span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
}
dl {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 0.6rem 1rem;
  font-size: 0.85rem;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: ui-monospace, monospace;
}
.address-list {
  list-style: none;
  padding: 0;
  font-size: 0.85rem;
}
.address-list li {
  padding: 0.5rem 0;
}
.address-list strong,
.address-list code,
.address-list small {
  display: block;
  overflow-wrap: anywhere;
}
.address-list code {
  color: var(--muted);
  font-size: 0.8rem;
}
.address-list small {
  color: var(--warn);
}
.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  margin: 0;
}
.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.table-wrap {
  overflow-x: auto;
  margin-top: 0.8rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
th {
  text-align: left;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}
th,
td {
  padding: 0.8rem 0.45rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.path {
  overflow-wrap: anywhere;
  min-width: 120px;
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
}
.size {
  white-space: nowrap;
}
.flag {
  color: var(--warn);
  font-size: 0.8rem;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.pagination button {
  font-size: 0.8rem;
  padding: 0.45rem 0.65rem;
}
.explain {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-top: 1.8rem;
}
.explain h2 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.explain p {
  font-size: 0.88rem;
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}
code {
  font-family: ui-monospace, monospace;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--panel);
  padding: 1rem;
  z-index: 99;
}
.skip:focus {
  top: 1rem;
}
[hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  header,
  footer {
    padding: 1rem 1.3rem;
  }
  main {
    padding: 2rem 1.3rem;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .input-panel {
    position: static;
  }
  .explain {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .empty {
    min-height: 230px;
  }
}
@media (max-width: 450px) {
  .panel {
    padding: 1rem;
  }
  .brand span {
    display: none;
  }
  .stats {
    gap: 0.4rem;
  }
  .stats > div {
    padding: 0.7rem 0.5rem;
  }
  .stats strong {
    font-size: 1.05rem;
  }
  .stats span {
    font-size: 0.7rem;
  }
  dl {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  dd {
    margin-bottom: 0.5rem;
  }
  .pagination {
    flex-wrap: wrap;
  }
  .intro {
    font-size: 2.3rem;
  }
}
:root {
  --bg: #101326;
  --panel: #1a2038;
  --surface: #262e4b;
  --line: #3a4262;
  --muted: #b8bfd8;
  --accent: #c1bbff;
  --warn: #ffd397;
}
.hero {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  max-width: none;
  align-items: center;
}
.intro {
  font-size: clamp(2.2rem, 4vw, 3.65rem);
}
.hero-orbit {
  width: 260px;
  height: 260px;
  position: relative;
  margin: auto;
  opacity: 0.8;
}
.orbit {
  border: 1px solid #697398;
  border-radius: 50%;
  position: absolute;
  inset: 18%;
}
.o1 {
  transform: rotate(-24deg) scaleX(0.42);
}
.o2 {
  transform: rotate(50deg) scaleX(0.5);
}
.o3 {
  inset: 8%;
  border-style: dashed;
  border-color: #4b5476;
}
.orbit-dot {
  position: absolute;
  top: 28%;
  left: 66%;
  width: 11px;
  height: 11px;
  background: #f3c994;
  border-radius: 50%;
  box-shadow: 0 0 22px #f3c99488;
}
.horizon-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 55%;
  height: 1px;
  background: #8b94ba;
}
.orbit-label {
  position: absolute;
  bottom: 4%;
  width: 100%;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.workspace {
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.65fr);
}
.inputs {
  position: static;
}
.inputs h3 {
  font-size: 0.95rem;
  margin: 0.2rem 0;
}
.inputs label {
  margin-top: 0.75rem;
}
select {
  appearance: none;
  background: #11192d
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23b8bfd8' stroke-width='2'/%3E%3C/svg%3E")
    right 12px center/12px 8px no-repeat;
  padding-right: 2rem;
}
input,
textarea {
  background: #11192d;
}
.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.grid-two input {
  font-variant-numeric: tabular-nums;
}
.check {
  margin: 1rem 0 !important;
}
.primary {
  background: var(--accent);
  color: #1a1740;
  margin-top: 1rem;
}
.primary:hover {
  background: #ddd9ff;
}
.text-button {
  padding: 0.3rem 0;
  background: none;
  border: 0;
  color: var(--accent);
  text-decoration: underline;
  font-size: 0.8rem;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.3rem 0;
}
.results-stack {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.stats {
  grid-template-columns: 1fr 1fr;
}
.stats > div {
  background: #12192e;
  padding: 1.2rem;
}
.stats strong {
  font-size: 2rem;
}
.stats small {
  color: var(--muted);
  font-size: 0.78rem;
}
.tag {
  color: var(--accent);
  font-size: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.18rem 0.6rem;
}
.note {
  background: #262c46;
  border-left: 3px solid var(--accent);
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
}
dl {
  grid-template-columns: 160px minmax(0, 1fr);
}
dd {
  font-family: inherit;
}
.chart {
  width: 100%;
  margin-top: 1rem;
  min-height: 230px;
}
.chart svg {
  width: 100%;
  height: auto;
  display: block;
}
.chart text {
  fill: #bac2dc;
  font-family: inherit;
  font-size: 12px;
}
.legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--muted);
}
.legend span:before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 0.4rem;
  background: #c1bbff;
  border-radius: 2px;
}
.legend .legend-night:before {
  background: #10152c;
  border: 1px solid #697398;
}
.legend .legend-twilight:before {
  background: #505077;
}
input[type="range"] {
  accent-color: var(--accent);
  padding: 0;
  border: 0;
  background: transparent;
  width: 100%;
  height: 28px;
}
output {
  display: block;
  margin: 0.6rem 0;
  color: var(--accent);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.events {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.events span {
  background: #12192e;
  padding: 0.45rem 0.6rem;
  border-radius: 5px;
  color: var(--muted);
  font-size: 0.8rem;
}
.batch {
  margin-top: 1.5rem;
}
.batch textarea {
  font-family: ui-monospace, monospace;
}
.batch td:first-child {
  overflow-wrap: anywhere;
}
.batch td {
  max-width: 300px;
}
#separation-form button {
  margin-top: 0.75rem;
}
input:disabled {
  opacity: 0.6;
}
.error {
  color: #ffb8b0 !important;
}
@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-orbit {
    display: none;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 450px) {
  .grid-two {
    gap: 0.5rem;
  }
  .stats strong {
    font-size: 1.6rem;
  }
  dl {
    grid-template-columns: 1fr;
  }
  .chart {
    min-height: 180px;
  }
  .section-top {
    align-items: start;
  }
}
