:root {
  --bg: #e9edf2;
  --bg-soft: #eef2f7;
  --ink: #171b20;
  --muted: #5c6673;
  --faint: #8c97a5;
  --accent: #b7ff3c;
  --accent-ink: #111;
  --dark-shadow: #c2c9d2;
  --light-shadow: #ffffff;
  --radius: 26px;
  --shadow-out: 18px 18px 38px var(--dark-shadow), -18px -18px 38px var(--light-shadow);
  --shadow-soft: 9px 9px 20px var(--dark-shadow), -9px -9px 20px var(--light-shadow);
  --shadow-in: inset 5px 5px 12px var(--dark-shadow), inset -5px -5px 12px var(--light-shadow);
  --critical: #c0392b;
  --high: #d35400;
  --medium: #9a7500;
  --low: #3b6fd4;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(108, 122, 142, 0.18) 1px, transparent 1px);
  background-size: 22px 22px;
  font-family: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}

.blob-a {
  width: 520px;
  height: 520px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle at 30% 30%, #d9ff9a, transparent 70%);
}

.blob-b {
  width: 620px;
  height: 620px;
  bottom: -260px;
  left: -180px;
  background: radial-gradient(circle at 60% 40%, #c9d8ee, transparent 72%);
}

.hero,
.section,
.site-footer {
  width: min(1180px, 100% - 64px);
  margin-inline: auto;
}

.hero {
  position: relative;
  padding: 26px 0 84px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--bg);
  box-shadow: var(--shadow-soft);
}

.brand-mark svg {
  width: 22px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.brand-name {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-name em {
  font-style: normal;
  color: var(--muted);
  font-weight: 600;
}

.topbar-links {
  display: flex;
  gap: 26px;
}

.topbar-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.topbar-links a:hover {
  color: var(--ink);
}

.hero-copy {
  padding-top: 64px;
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 14px;
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--faint);
}

h1 {
  margin: 0;
  font-size: clamp(46px, 7.4vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.lede {
  margin: 26px 0 0;
  max-width: 600px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
}

.capabilities {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 560px;
}

.capabilities li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--muted);
}

.capabilities span {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--bg);
  box-shadow: var(--shadow-in);
  font-family: ui-monospace, monospace;
  font-size: 10px;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-in);
}

.btn-primary {
  background: var(--accent);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 8px 8px 18px var(--dark-shadow), -8px -8px 18px var(--light-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 54px 0 0;
}

.stats > div {
  min-width: 108px;
  padding: 14px 20px;
  border-radius: 18px;
  background: var(--bg);
  box-shadow: var(--shadow-in);
}

.stats dt {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--faint);
  text-transform: uppercase;
}

.stats dd {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-preview {
  position: absolute;
  right: 0;
  top: 322px;
  width: 318px;
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.42));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 22px 26px 54px rgba(62, 78, 98, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transform: rotate(2.4deg);
  display: grid;
  gap: 14px;
}

.preview-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--faint);
  text-transform: uppercase;
}

.preview-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2f9e44;
  box-shadow: 0 0 0 3px rgba(47, 158, 68, 0.16);
}

.preview-tag {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(47, 158, 68, 0.12);
  color: #27793a;
  letter-spacing: 0.08em;
}

.preview-rule {
  margin: 0;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.preview-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--muted);
}

.preview-foot {
  padding-top: 12px;
  border-top: 1px solid rgba(150, 165, 185, 0.22);
  font-size: 11px;
  color: var(--faint);
}

.section {
  padding: 26px 0 84px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-note {
  max-width: 330px;
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

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

.loading-note {
  grid-column: 1 / -1;
  padding: 40px 0;
  color: var(--faint);
  font-size: 14px;
}

.folder {
  --accent: #b7ff3c;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.22 / 1;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.folder:hover {
  transform: translateY(-4px);
}

.folder:focus-visible {
  outline: none;
}

.folder:focus-visible .folder-body {
  box-shadow: 0 0 0 3px var(--accent), 16px 20px 40px rgba(70, 85, 105, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.folder-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 2px);
  z-index: 9;
  transform: translate(-50%, 8px);
  padding: 8px 13px;
  border-radius: 999px;
  background: #12161b;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 12px 26px rgba(10, 16, 24, 0.22);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.folder-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 8px;
  height: 8px;
  background: #12161b;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
}

.folder:hover .folder-tooltip,
.folder:focus-visible .folder-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.folder-paper {
  position: absolute;
  left: 10%;
  right: 5%;
  top: 4%;
  height: 60%;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--accent), rgba(255, 255, 255, 0.95) 82%);
  opacity: 0.52;
  transform: rotate(-5deg);
  box-shadow: 0 5px 0 rgba(255, 255, 255, 0.32), 0 10px 0 rgba(120, 135, 155, 0.05),
    12px 16px 28px rgba(52, 66, 86, 0.12);
  z-index: 1;
}

.folder-body {
  position: absolute;
  left: 3%;
  right: 1%;
  top: 34%;
  bottom: 3%;
  border-radius: 26px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 16px 22px 44px rgba(62, 78, 98, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
  z-index: 2;
  transition: box-shadow 0.35s ease;
}

.folder-tab {
  position: absolute;
  left: -1px;
  top: -17px;
  width: 38%;
  height: 30px;
  border-radius: 17px 17px 0 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.42));
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-bottom: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.folder-pocket {
  position: absolute;
  inset: auto 0 0 0;
  height: 70%;
  border-radius: 22px 22px 25px 25px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.66));
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 -10px 22px rgba(255, 255, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.folder-icon {
  position: absolute;
  left: 50%;
  top: 39%;
  z-index: 3;
  width: 76px;
  height: 76px;
  margin-left: -38px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: var(--accent);
  background: linear-gradient(150deg, #ffffff, rgba(255, 255, 255, 0.58));
  box-shadow: 10px 12px 26px rgba(58, 74, 94, 0.2), inset 0 1px 0 #fff;
  transition: transform 0.48s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.48s ease;
}

.folder-icon svg {
  width: 36px;
  height: 36px;
}

.folder:hover .folder-icon,
.folder:focus-visible .folder-icon {
  transform: translateY(-48px) rotate(-4deg) scale(1.08);
  box-shadow: 20px 26px 42px rgba(48, 64, 84, 0.26), inset 0 1px 0 #fff;
}

.folder-label {
  position: absolute;
  left: 28px;
  bottom: 26px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.folder-label strong {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.folder-label small {
  font-size: 12px;
  color: var(--muted);
}

.install {
  padding-bottom: 96px;
}

.install-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  padding: 44px;
  border-radius: 34px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-out);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.install-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.install-points {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.install-points li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  color: var(--muted);
}

.install-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 255, 60, 0.22);
}

.install-steps {
  display: grid;
  gap: 16px;
  align-content: start;
}

.code-block {
  border-radius: 18px;
  background: #14181d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 12px 16px 32px rgba(30, 40, 54, 0.22);
  overflow: hidden;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #8b98a6;
  text-transform: uppercase;
}

.copy-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #d8e0e7;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.copy-btn:hover {
  background: var(--accent);
  color: #111;
  border-color: var(--accent);
}

.code-block pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
}

.code-block code {
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.8;
  color: #e6edf3;
  white-space: pre;
}

.install-foot {
  margin: 0;
  font-size: 12px;
  color: var(--faint);
}

.install-foot code {
  font-family: ui-monospace, monospace;
  color: var(--muted);
}

.site-footer {
  padding: 30px 0 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--faint);
  font-size: 12px;
}

.site-footer p {
  margin: 0 0 6px;
}

.footer-meta {
  font-family: ui-monospace, monospace;
  letter-spacing: 0.08em;
}

/* Dialog */

.rules-dialog {
  width: min(1080px, 94vw);
  max-width: 1080px;
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.rules-dialog::backdrop {
  background: rgba(22, 28, 36, 0.42);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.dialog-shell {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  padding: 26px 26px 16px;
  border-radius: 30px;
  background: linear-gradient(160deg, #eff3f8, #e2e7ee);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 30px 42px 90px rgba(18, 26, 38, 0.36), inset 0 1px 0 #fff;
}

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

.dialog-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dialog-logo {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--bg);
  box-shadow: var(--shadow-soft);
  color: var(--accent);
  flex: 0 0 auto;
}

.dialog-logo svg {
  width: 26px;
  height: 26px;
}

.dialog-title h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
}

.dialog-title p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  background: var(--bg);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
}

.icon-btn:active {
  box-shadow: var(--shadow-in);
}

.icon-btn svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.dialog-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: var(--bg);
  box-shadow: var(--shadow-in);
}

.chip {
  border: 0;
  border-radius: 11px;
  padding: 8px 13px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.chip:hover {
  color: var(--ink);
}

.chip.is-active {
  background: var(--bg-soft);
  color: var(--ink);
  box-shadow: 4px 4px 10px var(--dark-shadow), -4px -4px 10px var(--light-shadow);
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-track {
  width: 48px;
  height: 28px;
  padding: 4px;
  border-radius: 999px;
  background: #ccd5e0;
  border: 1px solid #b3bec9;
  box-shadow: inset 3px 3px 6px #aab6c2, inset -3px -3px 6px #ffffff;
  transition: background 0.25s ease;
}

.switch-track span {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 2px 2px 6px rgba(60, 75, 95, 0.28);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.switch input:checked + .switch-track {
  background: var(--accent);
}

.switch input:checked + .switch-track span {
  transform: translateX(20px);
}

.switch input:focus-visible + .switch-track {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.dialog-note {
  margin: 14px 2px 0;
  font-size: 12px;
  color: var(--muted);
}

.table-wrap {
  position: relative;
  margin-top: 12px;
  max-height: 60vh;
  overflow: auto;
  border-radius: 18px;
  background: #e5eaf0;
  box-shadow: var(--shadow-in);
  scrollbar-width: thin;
  scrollbar-color: #b8c1cc transparent;
}

.table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.table-wrap::-webkit-scrollbar-thumb {
  background: #b8c1cc;
  border-radius: 999px;
  border: 3px solid #e5eaf0;
}

.rules-table {
  width: 100%;
  min-width: 780px;
  border-collapse: separate;
  border-spacing: 0;
}

.rules-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 14px 16px;
  background: #e9edf2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 14px rgba(40, 55, 75, 0.06);
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
}

.rules-table tbody td {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(150, 165, 185, 0.16);
  vertical-align: top;
  font-size: 13.5px;
  line-height: 1.62;
  color: #2b323a;
}

.rule-row {
  cursor: pointer;
  transition: background 0.18s ease;
}

.rule-row:hover {
  background: rgba(255, 255, 255, 0.48);
}

.rule-row:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.rule-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 210px;
}

.rule-cat {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.rule-name {
  font-weight: 650;
  font-size: 14px;
  color: var(--ink);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-critical {
  color: var(--critical);
  background: rgba(192, 57, 43, 0.11);
}

.badge-high {
  color: var(--high);
  background: rgba(211, 84, 0, 0.11);
}

.badge-medium {
  color: var(--medium);
  background: rgba(154, 117, 0, 0.12);
}

.badge-low {
  color: var(--low);
  background: rgba(59, 111, 212, 0.1);
}

.source {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 150px;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
}

.source-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9aa5b2;
}

.source-official .source-badge::before {
  background: #2f9e44;
}

.source-media .source-badge::before {
  background: #c98a00;
}

.source-community .source-badge::before {
  background: #7b61c9;
}

.source a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #2f5fb3;
  text-decoration: none;
  word-break: break-all;
}

.source a:hover {
  text-decoration: underline;
}

.source a svg {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.rule-detail td {
  padding: 0 16px 16px;
  background: rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(150, 165, 185, 0.16);
}

.rule-detail[hidden] {
  display: none;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(233, 237, 242, 0.72);
  box-shadow: inset 2px 2px 6px rgba(194, 201, 210, 0.5), inset -2px -2px 6px rgba(255, 255, 255, 0.8);
}

.detail-grid h4 {
  margin: 0 0 6px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.detail-grid p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}

.detail-meta {
  margin-top: 8px;
  font-family: ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--faint);
}

.table-state {
  padding: 40px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--faint);
}

.dialog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px 0;
  font-size: 11.5px;
  color: var(--faint);
}

.dialog-foot b {
  color: var(--muted);
  font-weight: 600;
}

.skeleton-row td {
  padding: 18px 16px;
}

.skeleton-line {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #dfe5ec 25%, #eef2f7 37%, #dfe5ec 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

@media (max-width: 1240px) {
  .hero-preview {
    display: none;
  }
}

@media (max-width: 980px) {
  .folders {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 24px;
  }

  .install-card {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 32px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (max-width: 620px) {
  .hero,
  .section,
  .site-footer {
    width: calc(100% - 40px);
  }

  .hero {
    padding-bottom: 56px;
  }

  .hero-copy {
    padding-top: 40px;
  }

  .lede {
    font-size: 15.5px;
  }

  .topbar-links {
    gap: 16px;
  }

  .folders {
    grid-template-columns: 1fr;
  }

  .folder {
    aspect-ratio: 1.35 / 1;
  }

  .folder-icon {
    width: 66px;
    height: 66px;
    margin-left: -33px;
    top: 33%;
  }

  .folder-icon svg {
    width: 30px;
    height: 30px;
  }

  .folder:hover .folder-icon,
  .folder:focus-visible .folder-icon {
    transform: translateY(-30px) rotate(-4deg) scale(1.05);
  }

  .dialog-shell {
    padding: 18px 14px 12px;
    border-radius: 22px;
  }

  .rules-dialog {
    width: 96vw;
    max-height: 94vh;
  }

  .dialog-title h2 {
    font-size: 21px;
  }

  .dialog-logo {
    width: 44px;
    height: 44px;
  }

  .dialog-tools {
    align-items: flex-start;
  }

  .table-wrap {
    max-height: 56vh;
  }

  .rules-table,
  .rules-table tbody {
    display: block;
    min-width: 0;
  }

  .rules-table thead {
    display: none;
  }

  .rule-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    padding: 15px 16px;
    border-bottom: 1px solid rgba(150, 165, 185, 0.16);
  }

  .rule-row td {
    display: block;
    padding: 0;
    border: 0;
    font-size: 12.5px;
  }

  .rule-row td:nth-child(1) {
    grid-column: 1;
  }

  .rule-row td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .rule-row td:nth-child(3) {
    grid-column: 1 / -1;
    color: var(--muted);
  }

  .rule-row td:nth-child(4) {
    grid-column: 1 / -1;
  }

  .rule-detail {
    display: block;
  }

  .rule-detail td {
    display: block;
    padding: 0 16px 16px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dialog-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

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