:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #fff;
  --elevated: #f1f5f9;
  --ink: #0f172a;
  --muted: #475569;
  --line: #cbd5e1;
  --accent: #0175c2;
  --code: #0f172a;
  --header: #132030;
  --header-h: 60px;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
body.dark {
  color-scheme: dark;
  --bg: #0b1120;
  --surface: #111827;
  --elevated: #1e293b;
  --ink: #f8fafc;
  --muted: #a7b4c8;
  --line: #475569;
  --accent: #47c5fb;
  --code: #070a12;
  --header: #070b14;
}
body[data-eco="maven"] {
  --accent: #4f46e5;
}
body[data-eco="storage"] {
  --accent: #02569b;
}
body[data-eco="gradle"] {
  --accent: #00796b;
}
body[data-eco="cocoapods"] {
  --accent: #b92323;
}
body.dark[data-eco="maven"] {
  --accent: #a5a1ff;
}
body.dark[data-eco="storage"],
body.dark[data-eco="pub"] {
  --accent: #47c5fb;
}
body.dark[data-eco="gradle"] {
  --accent: #5eead4;
}
body.dark[data-eco="cocoapods"] {
  --accent: #fca5a5;
}
a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 9px 14px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
}
body.dark button,
body.dark .button {
  color: #07111e;
}
button:hover,
.button:hover {
  filter: brightness(0.92);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
input,
select,
textarea {
  padding: 9px 12px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  max-width: 100%;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
label {
  display: block;
  font-weight: 550;
}
form {
  display: grid;
  gap: 12px;
}
form.search {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.search input {
  flex: 1;
  min-width: 150px;
}
.search label {
  font-size: 13px;
}
.check {
  display: flex;
  gap: 8px;
  align-items: center;
}
.check input {
  min-height: 0;
}
h1,
h2,
h3 {
  line-height: 1.25;
  font-weight: 700;
}
h1 {
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -0.025em;
  margin: 18px 0;
}
h2 {
  font-size: 18px;
  margin: 28px 0 14px;
}
h3 {
  font-size: 15px;
}
p {
  max-width: 75ch;
}
.lead {
  font-size: 17px;
  color: var(--muted);
}
.hero {
  padding: 22px 0 8px;
}
.hero h1 {
  font-size: clamp(28px, 3vw, 38px);
}
.hero h1 br {
  display: none;
}
.hero h1 span:before {
  content: " ";
}
.flow {
  display: flex;
  gap: 20px;
  align-items: center;
  color: var(--muted);
  margin: 20px 0;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header);
  color: #f8fafc;
}
.header-inner {
  max-width: 1360px;
  min-height: var(--header-h);
  margin: auto;
  padding: 8px 24px;
  display: flex;
  gap: 18px;
  align-items: center;
}
.site-header a {
  color: #f8fafc;
  text-decoration: none;
  white-space: nowrap;
}
.brand {
  font-size: 18px;
  font-weight: 700;
}
.brand span {
  font-weight: 400;
  color: #cbd5e1;
}
.domain {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: #cbd5e1;
}
.site-header nav {
  display: flex;
  gap: 14px;
  align-items: center;
}
.eco-nav {
  flex: 1;
}
.eco-nav a {
  padding: 6px 5px;
  font-size: 13px;
}
.site-header button {
  background: transparent;
  color: #f8fafc !important;
  border-color: #64748b;
  padding: 5px 9px;
}
.container {
  max-width: 1360px;
  margin: auto;
  padding: 28px 24px 64px;
  min-width: 0;
}
section {
  margin-bottom: 32px;
}
pre {
  position: relative;
  background: var(--code);
  color: #e2e8f0;
  padding: 22px 18px;
  overflow: auto;
  border-radius: 8px;
  max-width: 100%;
  line-height: 1.65;
}
pre:has(.copy-btn) {
  padding-top: 55px;
}
code,
pre {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
}
code {
  overflow-wrap: anywhere;
}
.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  min-height: 32px;
  font-size: 12px;
  background: #334155 !important;
  color: #fff !important;
  border-color: #64748b;
}
details {
  margin: 14px 0;
}
summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
  min-height: 32px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-title span,
small,
.muted {
  color: var(--muted);
}
small {
  display: block;
  font-size: 12px;
}
.eco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.eco-grid > a,
.eco-grid > .eco-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  text-decoration: none;
  background: var(--surface);
}
.eco-grid strong,
.eco-grid code {
  display: block;
}
.eco-grid code {
  font-size: 11px;
  margin-top: 12px;
  color: var(--muted);
}
.result-list article {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.package-title {
  font-size: 19px;
  font-weight: 650;
}
.version,
.badge,
.tags span {
  display: inline-block;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  margin: 3px;
}
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.notice,
.empty {
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--elevated);
}
.hash {
  display: inline-block;
  max-width: 100%;
  word-break: break-all;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
}
.detail-main {
  min-width: 0;
}
.detail-sidebar {
  position: sticky;
  top: 84px;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 8px;
  background: var(--surface);
}
.tabs {
  display: flex;
  gap: 22px;
  overflow: auto;
  border-bottom: 1px solid var(--line);
  margin: 25px 0;
}
.tabs a {
  padding: 12px 0;
  text-decoration: none;
  white-space: nowrap;
}
.tabs [aria-selected="true"] {
  border-bottom: 3px solid var(--accent);
  font-weight: 650;
}
[hidden] {
  display: none !important;
}
.table-wrap {
  overflow: auto;
  max-width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--elevated);
}
th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
td code {
  font-size: 12px;
}
.pagination {
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 24px 0;
}
.pagination a {
  min-height: 44px;
  padding: 10px;
}
.metrics,
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.metrics > div,
.kpi-grid > div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.metrics strong,
.metrics span,
.kpi-grid strong,
.kpi-grid span {
  display: block;
}
.metrics span,
.kpi-grid span {
  color: var(--muted);
  font-size: 12px;
}
.admin-toolbar,
.maintenance {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.job-result {
  position: fixed;
  right: 24px;
  bottom: 20px;
  width: min(450px, calc(100vw - 40px));
  max-height: 65vh;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px #0003;
  padding: 20px;
  border-radius: 8px;
  z-index: 50;
}
.job-result article {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
canvas {
  max-height: 330px;
}
footer {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.markdown {
  max-width: 75ch;
}
.markdown table {
  display: block;
  overflow: auto;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  background: var(--surface);
  padding: 12px;
}
.skip:focus {
  top: 8px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
::selection {
  background: #bae6fd;
  color: #0f172a;
}
* {
  scrollbar-color: var(--line) var(--bg);
}
.drop-active {
  outline: 3px dashed var(--accent);
}
progress {
  width: 100%;
  accent-color: var(--accent);
}
@media (max-width: 1150px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .domain {
    display: none;
  }
  .eco-nav {
    order: 3;
    flex-basis: 100%;
    overflow: auto;
  }
  .header-inner > nav:last-child {
    margin-left: auto;
  }
}
@media (max-width: 960px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-sidebar {
    position: static;
    grid-row: 1;
  }
  .container {
    padding: 20px;
  }
  .header-inner {
    padding: 8px 20px;
  }
}
@media (max-width: 650px) {
  .site-header nav {
    gap: 10px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .container {
    padding: 18px 16px;
  }
  .eco-grid {
    grid-template-columns: 1fr;
  }
  .metrics,
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  th,
  td {
    padding: 10px 8px;
  }
  footer {
    display: block;
  }
  footer span {
    display: block;
  }
  .search select {
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 32px;
}
.workspace > section {
  min-width: 0;
}
.workspace .tabs {
  gap: 18px;
}
.workspace .tabs a {
  font-size: 13px;
}
.workspace > section:last-child {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 20px 20px;
  align-self: start;
  background: var(--surface);
}
@media (max-width: 960px) {
  .workspace {
    grid-template-columns: 1fr;
  }
}

.detail-grid {
  align-items: start;
}

.eco-card > a {
  display: block;
  text-decoration: none;
}
.eco-card > button {
  font-size: 12px;
  margin-top: 12px;
}
.warning {
  border-color: #b45309 !important;
}
