: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;
  }
}
