/* SPDX-License-Identifier: Apache-2.0 */
:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: #100b20;
  color: #f6f0ff;
  --muted: #c4b7da;
  --accent: #d5b5ff;
  --line: #584268;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 80% 0, #54297d66, transparent 45%);
}
nav,
header,
main,
footer {
  max-width: 1280px;
  margin: auto;
  padding: 24px 40px;
  overflow-wrap: anywhere;
}
a {
  color: var(--accent);
  text-underline-offset: 5px;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
nav > div {
  display: flex;
  align-items: center;
  gap: 20px;
}
nav > a {
  text-decoration: none;
  letter-spacing: 0.12em;
  font-weight: 700;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  outline-offset: 5px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #ffe1a2;
}
button {
  min-height: 44px;
  cursor: pointer;
}
#language {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--accent);
  border-radius: 50%;
  min-width: 44px;
}
header {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 60px;
  padding-top: 76px;
  padding-bottom: 62px;
  align-items: center;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  color: var(--accent);
  line-height: 1.7;
}
h1 {
  font: 400 clamp(2.7rem, 6vw, 5.5rem) / 1.06 Georgia, serif;
  letter-spacing: -0.035em;
  margin: 22px 0;
}
h2 {
  font: 400 clamp(1.8rem, 3vw, 2.6rem) / 1.2 Georgia, serif;
  margin: 10px 0 20px;
}
h3 {
  font-size: 1.1rem;
  margin: 8px 0 16px;
}
p {
  line-height: 1.7;
}
.lead {
  font-size: 1.12rem;
  color: var(--muted);
}
.scope {
  border: 1px solid #7c579a;
  border-radius: 18px;
  padding: 28px;
  background: linear-gradient(135deg, #3b205b, #211331);
  box-shadow: 0 20px 65px #09061266;
}
.scope span {
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  color: #ead7ff;
  font-weight: 750;
}
.scope p {
  color: #e0d0ee;
  font-size: 0.92rem;
}
.panel {
  padding: 28px;
  border: 1px solid var(--line);
  background: #1a122b;
  border-radius: 18px;
  margin-bottom: 24px;
  min-width: 0;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.toolbar h3 {
  margin-bottom: 6px;
}
.hint {
  font-size: 0.88rem;
  color: var(--muted);
}
label {
  display: block;
  font-size: 0.88rem;
  margin: 8px 0;
  line-height: 1.4;
}
input:not([type='file']) {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  background: #100b20;
  border: 1px solid #85679d;
  border-radius: 8px;
  color: #fff;
  padding: 12px;
}
.limits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}
.task {
  display: grid;
  grid-template-columns: 1fr 2fr repeat(4, 1fr) 1.6fr auto;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
  align-items: end;
}
.task > div {
  min-width: 0;
}
.task .remove {
  background: transparent;
  border: 1px solid #b293c6;
  border-radius: 8px;
  color: #ffe1e9;
  padding: 10px;
  min-width: 44px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.primary,
.quiet {
  border-radius: 9px;
  padding: 13px 19px;
  line-height: 1.4;
  font-weight: 650;
}
.primary {
  color: #241036;
  background: #d8b9ff;
  border: 1px solid #ead9ff;
}
.quiet {
  color: #ead8ff;
  background: #2c1a42;
  border: 1px solid #9973b5;
}
.file-label {
  position: relative;
  display: block;
  cursor: pointer;
  min-height: 46px;
}
.file-label input {
  display: block;
  max-width: 100%;
  margin-top: 8px;
  font-size: 0.85rem;
}
#status {
  color: var(--muted);
}
#error {
  background: #442533;
  border: 1px solid #cb8c9b;
  padding: 16px;
  border-radius: 9px;
  color: #ffe7e8;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.metrics > div {
  padding: 20px;
  background: #302043;
  border-radius: 12px;
}
.metrics strong {
  font-size: 2rem;
  display: block;
  margin-top: 8px;
}
.metrics span {
  color: var(--muted);
}
#steps {
  padding-left: 25px;
}
#steps li,
#omissions li {
  padding: 10px 0;
  line-height: 1.65;
}
details {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
summary {
  cursor: pointer;
  min-height: 44px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #0e0918;
  padding: 20px;
  border-radius: 8px;
  max-height: 500px;
  overflow: auto;
}
.method {
  max-width: 800px;
  padding: 35px 0 55px;
}
.method p {
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  padding-bottom: 40px;
}
.skip {
  position: fixed;
  left: 12px;
  top: -100px;
  padding: 14px;
  background: #fff;
  color: #251334;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1050px) {
  .task {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .task > div:nth-child(2) {
    grid-column: span 2;
  }
  .task > div:nth-child(7) {
    grid-column: span 2;
  }
}
@media (max-width: 700px) {
  nav,
  header,
  main,
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  nav {
    align-items: flex-start;
  }
  nav > div {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
  }
  header {
    display: block;
    padding-top: 35px;
    padding-bottom: 30px;
  }
  .scope {
    margin-top: 28px;
    padding: 22px;
  }
  .panel {
    padding: 20px;
  }
  .limits,
  .metrics {
    grid-template-columns: 1fr;
  }
  .task {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .task > div:nth-child(2) {
    grid-column: span 1;
  }
  .primary,
  .quiet {
    max-width: 100%;
  }
  h1 {
    font-size: clamp(2.6rem, 10vw, 4rem);
  }
}
@media print {
  body {
    background: white;
    color: black;
  }
  nav,
  form,
  .actions,
  footer button {
    display: none;
  }
  .panel,
  .scope,
  .metrics > div {
    background: white;
    color: black;
    border: 1px solid #777;
  }
  .hint,
  .lead,
  p,
  .eyebrow {
    color: #222 !important;
  }
  header,
  main {
    padding: 20px;
  }
  #result {
    display: block;
  }
  pre {
    max-height: none;
    color: black;
    background: white;
  }
}
header {
  display: block;
  max-width: 1050px;
  text-align: left;
}
header h1 {
  max-width: 900px;
}
.notice {
  padding: 18px;
  border: 1px solid #82629f;
  background: #2c1c41;
  border-radius: 12px;
  color: #dfd0ec;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.section-head {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.section-head h2 {
  margin: 0;
}
.panel h3 {
  margin-top: 28px;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 24px 0 0;
  padding: 16px;
}
fieldset label {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
}
input[type='checkbox'] {
  width: 22px;
  min-height: 22px;
  accent-color: #d8b9ff;
}
select {
  width: 100%;
  min-height: 46px;
  background: #100b20;
  color: white;
  border: 1px solid #85679d;
  border-radius: 8px;
  font: inherit;
  padding: 10px;
}
.vote {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.primary {
  margin-top: 20px;
  width: 100%;
}
.metrics {
  grid-template-columns: 1fr 1fr;
}
.metrics strong {
  font-size: 1.6rem;
}
#checks {
  padding-left: 22px;
}
#checks li {
  padding: 10px 0;
  line-height: 1.5;
}
.empty {
  padding-top: 40px;
  padding-bottom: 40px;
}
details {
  margin-top: 24px;
}
nav span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}
@media (max-width: 850px) {
  .layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 400px) {
  .pair,
  .metrics {
    grid-template-columns: 1fr;
  }
}
.panel.method {
  padding: 28px;
}
.panel.method h2 {
  font-size: 2rem;
}
select:focus-visible {
  outline: 3px solid #ffe1a2;
  outline-offset: 5px;
}
input[type='file'] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 0.85rem;
}
nav > div {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}
