/* =========================================================
   GH-Proxy Clean — a quiet front-end for a noisy problem
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

:root,
.mdui-theme-light {
  --bg: #f5f8f4;
  --bg-deep: #edf3ed;
  --surface: #ffffff;
  --surface-soft: #f8faf8;
  --surface-green: #edf7f0;
  --surface-tint: #f2f8f3;
  --ink: #13221a;
  --ink-soft: #33463b;
  --muted: #64766b;
  --muted-2: #8a9a90;
  --line: #dfe8e1;
  --line-strong: #c8d9cd;
  --accent: #0d7a58;
  --accent-strong: #07543e;
  --accent-soft: #e3f4ea;
  --accent-wash: #f0faf4;
  --accent-bright: #2fbc8a;
  --cta-bg: #0b2c22;
  --cta-ink: #f1fbf5;
  --danger: #b42318;
  --danger-rgb: 180, 35, 24;
  --panel: #0b2b22;
  --panel-2: #10392d;
  --panel-ink: #f0faf5;
  --panel-muted: #9fc2b0;
  --panel-line: rgba(190, 236, 214, .14);
  --header-bg: rgba(245, 248, 244, .82);
  --card-shadow: 0 26px 60px -32px rgba(20, 61, 43, .34), 0 2px 8px rgba(20, 61, 43, .04);
  --soft-shadow: 0 10px 30px -18px rgba(20, 61, 43, .3);
  --focus: 0 0 0 3px rgba(13, 122, 88, .2);
  --grid-line: rgba(25, 78, 54, .07);
  --node-bg: #ffffff;
  --font-sans: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius-panel: 26px;
}

html[data-theme="dark"] {
  --bg: #08120e;
  --bg-deep: #060e0b;
  --surface: #0f1c17;
  --surface-soft: #13231c;
  --surface-green: #12281f;
  --surface-tint: #10211a;
  --ink: #edf6f0;
  --ink-soft: #c9d9cf;
  --muted: #91a69a;
  --muted-2: #6f8579;
  --line: #24372d;
  --line-strong: #344b3e;
  --accent: #72e6b8;
  --accent-strong: #a8f3d0;
  --accent-soft: #143529;
  --accent-wash: #11281f;
  --accent-bright: #51d6a2;
  --cta-bg: #0d2d23;
  --cta-ink: #effbf5;
  --danger: #ff9b8f;
  --danger-rgb: 255, 155, 143;
  --panel: #0b261e;
  --panel-2: #10382b;
  --panel-ink: #f0faf5;
  --panel-muted: #9fc2b0;
  --panel-line: rgba(190, 236, 214, .12);
  --header-bg: rgba(8, 18, 14, .82);
  --card-shadow: 0 26px 70px -34px rgba(0, 0, 0, .8), 0 2px 8px rgba(0, 0, 0, .2);
  --soft-shadow: 0 12px 34px -20px rgba(0, 0, 0, .8);
  --focus: 0 0 0 3px rgba(114, 230, 184, .2);
  --grid-line: rgba(159, 220, 188, .07);
  --node-bg: #14271f;
}

/* MDUI palette: keep Material structure, move the hue to evergreen. */
:root,
.mdui-theme-light {
  --mdui-color-primary-light: 13, 122, 88;
  --mdui-color-on-primary-light: 255, 255, 255;
  --mdui-color-primary-container-light: 218, 243, 231;
  --mdui-color-on-primary-container-light: 4, 51, 37;
  --mdui-color-secondary-light: 76, 99, 87;
  --mdui-color-on-secondary-light: 255, 255, 255;
  --mdui-color-secondary-container-light: 228, 241, 232;
  --mdui-color-on-secondary-container-light: 18, 56, 41;
  --mdui-color-surface-light: 255, 255, 255;
  --mdui-color-surface-container-lowest-light: 255, 255, 255;
  --mdui-color-surface-container-low-light: 248, 250, 248;
  --mdui-color-surface-container-light: 243, 248, 244;
  --mdui-color-surface-container-high-light: 237, 244, 239;
  --mdui-color-surface-variant-light: 226, 236, 229;
  --mdui-color-on-surface-light: 19, 34, 26;
  --mdui-color-on-surface-variant-light: 100, 118, 107;
  --mdui-color-background-light: 245, 248, 244;
  --mdui-color-on-background-light: 19, 34, 26;
  --mdui-color-outline-light: 125, 143, 132;
  --mdui-color-outline-variant-light: 201, 216, 205;
  --mdui-color-error-light: 180, 35, 24;
}

.mdui-theme-dark {
  --mdui-color-primary-dark: 114, 230, 184;
  --mdui-color-on-primary-dark: 3, 42, 29;
  --mdui-color-primary-container-dark: 19, 69, 51;
  --mdui-color-on-primary-container-dark: 185, 247, 218;
  --mdui-color-secondary-dark: 178, 205, 190;
  --mdui-color-on-secondary-dark: 10, 45, 32;
  --mdui-color-secondary-container-dark: 31, 62, 48;
  --mdui-color-on-secondary-container-dark: 211, 239, 223;
  --mdui-color-surface-dark: 15, 28, 23;
  --mdui-color-surface-container-lowest-dark: 10, 21, 16;
  --mdui-color-surface-container-low-dark: 17, 33, 26;
  --mdui-color-surface-container-dark: 20, 39, 31;
  --mdui-color-surface-container-high-dark: 27, 49, 39;
  --mdui-color-surface-variant-dark: 48, 72, 59;
  --mdui-color-on-surface-dark: 237, 246, 240;
  --mdui-color-on-surface-variant-dark: 145, 166, 154;
  --mdui-color-background-dark: 8, 18, 14;
  --mdui-color-on-background-dark: 237, 246, 240;
  --mdui-color-outline-dark: 115, 139, 125;
  --mdui-color-outline-variant-dark: 48, 68, 55;
  --mdui-color-error-dark: 255, 155, 143;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 74px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(1100px 560px at 50% -180px, rgba(37, 166, 118, .11), transparent 64%),
    var(--bg);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image: radial-gradient(var(--grid-line) .8px, transparent .8px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 48%);
  mask-image: linear-gradient(to bottom, #000 0, transparent 48%);
}

::selection {
  color: #fff;
  background: #0d7a58;
}

a { color: inherit; }
button, input, textarea { font: inherit; }
button { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: min(1160px, calc(100% - 56px));
  margin-inline: auto;
}

.noscript-note {
  margin: 10px auto 0;
  width: min(1160px, calc(100% - 56px));
  padding: 10px 14px;
  color: var(--danger);
  border: 1px solid color-mix(in srgb, var(--danger) 22%, var(--line));
  border-radius: 9px;
  background: var(--surface);
  font-size: 12px;
}
.noscript-note a { color: var(--accent); }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  color: #fff;
  background: #0d7a58;
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 8px 30px -26px rgba(8, 36, 24, .4);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 74px;
  gap: 26px;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 35px;
  height: 35px;
  color: #fff;
  background: linear-gradient(145deg, #179873, #086047);
  border-radius: 11px;
  box-shadow: 0 7px 18px -8px rgba(9, 102, 73, .65), inset 0 1px 0 rgba(255, 255, 255, .25);
  place-items: center;
}
.brand-mark svg { width: 20px; height: 20px; }

.brand-word {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.035em;
}

.brand-suffix {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 6px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .02em;
  vertical-align: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
}

.nav-link {
  position: relative;
  padding: 7px 11px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 550;
  text-decoration: none;
  transition: color .18s ease, background .18s ease;
}
.nav-link:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  position: absolute;
  right: 11px;
  bottom: 1px;
  left: 11px;
  height: 2px;
  content: "";
  background: var(--accent);
  border-radius: 3px;
  opacity: .7;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.theme-toggle,
.github-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.theme-toggle:hover { color: var(--ink); background: var(--surface); border-color: var(--line); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.github-link {
  height: 36px;
  gap: 7px;
  padding: 0 13px;
  border-color: var(--line);
  background: var(--surface);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(12, 41, 28, .03);
}
.github-link:hover { color: var(--ink); border-color: var(--line-strong); transform: translateY(-1px); }
.github-link svg { width: 15px; height: 15px; }

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 58px 0 42px;
}

.hero-grid {
  position: absolute;
  inset: 0 -20%;
  z-index: -2;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 58% 62% at 50% 22%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 58% 62% at 50% 22%, #000 10%, transparent 72%);
  opacity: .8;
}

.hero-orb {
  position: absolute;
  z-index: -1;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}
.hero-orb-one {
  top: -285px;
  left: calc(50% - 530px);
  background: radial-gradient(circle, rgba(32, 189, 133, .15), transparent 68%);
}
.hero-orb-two {
  top: -230px;
  right: calc(50% - 520px);
  background: radial-gradient(circle, rgba(123, 209, 159, .11), transparent 68%);
}

.hero-inner {
  max-width: 980px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.eyebrow-dot {
  position: relative;
  width: 6px;
  height: 6px;
  background: var(--accent-bright);
  border-radius: 50%;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-bright) 13%, transparent);
}

.hero-eyebrow { animation: heroRise .65s var(--ease) both; }

.hero h1 {
  max-width: 1020px;
  margin: 19px auto 0;
  color: var(--ink);
  font-size: clamp(2.65rem, 5.6vw, 4.38rem);
  font-weight: 660;
  letter-spacing: -.065em;
  line-height: 1.06;
  text-wrap: balance;
  animation: heroRise .7s .04s var(--ease) both;
}

.mark {
  position: relative;
  display: inline-block;
  color: var(--accent);
  white-space: nowrap;
}
.mark::after {
  position: absolute;
  right: -.03em;
  bottom: .02em;
  left: -.02em;
  height: .11em;
  content: "";
  background: color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 99px;
  transform: rotate(-.6deg);
}

.hero-lead {
  max-width: 650px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.82;
  text-wrap: balance;
  animation: heroRise .7s .1s var(--ease) both;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px 22px;
  margin-top: 21px;
  color: var(--muted);
  font-size: 11.5px;
  animation: heroRise .7s .16s var(--ease) both;
}
.hero-points span { display: inline-flex; align-items: center; gap: 6px; }
.hero-points svg { width: 13px; height: 13px; color: var(--accent); }

/* =========================================================
   Workbench
   ========================================================= */

.converter-section {
  padding: 26px 0 0;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 366px;
  gap: 18px;
  align-items: stretch;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.convert-panel {
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-kicker {
  margin: 0 0 6px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}
.panel-kicker span { color: var(--accent); opacity: .75; }

.panel-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 680;
  letter-spacing: -.045em;
  line-height: 1.2;
}

.local-pill {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  padding: 6px 9px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 13%, transparent);
  border-radius: 7px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.local-pill svg { width: 12px; height: 12px; }

.field-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.field-tools-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 14px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  color: var(--muted);
  border: 0;
  background: none;
  font-size: 10.5px;
  font-weight: 550;
  cursor: pointer;
  transition: color .18s ease;
}
.text-button:hover { color: var(--accent); }
.text-button svg { width: 13px; height: 13px; }

.input-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 8px;
}

#sourceField {
  width: 100%;
  min-width: 0;
  flex: 1;
  font-size: 13px;
}

#sourceField::part(container) {
  min-height: 56px;
  border-radius: 13px;
  background: var(--surface-soft);
}

#sourceField::part(input) {
  padding-block: 17px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: -.01em;
}

#sourceField::part(label) {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
}

.field-icon {
  width: 18px;
  height: 18px;
  color: var(--muted-2);
}

.input-row.has-error #sourceField::part(container) {
  box-shadow:
    inset 0 0 0 1.5px var(--danger),
    0 0 0 3px color-mix(in srgb, var(--danger) 9%, transparent);
}

.field-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 8px 2px 0;
  color: var(--danger);
  font-size: 11.5px;
  line-height: 1.5;
}
.field-error::before {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  margin-top: 2px;
  content: "!";
  color: var(--danger);
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  line-height: 11px;
  text-align: center;
}

.convert-button {
  --shape-corner: 13px;
  flex-shrink: 0;
  height: 56px;
  min-width: 174px;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: -.01em;
}
.convert-button::part(button) { height: 56px; padding-inline: 20px; }
.convert-button svg { width: 16px; height: 16px; }

.mode-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.mode-label {
  margin-right: 1px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

#modeGroup {
  --shape-corner: 9px;
}

#modeGroup::part(container) {
  border-radius: 9px;
}

#modeGroup mdui-segmented-button {
  font-size: 11.5px;
}

#modeGroup mdui-segmented-button::part(button) {
  min-height: 34px;
  padding-inline: 13px;
}

.shortcut-hint {
  display: inline-flex;
  gap: 3px;
  margin-left: auto;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
}
.shortcut-hint kbd {
  padding: 1px 4px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--surface-soft);
  font: inherit;
}

.examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
}

.examples-label {
  margin-right: 2px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
}

.example-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  font-size: 10.5px;
  font-weight: 500;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}
.example-chip:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  background: var(--accent-wash);
  transform: translateY(-1px);
}
.example-chip svg { width: 12px; height: 12px; opacity: .8; }
.example-chip-repo {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 20%, var(--line));
  background: var(--accent-wash);
}
.example-chip-repo:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

.result-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 21px 0 14px;
}
.result-divider > span:not(.result-divider-label) {
  height: 1px;
  flex: 1;
  background: var(--line);
}
.result-divider-label {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .14em;
}

/* =========================================================
   Empty state + result
   ========================================================= */

.result-empty {
  display: flex;
  flex: 1;
  min-height: 196px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: 17px;
  background:
    radial-gradient(340px 150px at 50% 10%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 72%),
    var(--surface-soft);
  text-align: center;
}

.empty-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.empty-node {
  display: grid;
  width: 31px;
  height: 31px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--node-bg);
  box-shadow: 0 4px 10px -8px rgba(18, 58, 40, .4);
  place-items: center;
}
.empty-node svg { width: 14px; height: 14px; }
.empty-node-accent {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(145deg, #1a9a74, #0a6047);
  box-shadow: 0 5px 14px -7px rgba(9, 105, 75, .7);
}

.empty-path {
  position: relative;
  width: 45px;
  height: 1px;
  margin: 0 6px;
  background-image: linear-gradient(to right, var(--line-strong) 45%, transparent 45%);
  background-size: 7px 1px;
}
.empty-path i {
  position: absolute;
  top: -2px;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--accent-bright);
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-bright) 12%, transparent);
  animation: pathTravel 2.8s infinite var(--ease);
}
.empty-path-short { width: 35px; }
.empty-path-short i { animation-delay: 1.1s; }

.result-empty p {
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.result-empty > span {
  color: var(--muted-2);
  font-size: 11px;
}

.result {
  display: flex;
  flex: 1;
  min-height: 196px;
  flex-direction: column;
  animation: resultIn .45s var(--ease) both;
}

.result-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.result-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 600;
}

.status-dot {
  position: relative;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  background: var(--accent-bright);
  border-radius: 50%;
}
.status-dot::after {
  position: absolute;
  inset: -3px;
  content: "";
  border: 1px solid color-mix(in srgb, var(--accent-bright) 32%, transparent);
  border-radius: 50%;
}

.result-file {
  overflow: hidden;
  max-width: 230px;
  padding: 2px 7px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-provider {
  flex-shrink: 0;
  padding: 3px 8px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 600;
}

.link-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 13px 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--accent) 4%, transparent), transparent 58%),
    var(--surface-soft);
}

.link-url {
  display: block;
  overflow: auto;
  min-width: 0;
  max-height: 69px;
  flex: 1;
  padding-top: 1px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  scrollbar-width: thin;
}

.link-actions {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
}

.link-actions mdui-button {
  --shape-corner: 8px;
  height: 34px;
  min-width: 0;
  font-size: 10.5px;
  font-weight: 600;
}
.link-actions mdui-button::part(button) { height: 34px; padding-inline: 10px; }
.link-actions mdui-button svg { width: 13px; height: 13px; }

.result-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 14px;
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 9.5px;
}
.result-meta span { display: inline-flex; align-items: center; gap: 4px; }
.result-meta svg { width: 11px; height: 11px; color: var(--accent); }

.result-repo-jump {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 9px 11px;
  color: var(--ink-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 9px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 5%, transparent), transparent 68%),
    var(--surface-soft);
  font-size: 10px;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease;
}
.result-repo-jump:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: var(--accent-wash);
}
.repo-jump-state { display: inline-flex; min-width: 0; align-items: center; gap: 6px; }
.repo-jump-dot {
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  background: var(--accent-bright);
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-bright) 12%, transparent);
  animation: dotPulse 1.4s infinite ease-in-out;
}
.result-repo-jump.is-ready .repo-jump-dot { animation: none; }
.result-repo-jump.is-error { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, var(--line)); }
.result-repo-jump.is-error .repo-jump-dot { background: var(--danger); box-shadow: none; animation: none; }
.repo-jump-action {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2px;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}
.repo-jump-action svg { width: 11px; height: 11px; }

.command-box {
  margin-top: 10px;
  padding: 10px 12px 11px;
  color: #dff6ea;
  background:
    radial-gradient(240px 80px at 100% 0, rgba(68, 194, 145, .14), transparent 70%),
    #0a261d;
  border: 1px solid rgba(160, 227, 196, .12);
  border-radius: 11px;
}

.command-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.command-label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #91bda8;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.command-label svg { width: 11px; height: 11px; }

.command-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
  color: #a9d7c1;
  border: 0;
  background: none;
  font-size: 9.5px;
  cursor: pointer;
}
.command-copy:hover { color: #e6fff2; }
.command-copy svg { width: 11px; height: 11px; }

.command-box code {
  display: block;
  overflow-wrap: anywhere;
  color: #dff6ea;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.7;
}

.format-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 7px;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 9px;
}
.format-label {
  margin-right: 2px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .1em;
}
.format-strip i {
  width: 2px;
  height: 2px;
  margin-inline: 1px;
  background: var(--line-strong);
  border-radius: 50%;
}

/* =========================================================
   Routes panel
   ========================================================= */

.routes-panel {
  position: relative;
  overflow: hidden;
  padding: 26px;
  color: var(--panel-ink);
  background:
    linear-gradient(168deg, rgba(255, 255, 255, .025), transparent 38%),
    var(--panel);
  border-color: rgba(15, 65, 48, .7);
  box-shadow: 0 26px 64px -30px rgba(4, 36, 25, .65);
}

.routes-glow {
  position: absolute;
  top: -130px;
  right: -110px;
  width: 330px;
  height: 330px;
  background: radial-gradient(circle, rgba(52, 200, 145, .23), transparent 67%);
  pointer-events: none;
}

.routes-content {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  flex-direction: column;
}

.panel-kicker-light { color: #83aa96; }
.panel-kicker-light span { color: #7be2b4; }
.pulse-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 2px;
  background: #65e1ad;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(101, 225, 173, .1);
}

.routes-head h2 {
  margin: 7px 0 0;
  color: var(--panel-ink);
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: 1.26;
}
.routes-head h2 em {
  color: #78e5b7;
  font-style: normal;
}

.routes-lead {
  max-width: 275px;
  margin: 10px 0 0;
  color: var(--panel-muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.route-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 19px -7px 0;
  padding: 0 7px;
}

.route-item {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 2px 2px 4px;
  border-radius: 11px;
  transition: background .18s ease, box-shadow .18s ease;
}
.route-item:hover { background: rgba(195, 241, 220, .055); }
.route-item.is-active {
  background: rgba(93, 221, 166, .105);
  box-shadow: inset 0 0 0 1px rgba(130, 235, 188, .14);
}

.route-select {
  display: grid;
  min-width: 0;
  flex: 1;
  grid-template-columns: 32px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 6px 2px;
  color: inherit;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.route-mark {
  display: grid;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: #103b2d;
  background: #c8f0dc;
  border-radius: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -.04em;
  place-items: center;
}
.route-mark--olive { color: #213c24; background: #d9ecc8; }
.route-mark--blue { color: #1d3557; background: #d8e7f7; }
.route-mark--amber { color: #5b3d0d; background: #f6e3bd; }
.route-mark--lilac { color: #3d2a52; background: #e8def4; }
.route-mark--rose { color: #5e2835; background: #f5dce2; }

.route-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.route-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  color: #e9f7ef;
  font-size: 12px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-tag {
  flex-shrink: 0;
  padding: 1px 4px;
  color: #9bc8b3;
  background: rgba(176, 234, 207, .08);
  border: 1px solid rgba(176, 234, 207, .1);
  border-radius: 4px;
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: .02em;
}
.route-item.is-active .route-tag {
  color: #b9f6d9;
  background: rgba(123, 226, 180, .13);
  border-color: rgba(123, 226, 180, .18);
}
.route-tag--recommended,
.route-item.is-active .route-tag--recommended {
  color: #f4d58d;
  background: rgba(255, 193, 7, .11);
  border-color: rgba(255, 193, 7, .18);
}

.route-domain {
  overflow: hidden;
  color: #87a999;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: -.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-check {
  display: grid;
  width: 17px;
  height: 17px;
  color: #7be2b4;
  border: 1px solid rgba(155, 220, 189, .2);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .18s ease, transform .18s ease;
  place-items: center;
}
.route-check svg { width: 10px; height: 10px; }
.route-item.is-active .route-check { opacity: 1; transform: scale(1); }

.route-copy {
  display: grid;
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  color: #a3c3b3;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  opacity: .65;
  transition: color .18s ease, opacity .18s ease, background .18s ease;
  place-items: center;
}
.route-copy:hover:not(:disabled) { color: #e7fff2; background: rgba(205, 247, 227, .08); opacity: 1; }
.route-copy:disabled { cursor: default; opacity: .18; }
.route-copy svg { width: 14px; height: 14px; }

.copy-all {
  display: flex;
  width: 100%;
  height: 42px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 0 13px;
  color: #d8efe4;
  border: 1px solid rgba(176, 234, 207, .18);
  border-radius: 10px;
  background: rgba(211, 249, 230, .04);
  font-size: 10.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, opacity .18s ease;
}
.copy-all:hover:not(:disabled) { background: rgba(211, 249, 230, .075); border-color: rgba(176, 234, 207, .3); }
.copy-all:disabled { cursor: default; opacity: .35; }
.copy-all svg { width: 14px; height: 14px; opacity: .8; }

.routes-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--panel-line);
  color: #7f9f8f;
  font-size: 9px;
}
.routes-foot span,
.routes-foot a { display: inline-flex; align-items: center; gap: 4px; }
.routes-foot svg { width: 11px; height: 11px; }
.routes-foot a {
  color: #a8d9c2;
  text-decoration: none;
  transition: color .18s ease;
}
.routes-foot a:hover { color: #d8f8e9; }
.routes-foot a svg { width: 10px; height: 10px; }

.mobile-note {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 10.5px;
}
.mobile-note svg { width: 13px; height: 13px; color: var(--accent); }

/* =========================================================
   Repository explorer
   ========================================================= */

.section.repository-section {
  padding-top: 34px;
}

.repo-shell {
  position: relative;
  overflow: hidden;
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background:
    radial-gradient(650px 260px at 0 0, color-mix(in srgb, var(--accent) 5%, transparent), transparent 72%),
    var(--surface);
  box-shadow: var(--card-shadow);
}

.repo-shell::before {
  position: absolute;
  top: 0;
  right: 12%;
  left: 12%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 40%, transparent), transparent);
}

.repo-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.repo-identity { min-width: 0; }

.repo-name-row {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 13px;
  margin-top: 10px;
}

.repo-avatar {
  display: grid;
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  color: #fff;
  background: linear-gradient(145deg, #1a9b75, #096047);
  border-radius: 12px;
  box-shadow: 0 8px 18px -10px rgba(8, 102, 73, .6);
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 650;
  text-transform: uppercase;
  place-items: center;
}

.repo-name-copy { min-width: 0; }

.repo-name-copy h2 {
  overflow-wrap: anywhere;
  margin: -3px 0 0;
  color: var(--ink);
  font-size: 27px;
  font-weight: 640;
  letter-spacing: -.045em;
  line-height: 1.25;
}

#repoOwnerLabel { color: var(--muted); font-weight: 470; }
.repo-slash { margin: 0 3px; color: var(--line-strong); font-weight: 350; }
#repoNameLabel { color: var(--ink); }

.repo-description {
  max-width: 680px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.repo-description:empty { display: none; }

.repo-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 10px;
}
.repo-stats span { display: inline-flex; align-items: center; gap: 4px; }
.repo-stats svg { width: 12px; height: 12px; color: var(--muted-2); }
.repo-stats b { color: var(--ink-soft); font-weight: 550; }

.repo-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 7px;
}

.repo-github-link,
.repo-refresh {
  display: inline-flex;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.repo-github-link {
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--surface);
}
.repo-github-link:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 28%, var(--line)); }
.repo-refresh {
  color: var(--muted);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}
.repo-refresh:hover { color: var(--accent); background: var(--accent-wash); }
.repo-github-link svg,
.repo-refresh svg { width: 12px; height: 12px; }

.repo-route-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 19px;
  padding: 10px 13px;
  border: 1px solid color-mix(in srgb, var(--accent) 13%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 4%, var(--surface-soft));
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}
.repo-route-note p { margin: 0; }
.repo-route-note strong { color: var(--ink-soft); font-weight: 600; }
.repo-route-note em { color: var(--accent); font-style: normal; font-weight: 600; }
.repo-route-note-mark {
  display: grid;
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 6px;
  place-items: center;
}
.repo-route-note-mark svg { width: 13px; height: 13px; }

.repo-loading {
  margin-top: 19px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}
.repo-loading-head { display: flex; align-items: center; gap: 11px; }
.loading-orbit {
  display: grid;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 1.5px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  place-items: center;
}
.loading-orbit i { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }
.repo-loading-head strong { display: block; color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.repo-loading-head span { display: block; margin-top: 1px; color: var(--muted-2); font-size: 10px; }
.repo-skeleton { display: grid; gap: 7px; margin-top: 17px; }
.repo-skeleton span {
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--surface-green), var(--surface), var(--surface-green));
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite linear;
}
.repo-skeleton span:nth-child(2) { width: 88%; }
.repo-skeleton span:nth-child(3) { width: 94%; }

.repo-error {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 19px;
  padding: 17px;
  border: 1px solid color-mix(in srgb, var(--danger) 22%, var(--line));
  border-radius: 13px;
  background: color-mix(in srgb, var(--danger) 3%, var(--surface-soft));
}
.repo-error-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 9%, transparent);
  border-radius: 9px;
  place-items: center;
}
.repo-error-mark svg { width: 17px; height: 17px; }
.repo-error-copy { min-width: 0; }
.repo-error-copy h3 { margin: 0; color: var(--ink); font-size: 12.5px; font-weight: 600; }
.repo-error-copy p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.repo-error-actions { display: flex; flex-shrink: 0; align-items: center; gap: 6px; margin-left: auto; }
.repo-primary-action,
.repo-text-action {
  display: inline-flex;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
}
.repo-primary-action {
  color: rgb(var(--mdui-color-on-primary));
  border: 1px solid transparent;
  background: rgb(var(--mdui-color-primary));
}
.repo-primary-action:hover { opacity: .9; }
.repo-text-action { color: var(--muted); border: 1px solid var(--line); background: var(--surface); }
.repo-text-action:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 25%, var(--line)); }

.repo-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 19px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--surface-soft);
}
.repo-empty-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 10px;
  place-items: center;
}
.repo-empty-mark svg { width: 18px; height: 18px; }
.repo-empty-copy h3 { margin: 0; color: var(--ink); font-size: 13px; font-weight: 600; }
.repo-empty-copy p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.repo-empty-assets { width: 100%; margin-top: 3px; }

.repo-content { margin-top: 21px; }

.repo-release-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.repo-release-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -.04em;
  line-height: 1.2;
}
#repoSummary { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.repo-release-actions { display: flex; flex-shrink: 0; align-items: center; gap: 10px; }
.repo-latest-pill {
  display: inline-flex;
  height: 22px;
  align-items: center;
  padding: 0 8px;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 99px;
  background: var(--accent-soft);
  font-size: 9px;
  font-weight: 600;
}
.repo-expand-all {
  padding: 0;
  color: var(--muted);
  border: 0;
  background: none;
  font-size: 10px;
  cursor: pointer;
}
.repo-expand-all:hover { color: var(--accent); }

.release-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 13px;
}

.release-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.release-card:hover { border-color: color-mix(in srgb, var(--accent) 22%, var(--line)); }
.release-card.is-open {
  background: var(--surface);
  box-shadow: 0 14px 38px -32px rgba(9, 53, 35, .4);
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
}
.release-card.is-focus {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 8%, transparent);
}

.release-head {
  display: flex;
  align-items: stretch;
}
.release-toggle {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 9px;
  padding: 12px 13px;
  color: inherit;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.release-version {
  flex-shrink: 0;
  padding: 2px 6px;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
  border-radius: 5px;
  background: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.4;
}
.release-name {
  overflow: hidden;
  max-width: 42%;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.release-badge {
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: 99px;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.4;
}
.release-badge--latest { color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent); background: var(--accent-soft); }
.release-badge--pre { color: #9a6700; border: 1px solid rgba(154, 103, 0, .18); background: rgba(255, 193, 7, .1); }
.release-file-count { color: var(--muted-2); font-size: 9px; white-space: nowrap; }
.release-spacer { min-width: 8px; flex: 1; }
.release-date { color: var(--muted-2); font-family: var(--font-mono); font-size: 8.5px; white-space: nowrap; }
.release-chevron {
  display: grid;
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform .22s var(--ease), color .22s ease;
  place-items: center;
}
.release-chevron svg { width: 11px; height: 11px; }
.release-card.is-open .release-chevron { color: var(--accent); transform: rotate(180deg); }
.release-github {
  display: grid;
  width: 37px;
  flex-shrink: 0;
  color: var(--muted-2);
  border-left: 1px solid var(--line);
  text-decoration: none;
  transition: color .18s ease, background .18s ease;
  place-items: center;
}
.release-github:hover { color: var(--accent); background: var(--accent-wash); }
.release-github svg { width: 13px; height: 13px; }

.release-body {
  padding: 13px;
  border-top: 1px solid var(--line);
  animation: releaseOpen .28s var(--ease) both;
}

.release-notes {
  margin: 0 0 12px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
}
.release-notes summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 550;
  list-style: none;
  cursor: pointer;
}
.release-notes summary::-webkit-details-marker { display: none; }
.release-notes summary::after {
  content: "+";
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 12px;
}
.release-notes[open] summary::after { content: "−"; }
.release-notes-body {
  overflow: auto;
  max-height: 260px;
  padding: 0 10px 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.asset-section + .asset-section { margin-top: 13px; }
.asset-section-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .02em;
}
.asset-section-count {
  display: inline-flex;
  height: 15px;
  align-items: center;
  padding: 0 5px;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-soft);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
}

.asset-list { display: flex; flex-direction: column; gap: 6px; }

.asset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  transition: border-color .18s ease, background .18s ease;
}
.asset-row:hover { border-color: color-mix(in srgb, var(--accent) 18%, var(--line)); }
.asset-main {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 9px;
  color: inherit;
  border-radius: 7px;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.asset-main:hover .asset-name {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.asset-main:hover .asset-icon { transform: translateY(-1px); }
.asset-main:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.asset-icon {
  display: grid;
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 7px;
  transition: transform .18s ease;
  place-items: center;
}
.asset-icon svg { width: 14px; height: 14px; }
.asset-icon--archive { color: #8a5a12; background: color-mix(in srgb, #e0a52a 14%, var(--surface)); }
.asset-icon--executable { color: #285cc4; background: color-mix(in srgb, #4f7ee8 12%, var(--surface)); }
.asset-icon--source { color: var(--accent); background: var(--surface-green); }
.asset-text { min-width: 0; }
.asset-name {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 550;
  line-height: 1.45;
}
.asset-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 7px;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 9px;
}
.asset-meta .meta-dot { width: 2px; height: 2px; background: var(--line-strong); border-radius: 50%; }

.asset-routes {
  display: flex;
  max-width: 57%;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}
.file-route {
  display: inline-flex;
  height: 27px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  transition: border-color .18s ease, background .18s ease;
}
.file-route:hover { border-color: color-mix(in srgb, var(--accent) 26%, var(--line)); }
.file-route.is-recommended {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background: var(--accent-wash);
}
.file-route-link {
  display: flex;
  align-items: center;
  padding: 0 8px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}
.file-route.is-recommended .file-route-link { color: var(--accent); }
.file-route-link:hover { color: var(--accent); }
.file-route-copy {
  display: grid;
  width: 24px;
  padding: 0;
  color: var(--muted-2);
  border: 0;
  border-left: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: transparent;
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
  place-items: center;
}
.file-route-copy:hover { color: var(--accent); background: var(--accent-soft); }
.file-route-copy.is-copied { color: var(--accent); }
.file-route-copy svg { width: 11px; height: 11px; }

.repo-load-more {
  display: flex;
  height: 35px;
  align-items: center;
  gap: 4px;
  margin: 13px auto 0;
  padding: 0 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  font-size: 10px;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.repo-load-more:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 28%, var(--line)); background: var(--accent-wash); }
.repo-load-more svg { width: 11px; height: 11px; }

/* =========================================================
   Content sections
   ========================================================= */

.section {
  padding: 84px 0 0;
}

.why-section { padding-top: 88px; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: end;
  gap: 48px;
  margin-bottom: 26px;
}

.section-head h2,
.how-intro h2,
.faq-intro h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 650;
  letter-spacing: -.05em;
  line-height: 1.24;
}

.section-head > p,
.how-intro > p:last-child,
.faq-intro > p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  position: relative;
  min-height: 205px;
  padding: 26px 25px 24px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: 0 2px 4px rgba(18, 59, 40, .02);
  transition: transform .28s var(--ease), border-color .28s ease, box-shadow .28s ease;
}
.feature-card:hover {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: var(--soft-shadow);
  transform: translateY(-4px);
}

.feature-number {
  position: absolute;
  top: 23px;
  right: 24px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
}

.feature-icon {
  display: grid;
  width: 41px;
  height: 41px;
  margin-bottom: 22px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 10%, transparent);
  border-radius: 12px;
  place-items: center;
}
.feature-icon svg { width: 20px; height: 20px; }

.feature-card h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.025em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.8;
}

/* How */
.how-card {
  display: grid;
  grid-template-columns: .88fr 1.5fr;
  gap: 40px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background:
    radial-gradient(480px 220px at 0 0, color-mix(in srgb, var(--accent) 5%, transparent), transparent 72%),
    var(--surface);
  box-shadow: 0 2px 4px rgba(18, 59, 40, .02);
}

.how-intro h2 { font-size: 25px; }
.how-intro > p:last-child { max-width: 300px; margin-top: 9px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 3px 18px 3px 20px;
  border-left: 1px solid var(--line);
}
.steps li:first-child { border-left: 0; padding-left: 0; }

.step-index {
  display: inline-block;
  margin-bottom: 15px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
}

.steps h3 {
  margin: 0 0 5px;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.75;
}

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 60px;
}

.faq-intro h2 { margin-top: 0; }
.faq-intro > p { max-width: 280px; margin-top: 10px; }
.faq-intro a { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.faq-intro a:hover { border-bottom-color: var(--accent); }

.faq-list { border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 1px;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: -.015em;
  list-style: none;
  cursor: pointer;
  transition: color .18s ease;
}
.faq-item summary:hover { color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }

.faq-toggle {
  display: grid;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color .2s ease, border-color .2s ease, transform .25s var(--ease);
  place-items: center;
}
.faq-toggle svg { width: 13px; height: 13px; }
.faq-item[open] .faq-toggle {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 36px 17px 1px;
}
.faq-answer p {
  margin: 0;
  color: var(--muted);
  font-size: 11.8px;
  line-height: 1.85;
}

/* Closing */
.closing {
  padding: 84px 0 0;
}

.closing-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 31px 34px;
  color: var(--cta-ink);
  background:
    radial-gradient(520px 190px at 90% 0, rgba(85, 220, 162, .18), transparent 68%),
    linear-gradient(120deg, #0b3227, #09231b);
  border: 1px solid rgba(169, 231, 203, .1);
  border-radius: 23px;
  box-shadow: 0 22px 50px -32px rgba(5, 43, 30, .75);
}

.closing .panel-kicker { color: #87b29e; }
.closing h2 {
  margin: 5px 0 0;
  color: #effbf5;
  font-size: 23px;
  font-weight: 620;
  letter-spacing: -.04em;
}

.closing-cta {
  display: inline-flex;
  flex-shrink: 0;
  height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  color: #082b1e;
  background: #a9f0cd;
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 650;
  text-decoration: none;
  transition: transform .2s var(--ease), background .2s ease;
}
.closing-cta:hover { background: #c4f8dd; transform: translateY(-2px); }
.closing-cta svg { width: 14px; height: 14px; }

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  margin-top: 84px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-deep) 55%, transparent);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding: 42px 0 34px;
}

.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.8;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.footer-column { display: flex; flex-direction: column; gap: 8px; }
.footer-column h3 {
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .05em;
}
.footer-column a {
  width: fit-content;
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
  transition: color .18s ease;
}
.footer-column a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 15px 0 22px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 9.5px;
}

/* =========================================================
   Motion
   ========================================================= */

@keyframes heroRise {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes resultIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pathTravel {
  0% { opacity: 0; transform: translateX(0); }
  12% { opacity: 1; }
  82% { opacity: 1; }
  100% { opacity: 0; transform: translateX(34px); }
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.72); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@keyframes releaseOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.feature-card.is-visible { animation: cardIn .6s var(--ease) both; }
.feature-card:nth-child(2).is-visible { animation-delay: .06s; }
.feature-card:nth-child(3).is-visible { animation-delay: .12s; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(13px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {
  .container { width: min(100% - 44px, 1060px); }
  .workbench { grid-template-columns: minmax(0, 1fr) 336px; }
  .convert-panel { padding: 25px; }
  .routes-panel { padding: 24px; }
  .route-select { grid-template-columns: 30px minmax(0, 1fr) 17px; gap: 8px; }
  .route-mark { width: 30px; height: 30px; }
  .routes-head h2 { font-size: 26px; }
}

@media (max-width: 1000px) {
  .main-nav { gap: 0; }
  .nav-link { padding-inline: 8px; font-size: 12px; }
  .header-inner { gap: 18px; }
  .workbench { grid-template-columns: minmax(0, 1fr) 318px; gap: 14px; }
  .section-head { grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }

  .hero { padding: 50px 0 34px; }
  .hero h1 { max-width: 760px; }

  .section.repository-section { padding-top: 30px; }
  .repo-shell { padding: 24px; }
  .repo-top { flex-direction: column; gap: 18px; }
  .repo-actions { align-self: flex-start; }
  .repo-name-copy h2 { font-size: 24px; }
  .asset-routes { max-width: 62%; }

  .workbench { grid-template-columns: 1fr; gap: 14px; }
  .convert-panel { min-height: 0; }

  .routes-panel { padding: 24px; }
  .routes-head h2 { font-size: 25px; }
  .routes-lead { max-width: 500px; }
  .route-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 12px;
    margin-top: 16px;
  }
  .route-select { grid-template-columns: 30px minmax(0, 1fr) 17px; }
  .copy-all { margin-top: 13px; }
  .routes-foot { margin-top: 13px; }

  .section { padding-top: 66px; }
  .why-section { padding-top: 68px; }
  .section-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 22px; }
  .section-head > p { max-width: 560px; }

  .how-card { grid-template-columns: 1fr; gap: 26px; padding: 28px; }
  .how-intro > p:last-child { max-width: 520px; }

  .faq-layout { grid-template-columns: 1fr; gap: 26px; }
  .faq-intro > p { max-width: 540px; }

  .closing { padding-top: 66px; }
  .closing-inner { padding: 28px; }

  .site-footer { margin-top: 66px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 66px; }
  .container { width: calc(100% - 40px); }
  .header-inner { height: 66px; }
  .github-link { width: 36px; padding: 0; }
  .github-link span { display: none; }

  .hero h1 { font-size: clamp(2.35rem, 9vw, 3.15rem); }
  .hero-lead { font-size: 13px; }

  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .feature-card:nth-child(2).is-visible { animation-delay: .04s; }
  .feature-card:nth-child(3).is-visible { animation-delay: .08s; }

  .steps { grid-template-columns: 1fr; gap: 17px; }
  .steps li,
  .steps li:first-child { padding: 0 0 0 0; border-left: 0; }
  .step-index { margin-bottom: 6px; }

  .closing-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .closing h2 { font-size: 21px; }

  .footer-main { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 620px) {
  .container { width: calc(100% - 30px); }
  .brand-suffix { display: none; }
  .brand-word { font-size: 16px; }

  .hero { padding-top: 40px; }
  .hero h1 { letter-spacing: -.055em; line-height: 1.1; }
  .hero-lead { margin-top: 16px; line-height: 1.75; }
  .hero-points { gap: 7px 15px; margin-top: 17px; font-size: 10.5px; }

  .converter-section { padding-top: 18px; }
  .panel { border-radius: 20px; }
  .convert-panel { padding: 19px; }
  .panel-head h2 { font-size: 21px; }
  .local-pill { padding: 5px 7px; font-size: 9px; }

  .field-tools { margin-top: 18px; }
  .field-tools-label { max-width: 190px; font-size: 9.5px; line-height: 1.45; }

  .input-row { flex-direction: column; gap: 8px; }
  .convert-button { width: 100%; height: 50px; min-width: 0; }
  .convert-button::part(button) { height: 50px; }

  .mode-row { align-items: flex-start; }
  #modeGroup { width: 100%; }
  #modeGroup mdui-segmented-button { flex: 1; }
  #modeGroup mdui-segmented-button::part(button) { padding-inline: 5px; font-size: 10.5px; }
  .shortcut-hint { display: none; }

  .examples { gap: 6px; }
  .example-chip { font-size: 9.5px; }

  .result-divider { margin: 18px 0 12px; }
  .result-empty { min-height: 185px; padding: 18px; }

  .link-box { flex-direction: column; align-items: stretch; padding: 12px; }
  .link-url { max-height: 90px; flex: none; font-size: 10.5px; }
  .link-actions { width: 100%; }
  .link-actions mdui-button { flex: 1; }
  .link-actions mdui-button::part(button) { width: 100%; }

  .result-file { max-width: 130px; }
  .result-top { align-items: flex-start; }
  .result-meta { font-size: 9px; }

  .format-strip { margin-top: 15px; }

  .routes-panel { padding: 19px; }
  .route-list { grid-template-columns: 1fr; gap: 2px; }
  .routes-head h2 { font-size: 23px; }
  .routes-head h2 br { display: none; }

  .section { padding-top: 56px; }
  .why-section { padding-top: 58px; }
  .feature-card { padding: 22px; }
  .feature-icon { margin-bottom: 17px; }

  .how-card { padding: 23px; border-radius: 19px; }

  .section.repository-section { padding-top: 26px; }
  .repo-shell { padding: 18px; border-radius: 20px; }
  .repo-name-row { gap: 10px; }
  .repo-avatar { width: 37px; height: 37px; border-radius: 10px; font-size: 16px; }
  .repo-name-copy h2 { font-size: 21px; letter-spacing: -.04em; }
  .repo-description { font-size: 10.5px; }
  .repo-stats { gap: 6px 11px; font-size: 9px; }
  .repo-actions { width: 100%; }
  .repo-github-link { flex: 1; }
  .repo-route-note { margin-top: 15px; padding: 9px 10px; font-size: 9.5px; }
  .repo-route-note strong { display: block; }
  .repo-loading { margin-top: 15px; padding: 16px; }
  .repo-skeleton span { height: 34px; }
  .repo-error { flex-wrap: wrap; align-items: flex-start; margin-top: 15px; padding: 13px; }
  .repo-error-actions { width: 100%; margin-left: 46px; }
  .repo-empty { margin-top: 15px; padding: 14px; }
  .repo-empty-copy { flex: 1; min-width: 170px; }
  .repo-content { margin-top: 18px; }
  .repo-release-head { flex-direction: column; align-items: flex-start; gap: 9px; }
  .repo-release-head h3 { font-size: 19px; }
  .repo-release-actions { width: 100%; justify-content: space-between; }
  .release-toggle { gap: 5px 7px; padding: 10px; }
  .release-name { max-width: 55%; font-size: 11px; }
  .release-date { display: none; }
  .release-file-count { order: 3; }
  .release-chevron { margin-left: auto; }
  .release-github { width: 33px; }
  .release-body { padding: 10px; }
  .release-notes-body { max-height: 210px; }
  .asset-row { flex-direction: column; align-items: stretch; gap: 7px; padding: 8px; }
  .asset-routes { max-width: none; justify-content: flex-start; gap: 5px; }
  .file-route { height: 29px; }
  .file-route-link { padding-inline: 7px; font-size: 9px; }
  .file-route-copy { width: 26px; }
  .repo-load-more { margin-top: 10px; }

  .faq-answer { padding-right: 10px; }
  .faq-item summary { font-size: 12.5px; }

  .closing { padding-top: 56px; }
  .closing-inner { padding: 24px; }
  .closing .panel-kicker { font-size: 8px; }

  .footer-bottom { flex-direction: column; }
  .mobile-note { display: flex; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 2.05rem; }
  .local-pill { display: none; }
  .field-tools-label { display: none; }
  .field-tools { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}