:root {
  --bg: #080910;
  --bg-2: #0d0f18;
  --card: #14161f;
  --card-2: #191c27;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f5f9;
  --muted: #9aa1b4;
  --faint: #6b7284;
  --accent: #6c8cff;
  --accent-2: #9d7bff;
  --critical: #ff453a;
  --high: #ff9f0a;
  --medium: #ffd60a;
  --low: #30d158;
  --none: #64d2ff;
  --kev: #ff5a4f;
  --radius: 18px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 60px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(108, 140, 255, 0.16), transparent 62%),
    radial-gradient(700px 380px at 100% 0%, rgba(157, 123, 255, 0.11), transparent 60%),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  overscroll-behavior-y: none;
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
  font: inherit;
  color: inherit;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

svg {
  width: 22px;
  height: 22px;
  flex: none;
}

#app {
  max-width: 820px;
  margin: 0 auto;
  padding: calc(8px + var(--safe-top)) 16px calc(var(--tabbar-h) + 34px + var(--safe-bottom));
  min-height: 100dvh;
}

.boot {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 70dvh;
  color: var(--muted);
}

.boot-logo {
  display: grid;
  place-items: center;
  animation: breathe 2.4s ease-in-out infinite;
}

.boot-logo img {
  height: 44px;
  width: auto;
  display: block;
}

@keyframes breathe {
  0%, 100% { opacity: 0.6; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1); }
}

.netbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}

.netbar.on {
  opacity: 1;
}

.netbar span {
  display: block;
  height: 100%;
  width: 34%;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  animation: netmove 1.15s linear infinite;
}

@keyframes netmove {
  from { transform: translateX(-100%); }
  to { transform: translateX(320%); }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 0 -16px 6px;
  padding: calc(10px + var(--safe-top)) 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(8, 9, 16, 0.78);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.topbar h1 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.topbar .sub {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--faint);
  letter-spacing: 0;
  margin-top: 3px;
}

.hero {
  padding: 10px 2px 16px;
}

.hero .brand {
  display: block;
  width: fit-content;
  margin: 0 0 10px;
  -webkit-tap-highlight-color: transparent;
}

.hero .brand img {
  height: 38px;
  width: auto;
  display: block;
}

.hero h1 {
  margin: 0;
  font-size: clamp(21px, 5.6vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 750;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #9fb4ff, #c6a9ff 60%, #8ee6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12.5px;
}

.hero .meta b {
  color: #d8dcea;
  font-weight: 600;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: #d7dbea;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.16s, transform 0.16s, border-color 0.16s;
}

.icon-btn:active {
  transform: scale(0.93);
  background: rgba(255, 255, 255, 0.09);
}

.icon-btn.spin svg {
  animation: spin 0.9s linear infinite;
}

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

.pull-refresh {
  position: fixed;
  top: calc(var(--safe-top) + 8px);
  left: 50%;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(20, 22, 31, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -64px);
  transition: transform 0.24s ease, opacity 0.18s ease;
}

.pull-refresh svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
}

.pull-refresh.pulling {
  opacity: 1;
  transition: none;
}

.pull-refresh.ready {
  color: var(--text);
}

.pull-refresh.busy {
  opacity: 1;
  transform: translate(-50%, 0);
}

.pull-refresh.busy svg {
  animation: spin 0.9s linear infinite;
}

.to-top {
  position: fixed;
  right: 16px;
  bottom: calc(var(--tabbar-h) + 16px + var(--safe-bottom));
  z-index: 46;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(140deg, #6c8cff, #9d7bff);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  color: #fff;
  box-shadow: 0 10px 28px rgba(108, 140, 255, 0.45);
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:active {
  transform: scale(0.94);
}

.to-top svg {
  width: 22px;
  height: 22px;
}

body.detail-open .to-top {
  opacity: 0;
  pointer-events: none;
}

.chipbar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 16px 12px;
  margin: 0 -16px;
}

.chipbar::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: #c8cede;
  font-size: 12.5px;
  font-weight: 550;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: 0.16s;
}

.chip:active {
  transform: scale(0.96);
}

.chip.on {
  background: linear-gradient(140deg, rgba(108, 140, 255, 0.28), rgba(157, 123, 255, 0.18));
  border-color: rgba(130, 155, 255, 0.6);
  color: #eef1ff;
  box-shadow: 0 0 0 1px rgba(108, 140, 255, 0.12) inset;
}

.chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.chip .range {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  opacity: 0.68;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 2px 0 14px;
}

.stat {
  padding: 11px 12px;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
}

.stat b {
  display: block;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.stat span {
  color: var(--faint);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

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

.progress {
  position: sticky;
  top: var(--safe-top);
  z-index: 26;
  margin: 0 -16px 12px;
  padding: 8px 16px 10px;
  background: rgba(8, 9, 16, 0.9);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 0 rgba(8, 9, 16, 0.9);
}

.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.progress-head b {
  color: #d8dcea;
  font-size: 13px;
  font-weight: 700;
}

.progress-head .pct {
  color: var(--faint);
  white-space: nowrap;
}

.progress-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6c8cff, #9d7bff 60%, #8ee6ff);
  transition: width 0.35s ease;
}

.progress.done .pct {
  color: #30d158;
}

.card {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 15px 13px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    var(--card);
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s;
  -webkit-user-select: none;
  user-select: none;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(300px 120px at 100% 0%, rgba(108, 140, 255, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.card:active {
  transform: scale(0.988);
  border-color: var(--line-strong);
}

.card:active::after {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.id {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: #dfe4f5;
  font-weight: 600;
}

.card-top .spacer {
  flex: 1;
}

.card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-weight: 650;
}

.card .blurb {
  margin: 0;
  color: #a9b0c2;
  font-size: 12.8px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 10px;
  color: var(--faint);
  font-size: 11.5px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.6;
  border: 1px solid transparent;
}

.pill.score {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 11.5px;
}

.sev-critical { color: var(--critical); background: rgba(255, 69, 58, 0.13); border-color: rgba(255, 69, 58, 0.3); }
.sev-high { color: var(--high); background: rgba(255, 159, 10, 0.13); border-color: rgba(255, 159, 10, 0.28); }
.sev-medium { color: var(--medium); background: rgba(255, 214, 10, 0.1); border-color: rgba(255, 214, 10, 0.24); }
.sev-low { color: var(--low); background: rgba(48, 209, 88, 0.11); border-color: rgba(48, 209, 88, 0.25); }
.sev-none { color: var(--none); background: rgba(100, 210, 255, 0.1); border-color: rgba(100, 210, 255, 0.24); }

.pill.kev {
  color: #ffd9d5;
  background: linear-gradient(140deg, rgba(255, 69, 58, 0.32), rgba(255, 90, 79, 0.12));
  border-color: rgba(255, 90, 79, 0.45);
}

.pill.ghost {
  color: #aeb5c8;
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line);
}

.pill.accent {
  color: #dfe6ff;
  background: rgba(108, 140, 255, 0.16);
  border-color: rgba(108, 140, 255, 0.35);
}

.pill.ransom {
  color: #ffc2bc;
  background: rgba(255, 69, 58, 0.14);
  border-color: rgba(255, 69, 58, 0.33);
}

.epss-mini {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.epss-mini .bar {
  width: 34px;
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.epss-mini .bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #4d7cff, #9d7bff);
}

.empty {
  padding: 34px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.018);
}

.empty svg {
  width: 40px;
  height: 40px;
  color: var(--faint);
  margin-bottom: 8px;
}

.empty h3 {
  margin: 4px 0 6px;
  color: #dfe3ef;
  font-size: 15px;
}

.empty p {
  margin: 0 auto;
  max-width: 320px;
  font-size: 12.5px;
  line-height: 1.6;
}

.skeleton {
  height: 104px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.035) 30%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.035) 70%);
  background-size: 260% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

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

.loadmore {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 18px 0 4px;
  color: var(--faint);
  font-size: 12px;
}

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

.section-note {
  color: var(--faint);
  font-size: 11.5px;
  margin: 0 2px 10px;
}

.detail-nav {
  position: sticky;
  top: 0;
  z-index: 34;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 -16px 12px;
  padding: calc(8px + var(--safe-top)) 16px 10px;
  background: rgba(8, 9, 16, 0.8);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}

.detail-nav .brand-lockup {
  flex: none;
  width: auto;
  height: 40px;
  display: grid;
  place-items: center;
  margin-left: -4px;
  -webkit-tap-highlight-color: transparent;
}

.detail-nav .brand-lockup img {
  height: 26px;
  width: auto;
  display: block;
}

.detail-nav .grow {
  flex: 1;
  min-width: 0;
}

.detail-nav .title {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 13.5px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-nav .sub {
  font-size: 10.5px;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-card {
  position: relative;
  padding: 18px 16px 15px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(260px 160px at 92% 6%, rgba(108, 140, 255, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    var(--card);
  overflow: hidden;
}

.hero-card.kev-on {
  background:
    radial-gradient(280px 170px at 92% 4%, rgba(255, 69, 58, 0.25), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    #15121a;
  border-color: rgba(255, 90, 79, 0.35);
}

.hero-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.score-ring {
  --pct: 0;
  --sev: #6c8cff;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--sev) calc(var(--pct) * 1%), rgba(255, 255, 255, 0.08) 0);
  position: relative;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #101219;
}

.score-ring .inner {
  position: relative;
  text-align: center;
  line-height: 1;
}

.score-ring .inner b {
  display: block;
  font-size: 28px;
  letter-spacing: -0.04em;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.score-ring .inner span {
  display: block;
  margin-top: 5px;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 650;
}

.score-ring.no-score .inner b {
  font-size: 20px;
  color: var(--faint);
}

.hero-main {
  min-width: 0;
  flex: 1;
}

.hero-main .verdict {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 3px;
}

.hero-main .verdict.critical { color: #ff6b62; }
.hero-main .verdict.high { color: #ffb340; }
.hero-main .verdict.medium { color: #ffe066; }
.hero-main .verdict.low { color: #66e08a; }

.hero-main .cve-title {
  margin: 0;
  color: #b6bdcd;
  font-size: 12.8px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.hero-facts div span {
  display: block;
  font-size: 10px;
  color: var(--faint);
  letter-spacing: 0.04em;
}

.hero-facts div b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #dde2f0;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.banner {
  display: flex;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 15px;
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.55;
  align-items: flex-start;
}

.banner svg {
  width: 19px;
  height: 19px;
  margin-top: 1px;
}

.banner.danger {
  color: #ffd4d0;
  background: linear-gradient(140deg, rgba(255, 69, 58, 0.16), rgba(255, 69, 58, 0.05));
  border: 1px solid rgba(255, 69, 58, 0.32);
}

.banner.warn {
  color: #ffe0b8;
  background: linear-gradient(140deg, rgba(255, 159, 10, 0.14), rgba(255, 159, 10, 0.04));
  border: 1px solid rgba(255, 159, 10, 0.28);
}

.banner.info {
  color: #d9e2ff;
  background: linear-gradient(140deg, rgba(108, 140, 255, 0.13), rgba(108, 140, 255, 0.03));
  border: 1px solid rgba(108, 140, 255, 0.25);
}

.banner.cache-note {
  margin: 0 0 12px;
}

.banner b {
  color: inherit;
}

.banner .b-title {
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.banner .banner-btn {
  display: flex;
  width: fit-content;
  margin-top: 9px;
  padding: 7px 12px;
  font-size: 12px;
  border-radius: 10px;
}

.section {
  margin-top: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)), var(--card);
  overflow: hidden;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-head svg {
  width: 18px;
  height: 18px;
  color: #8fa5ff;
}

.section-head h2 {
  margin: 0;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  font-weight: 650;
}

.section-head .tag {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--faint);
}

.section-body {
  padding: 13px 15px 15px;
}

.section-body > :first-child {
  margin-top: 0;
}

.section-body > :last-child {
  margin-bottom: 0;
}

.section-body p {
  margin: 0 0 10px;
  font-size: 13.4px;
  line-height: 1.68;
  color: #c9d0e0;
}

.section-body p.ja {
  color: #d5dbeb;
}

.section-body h4 {
  margin: 14px 0 6px;
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 650;
}

.kv {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0;
  margin: 0;
  font-size: 12.8px;
}

.kv dt {
  color: var(--faint);
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.kv dd {
  margin: 0;
  padding: 6px 0;
  color: #d3daea;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  overflow-wrap: anywhere;
}

.kv dt:first-of-type,
.kv dt:first-of-type + dd {
  border-top: 0;
}

.vector {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 11.5px;
  color: #9fb0e0;
  background: rgba(108, 140, 255, 0.08);
  border: 1px solid rgba(108, 140, 255, 0.18);
  border-radius: 10px;
  padding: 8px 10px;
  overflow-wrap: anywhere;
  line-height: 1.5;
  margin: 0;
}

.cvss-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 14px;
  margin-top: 10px;
}

.cvss-grid div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cvss-grid span {
  color: var(--faint);
}

.cvss-grid b {
  font-weight: 600;
  color: #dbe1f0;
  text-align: right;
}

.cwe-item {
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.cwe-item:first-child {
  border-top: 0;
  padding-top: 2px;
}

.cwe-item .row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cwe-item .code {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: #a9bbff;
  background: rgba(108, 140, 255, 0.1);
  border-radius: 6px;
  padding: 1px 6px;
}

.cwe-item b {
  font-size: 13px;
  font-weight: 600;
}

.cwe-item .hint {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12.2px;
  line-height: 1.55;
}

.cause-deep {
  margin-top: 13px;
  border: 1px solid rgba(108, 140, 255, 0.22);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(108, 140, 255, 0.075), rgba(108, 140, 255, 0.02));
  overflow: hidden;
}

.cause-deep > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  cursor: pointer;
  user-select: none;
}

.cause-deep > summary::-webkit-details-marker {
  display: none;
}

.cd-ico {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 140, 255, 0.16);
  color: #a9bbff;
}

.cd-ico svg {
  width: 15px;
  height: 15px;
}

.cd-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cd-main b {
  font-size: 12.5px;
  font-weight: 650;
  color: #dde4f6;
}

.cd-main span {
  font-size: 10.8px;
  line-height: 1.4;
  color: var(--faint);
}

.cd-chev {
  flex: none;
  margin-left: auto;
  display: flex;
  color: var(--faint);
}

.cd-chev svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.cause-deep[open] .cd-chev svg {
  transform: rotate(90deg);
}

.deep-wrap {
  padding: 2px 13px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.deep-wrap > .section-note {
  margin: 10px 0 12px;
}

.cause-conditions {
  padding: 10px 11px;
  margin-bottom: 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.032);
}

.cc-title {
  display: block;
  margin-bottom: 7px;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--faint);
}

.cc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
}

.cc-grid div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
  font-size: 11.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cc-grid span {
  color: var(--faint);
}

.cc-grid b {
  font-weight: 600;
  color: #d5dcec;
  text-align: right;
}

.deep-cwe {
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.deep-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.deep-head .code {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: #a9bbff;
  background: rgba(108, 140, 255, 0.1);
  padding: 1px 6px;
  border-radius: 6px;
}

.deep-head b {
  font-size: 13px;
  font-weight: 600;
}

.deep-cat {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--faint);
}

.deep-cwe .deep-mech {
  margin: 7px 0 0;
  font-size: 12.6px;
  line-height: 1.65;
  color: #c4ccdd;
}

.cause-chain {
  list-style: none;
  counter-reset: cc;
  margin: 0;
  padding: 0;
}

.cause-chain li {
  position: relative;
  counter-increment: cc;
  padding: 4px 0 4px 26px;
  font-size: 12.3px;
  line-height: 1.55;
  color: #c2cbdd;
}

.cause-chain li::before {
  content: counter(cc);
  position: absolute;
  left: 0;
  top: 5px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 140, 255, 0.14);
  color: #a9bbff;
  font-size: 10px;
  font-weight: 700;
}

.cause-chain li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 23px;
  bottom: -3px;
  width: 1px;
  background: rgba(108, 140, 255, 0.18);
}

.code-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.code-pane {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: #0a0c14;
}

.code-pane.bad {
  border-left: 2px solid rgba(255, 69, 58, 0.62);
}

.code-pane.good {
  border-left: 2px solid rgba(48, 209, 88, 0.62);
}

.code-label {
  display: block;
  padding: 6px 10px 5px;
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--faint);
  background: rgba(255, 255, 255, 0.03);
}

.code-pane.bad .code-label {
  color: #ff8a80;
}

.code-pane.good .code-label {
  color: #8ce99a;
}

.code-pane pre {
  margin: 0;
  padding: 9px 10px 10px;
  overflow-x: auto;
}

.deep-wrap .code-pane code {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.55;
  color: #c9d4f5;
  background: none;
  padding: 0;
  border-radius: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.products {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.products .product {
  padding: 10px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.045);
}

.products .product .p-top {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}

.products .product .name {
  font-size: 13px;
  font-weight: 620;
  color: #e3e8f4;
}

.products .product .vendor {
  font-size: 11px;
  color: var(--faint);
}

.products .product .ranges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.range {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 10.8px;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #c3cbdd;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.range.fix {
  color: #b7f0c9;
  background: rgba(48, 209, 88, 0.09);
  border-color: rgba(48, 209, 88, 0.24);
}

.range.small {
  font-size: 10px;
}

.risk-scale {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  margin-bottom: 10px;
}

.risk-scale .value {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.risk-scale .label {
  font-size: 11px;
  color: var(--faint);
}

.risk-scale .spacer {
  flex: 1;
}

.meter {
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.meter i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #30d158, #ffd60a 46%, #ff9f0a 72%, #ff453a);
  transition: width 0.5s ease;
}

.bullets {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bullets li {
  position: relative;
  padding: 4px 0 4px 19px;
  font-size: 13px;
  line-height: 1.6;
  color: #cdd4e4;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6c8cff;
  opacity: 0.8;
}

.bullets.check li::before {
  content: "";
  width: 9px;
  height: 5px;
  border: solid #30d158;
  border-width: 0 0 2px 2px;
  border-radius: 0;
  background: transparent;
  transform: rotate(-45deg);
  top: 9px;
  left: 2px;
  opacity: 1;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  color: #bfc9e6;
  font-size: 12.3px;
  min-width: 0;
}

.link-row:first-child {
  border-top: 0;
}

.link-row svg {
  width: 15px;
  height: 15px;
  color: var(--faint);
}

.link-row .u {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.link-row .tag {
  font-size: 9.5px;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 4px;
  flex: none;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 2px 0 0 2px;
}

.timeline li {
  position: relative;
  padding: 0 0 15px 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  margin-left: 4px;
}

.timeline li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2a3248;
  border: 2px solid #0d0f16;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.timeline li.pub::before { background: #6c8cff; }
.timeline li.kev::before { background: var(--kev); box-shadow: 0 0 10px rgba(255, 90, 79, 0.55); }
.timeline li.due::before { background: var(--high); }
.timeline li.mod::before { background: #5c6a8a; }
.timeline li.ssvc::before { background: #9d7bff; }
.timeline li.epss::before { background: #64d2ff; }

.timeline .t {
  font-size: 12.5px;
  font-weight: 620;
  color: #dfe5f3;
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}

.timeline .t time {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 10.5px;
  color: var(--faint);
  font-weight: 400;
}

.timeline .d {
  color: var(--muted);
  font-size: 11.8px;
  line-height: 1.5;
  margin-top: 2px;
}

details.raw {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

details.raw summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 0 2px;
  color: var(--faint);
  font-size: 11.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

details.raw summary::-webkit-details-marker {
  display: none;
}

details.raw summary::before {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(-45deg);
  margin-right: 2px;
  transition: transform 0.2s;
}

details.raw[open] summary::before {
  transform: rotate(45deg);
}

details.raw p {
  color: #aeb7cb !important;
  font-size: 12.2px !important;
  line-height: 1.65 !important;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 15px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: #e3e8f5;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s;
  text-align: center;
}

.btn:active {
  transform: scale(0.97);
}

.btn.primary {
  background: linear-gradient(140deg, #6c8cff, #8f6cff);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(108, 140, 255, 0.28);
}

.btn.wide {
  width: 100%;
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn:disabled {
  opacity: 0.5;
}

.search-wrap {
  position: sticky;
  top: calc(50px + var(--safe-top));
  z-index: 25;
  padding: 6px 0 10px;
  background: linear-gradient(180deg, var(--bg) 72%, transparent);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  transition: border-color 0.2s, background 0.2s;
}

.search-field:focus-within {
  border-color: rgba(108, 140, 255, 0.55);
  background: rgba(108, 140, 255, 0.08);
}

.search-field svg {
  width: 18px;
  height: 18px;
  color: var(--faint);
}

.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font-size: 16px;
  color: var(--text);
}

.search-field input::placeholder {
  color: var(--faint);
}

.search-field button {
  border: 0;
  background: none;
  color: var(--faint);
  font-size: 12px;
  padding: 4px;
}

.cond-panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  margin-bottom: 12px;
}

.cond-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease;
}

.cond-panel:not(.collapsed) .cond-toggle {
  border-bottom-color: rgba(255, 255, 255, 0.045);
}

.cond-toggle b {
  flex: none;
  font-size: 13px;
  font-weight: 600;
}

.cond-summary {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--faint);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.cond-panel:not(.collapsed) .cond-summary {
  opacity: 0.55;
}

.cond-chevron {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--faint);
  transform: rotate(90deg);
  transition: transform 0.22s ease;
}

.cond-panel.collapsed .cond-chevron {
  transform: rotate(0deg);
}

.cond-body {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.24s ease, visibility 0.24s;
}

.cond-panel.collapsed .cond-body {
  grid-template-rows: 0fr;
  visibility: hidden;
}

.cond-inner {
  overflow: hidden;
  min-height: 0;
}

.cond-block {
  padding: 12px 14px;
}

.cond-block + .cond-block {
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.cond-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.cond-head b {
  font-size: 13px;
  font-weight: 600;
}

.cond-head span {
  color: var(--faint);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.cond-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cond-chips .chip {
  font-size: 12px;
  padding: 7px 11px;
}

.search-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.search-reset {
  flex: none;
  height: 46px;
  padding: 0 15px;
}

.search-reset svg {
  width: 15px;
  height: 15px;
}

.search-run {
  flex: 1;
  height: 46px;
}

.search-run svg {
  width: 17px;
  height: 17px;
}

.search-run.busy {
  opacity: 1;
}

.search-run .spinner {
  width: 16px;
  height: 16px;
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
}

#search-results {
  scroll-margin-top: 112px;
}

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(10, 11, 17, 0.84);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #6f7688;
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0.01em;
  transition: color 0.18s;
}

.tabbar a svg {
  width: 23px;
  height: 23px;
}

.tabbar a.on {
  color: #aebfff;
}

.tabbar a:active {
  transform: scale(0.95);
}

@media (min-width: 700px) {
  .tabbar {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 16px;
    width: 420px;
    height: 58px;
    padding-bottom: 0;
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
  }
  #app {
    padding-bottom: 120px;
  }
  .to-top {
    right: max(16px, calc((100vw - 820px) / 2 + 16px));
    bottom: calc(var(--safe-bottom) + 92px);
  }
}

#layer {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}

#layer.open {
  pointer-events: auto;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.24s ease;
}

#layer.open .sheet-backdrop {
  opacity: 1;
}

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  background: #12141d;
  border-radius: 24px 24px 0 0;
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.6);
  transform: translateY(102%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  padding-bottom: var(--safe-bottom);
}

#layer.open .sheet {
  transform: translateY(0);
}

.sheet-grip {
  width: 38px;
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
  margin: 8px auto 2px;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px 6px;
}

.sheet-head h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.sheet-head .close {
  border: 0;
  background: rgba(255, 255, 255, 0.07);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #b9c0d3;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.sheet-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 18px 18px;
}

.sheet-body h3 {
  margin: 18px 0 8px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 650;
}

.sheet-body h3:first-child {
  margin-top: 4px;
}

.seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.seg button {
  flex: 1;
  border: 0;
  background: none;
  color: var(--muted);
  padding: 8px 6px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.16s;
}

.seg button.on {
  background: linear-gradient(140deg, rgba(108, 140, 255, 0.35), rgba(157, 123, 255, 0.25));
  color: #f0f3ff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13.5px;
}

.toggle-row:last-child {
  border-bottom: 0;
}

.toggle-row .hint {
  display: block;
  color: var(--faint);
  font-size: 11px;
  margin-top: 1px;
}

.switch {
  position: relative;
  width: 46px;
  height: 28px;
  flex: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 0;
  cursor: pointer;
  transition: background 0.2s;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.switch.on {
  background: linear-gradient(120deg, #6c8cff, #9d7bff);
}

.switch.on::after {
  transform: translateX(18px);
}

.slider-row {
  padding: 4px 0 10px;
}

.slider-row .top {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 2px;
}

.slider-row .top b {
  color: #dfe5f5;
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  margin: 0;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, #6c8cff var(--fill, 30%), rgba(255, 255, 255, 0.12) var(--fill, 30%));
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  margin-top: -10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.sheet-actions {
  display: flex;
  gap: 8px;
  padding: 12px 18px 6px;
  border-top: 1px solid var(--line);
}

.sheet-actions .btn {
  flex: 1;
}

.field-label {
  display: block;
  font-size: 11.5px;
  color: var(--faint);
  margin: 16px 0 6px;
  letter-spacing: 0.03em;
}

.input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.input:focus {
  border-color: rgba(108, 140, 255, 0.6);
}

.input.mono {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.key-field {
  position: relative;
}

.key-field .input {
  padding-right: 48px;
}

.key-toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  transform: translateY(-50%);
  cursor: pointer;
}

.key-toggle:active {
  background: rgba(255, 255, 255, 0.07);
}

.key-toggle svg {
  width: 20px;
  height: 20px;
}

.key-toggle .eye-hide {
  display: none;
}

.key-toggle[aria-pressed="true"] {
  color: var(--accent);
}

.key-toggle[aria-pressed="true"] .eye-show {
  display: none;
}

.key-toggle[aria-pressed="true"] .eye-hide {
  display: block;
}

select.input {
  -webkit-appearance: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #8b93a8 50%), linear-gradient(135deg, #8b93a8 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.group {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  margin-bottom: 14px;
}

.group .toggle-row {
  padding: 12px 14px;
}

.group .toggle-row + .toggle-row {
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  border-bottom: 0;
}

.group .toggle-row .label {
  min-width: 0;
  flex: 1;
}

.group .toggle-row .label b {
  display: block;
  font-weight: 600;
  font-size: 13.5px;
}

.group .toggle-row .label span {
  display: block;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.5;
  margin-top: 3px;
}

.settings-note {
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.6;
  margin: -6px 4px 14px;
}

.key-status {
  display: flex;
  gap: 7px;
  margin: 10px 0 0;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card-2);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.key-status[hidden] {
  display: none;
}

.key-status::before {
  content: "•";
  flex: none;
  font-weight: 700;
}

.key-status.pending {
  color: var(--muted);
}

.key-status.pending::before {
  content: "…";
}

.key-status.ok {
  border-color: rgba(48, 209, 88, 0.45);
  background: rgba(48, 209, 88, 0.1);
  color: #9ef0b6;
}

.key-status.ok::before {
  content: "OK";
  color: var(--low);
}

.key-status.error {
  border-color: rgba(255, 69, 58, 0.45);
  background: rgba(255, 69, 58, 0.1);
  color: #ffb4ae;
}

.key-status.error::before {
  content: "!";
  color: var(--critical);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 24px + var(--safe-bottom));
  transform: translate(-50%, 14px);
  z-index: 90;
  max-width: min(88vw, 420px);
  padding: 10px 15px;
  border-radius: 14px;
  background: rgba(30, 33, 46, 0.96);
  border: 1px solid var(--line-strong);
  color: #e8ecf7;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.24s ease;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript {
  padding: 40px;
  text-align: center;
}

.fade-in {
  animation: fadein 0.28s ease both;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

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

.hero-text {
  min-width: 0;
}

.hero-actions {
  display: flex;
  gap: 8px;
  flex: none;
  padding-top: 2px;
}

.hero-actions .icon-btn {
  position: relative;
}

.icon-btn .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: linear-gradient(140deg, #6c8cff, #9d7bff);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.group-label {
  margin: 20px 4px 8px;
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 650;
}

.group-label:first-of-type {
  margin-top: 4px;
}

.card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-nav {
  padding-top: 8px;
}

body.detail-open .tabbar {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

body.detail-open #app {
  padding-bottom: calc(30px + var(--safe-bottom));
}

.tabbar {
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.section-body code {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 11.5px;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  color: #c9d4f5;
}

.sheet-body {
  overscroll-behavior: contain;
}

@media (max-width: 360px) {
  .summary-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .stat {
    padding: 9px 10px;
  }
  .stat b {
    font-size: 17px;
  }
  .hero-facts {
    gap: 7px;
  }
}

.hero-main .verdict.unknown {
  color: var(--muted);
  font-size: 16px;
}

.search-field [hidden] {
  display: none;
}

.detail-nav {
  padding-top: calc(8px + var(--safe-top));
}

body.detail-open #app {
  padding-top: 0;
}

.products {
  margin: 0;
}

.products .product {
  margin: 0;
}

.affected {
  margin-top: 9px;
  padding: 8px 10px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sw-label {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}

.sw-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
  padding: 2px 0;
}

.sw-name {
  font-size: 12.3px;
  font-weight: 600;
  color: #dbe2f2;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.sw-name.muted {
  font-weight: 500;
  color: var(--faint);
}

.sw-more {
  font-size: 10.5px;
  color: var(--faint);
  margin-top: 3px;
}

.affected .range {
  font-size: 10.2px;
  padding: 1px 6px;
}

.card-foot .mono {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 10.8px;
  color: #9fb0e0;
}

.sw-row {
  flex-wrap: wrap;
}

.sw-name {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sw-row .range {
  flex: none;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.pill.score .ver {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0;
  opacity: 0.72;
  margin-left: 1px;
}

.cwe-box {
  margin-top: 9px;
  padding: 8px 10px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card .cwe-line {
  padding: 5px 0;
}

.card .cwe-line + .cwe-line {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card .cwe-head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.card .cwe-head .code {
  flex: none;
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 10.2px;
  color: #a9bbff;
  background: rgba(108, 140, 255, 0.1);
  border-radius: 6px;
  padding: 1px 6px;
}

.card .cwe-head b {
  font-size: 12.3px;
  font-weight: 600;
  line-height: 1.4;
  color: #dbe2f2;
}
