#main-content:has([data-zip-app]) {
  background:
    radial-gradient(ellipse 70% 40% at 10% 0%, rgb(186 230 253 / 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 50% 35% at 90% 5%, rgb(196 181 253 / 0.22) 0%, transparent 50%),
    #eef2f7;
}

.zipk-app {
  --ink: #0f172a;
  --muted: #475569;
  --soft: #64748b;
  --line: #e2e8f0;
  --card: #fff;
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --navy: #1e3a8a;
  --indigo: #6366f1;
  --cyan: #0891b2;
  --amber: #d97706;
  --amber-ink: #92400e;
  --green: #059669;
  --green-ink: #065f46;
  --red: #e11d48;
  --red-ink: #9f1239;
  --radius: 14px;
  --shadow: 0 10px 28px rgb(15 23 42 / 0.07);
  --focus: #2563eb;
  box-sizing: border-box;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.15rem 1rem 2.75rem;
  color: var(--ink);
  font-family: 'Noto Sans JP', 'Segoe UI', sans-serif;
  line-height: 1.65;
  min-width: 0;
}

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

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

.zipk-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----- Top ----- */
.zipk-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.85rem;
}

.zipk-top__brand h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.zipk-top__lead {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
}

.zipk-help { margin: 0; }
.zipk-help a {
  color: var(--blue-deep);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
}

/* ----- Steps ----- */
.zipk-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.zipk-steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  color: var(--soft);
  font-size: 0.8rem;
  font-weight: 700;
  background: rgb(255 255 255 / 0.55);
  border: 1px solid transparent;
}

.zipk-steps__no {
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.7rem;
}

.zipk-steps .is-done { color: var(--green-ink); }
.zipk-steps .is-done .zipk-steps__no { background: #a7f3d0; color: var(--green-ink); }
.zipk-steps .is-now {
  color: var(--navy);
  background: #eff6ff;
  border-color: #bfdbfe;
}
.zipk-steps .is-now .zipk-steps__no { background: var(--blue); color: #fff; }

/* ----- Panels ----- */
.zipk-panel {
  margin-top: 1rem;
  padding: 1.15rem 1.15rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.zipk-kicker {
  margin: 0 0 0.35rem;
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.zipk-panel h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.2rem, 0.4vw + 1.1rem, 1.45rem);
  font-weight: 800;
  line-height: 1.35;
}

.zipk-virus,
.zipk-note {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.zipk-note--slim {
  margin: 0.15rem 0 0.7rem;
  font-size: 0.9rem;
}

.zipk-note--empty {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
}

.zipk-note--hint {
  margin: 0.15rem 0 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  font-size: 0.9rem;
}

/* ----- Drop ----- */
.zipk-panel--drop { padding-bottom: 1.35rem; }

.zipk-drop {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  border: 2px dashed #93c5fd;
  border-radius: 16px;
  padding: clamp(1.6rem, 3vw, 2.4rem) 1.1rem;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgb(219 234 254 / 0.9) 0%, transparent 70%),
    #f8fbff;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.zipk-drop.is-over,
.zipk-drop:focus-visible {
  border-color: var(--blue);
  background: #eff6ff;
}

.zipk-drop__icon {
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  margin-bottom: 0.35rem;
  border-radius: 14px;
  color: var(--blue);
  background: #fff;
  border: 1px solid #dbeafe;
  box-shadow: 0 6px 16px rgb(37 99 235 / 0.1);
}

.zipk-drop strong {
  display: block;
  font-size: clamp(1.12rem, 0.4vw + 1.05rem, 1.35rem);
  font-weight: 800;
  color: var(--ink);
}

.zipk-drop p { margin: 0; max-width: 28rem; color: var(--muted); font-size: 0.95rem; }

.zipk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.95rem;
}

.zipk-actions--list {
  margin-top: 0.75rem;
  padding-top: 0.7rem;
  border-top: 1px solid #e2e8f0;
  gap: 0.5rem;
}

.zipk-actions--list .zipk-btn {
  min-height: 36px;
  padding: 0.28rem 0.8rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: none;
}

.zipk-btn {
  min-height: 44px;
  padding: 0.5rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgb(37 99 235 / 0.22);
}

.zipk-btn--ghost {
  background: #fff;
  color: var(--blue-deep);
  border-color: #cbd5e1;
  box-shadow: none;
}

.zipk-btn:disabled { opacity: 0.45; cursor: default; box-shadow: none; }

.zipk-sample-note {
  margin: 0.45rem 0 0;
  color: var(--soft);
  font-size: 0.85rem;
}

.zipk-mini-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  margin: 1.15rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.zipk-mini-flow span {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-right: 0.3rem;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--blue-deep);
  font-size: 0.75rem;
}

.zipk-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 0.95rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--green-ink);
  font-size: 0.86rem;
  font-weight: 700;
}

.zipk-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.zipk-trust svg { color: var(--green); flex: none; }

/* ----- Progress ----- */
.zipk-progress {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.zipk-progress__panel {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  padding: 1.25rem 1rem;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  text-align: center;
}

.zipk-progress__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  color: var(--blue);
  background: #fff;
  border: 1px solid #dbeafe;
}

.zipk-progress__title {
  margin: 0.2rem 0 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.zipk-progress__label {
  margin: 0;
  color: var(--blue-deep);
  font-weight: 700;
}

.zipk-progress__steps {
  display: grid;
  gap: 0.25rem;
  width: min(100%, 22rem);
  margin: 0.35rem 0 0.2rem;
  padding: 0;
  list-style: none;
  text-align: left;
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 600;
}

.zipk-progress__steps li {
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
}

.zipk-progress__steps li.is-active {
  color: var(--navy);
  background: #dbeafe;
  font-weight: 800;
}

.zipk-progress__steps li.is-done { color: var(--green-ink); }

.zipk-progress progress {
  width: min(100%, 22rem);
  height: 0.55rem;
  margin-top: 0.35rem;
}

.zipk-progress #zip-cancel { margin-top: 0.55rem; }

/* ----- Error ----- */
.zipk-error {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: var(--red-ink);
  font-weight: 700;
}

/* ----- Summary ----- */
.zipk-priority {
  margin: 0.55rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: var(--amber-ink);
  font-weight: 800;
}

.zipk-counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.zipk-count {
  margin: 0;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.zipk-count__label { display: block; font-size: 0.78rem; font-weight: 800; }
.zipk-count__value { display: block; margin-top: 0.15rem; font-size: 1.4rem; font-weight: 800; line-height: 1.2; }

.zipk-count--suggest { background: #ecfeff; border-color: #a5f3fc; }
.zipk-count--suggest .zipk-count__label,
.zipk-count--suggest .zipk-count__value { color: #0e7490; }

.zipk-count--check { background: #fffbeb; border-color: #fde68a; }
.zipk-count--check .zipk-count__label,
.zipk-count--check .zipk-count__value { color: var(--amber-ink); }

.zipk-count--compat { background: #f5f3ff; border-color: #ddd6fe; }
.zipk-count--compat .zipk-count__label,
.zipk-count--compat .zipk-count__value { color: #5b21b6; }

.zipk-count--ok { background: #ecfdf5; border-color: #a7f3d0; }
.zipk-count--ok .zipk-count__label,
.zipk-count--ok .zipk-count__value { color: var(--green-ink); }

.zipk-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.zipk-stat {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.zipk-stat__label { display: block; color: var(--soft); font-size: 0.75rem; font-weight: 700; }
.zipk-stat__value { display: block; font-size: 0.95rem; font-weight: 800; }

.zipk-extra { margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid var(--line); }
.zipk-extra h3 { margin: 0 0 0.35rem; font-size: 1rem; }

.zipk-scan,
.zipk-save-name,
.zipk-search {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.55rem;
  font-weight: 700;
}

.zipk-save-name,
.zipk-search {
  align-items: stretch;
  flex-direction: column;
}

.zipk-save-name input,
.zipk-search input {
  min-height: 44px;
  padding: 0.4rem 0.7rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
}

.zipk-save-name input {
  width: min(100%, 28rem);
}

.zipk-search input {
  width: min(100%, 34rem);
  max-width: 34rem;
}

/* ----- Findings (診断要約) ----- */
.zipk-findings {
  background:
    linear-gradient(180deg, #f8fbff 0%, #fff 42%);
}

.zipk-list-panel {
  border-color: #bfdbfe;
}

.zipk-bucket {
  margin-top: 0.65rem;
  padding: 0.65rem 0.75rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.zipk-bucket__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  align-items: baseline;
}

.zipk-bucket__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
}

.zipk-bucket__count {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--muted);
}

.zipk-bucket--suggest {
  border-color: #a5f3fc;
  background: #f0fdfa;
}
.zipk-bucket--suggest .zipk-bucket__title { color: #0e7490; }

.zipk-bucket--check {
  border-color: #fde68a;
  background: #fffbeb;
}
.zipk-bucket--check .zipk-bucket__title { color: var(--amber-ink); }

.zipk-bucket--compat {
  border-color: #ddd6fe;
  background: #f5f3ff;
}
.zipk-bucket--compat .zipk-bucket__title { color: #5b21b6; }

.zipk-findings-list {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}

.zipk-finding {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 0.75rem;
  align-items: start;
  margin-top: 0.15rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgb(148 163 184 / 0.28);
}

.zipk-finding:first-child {
  margin-top: 0;
  padding-top: 0.55rem;
  border-top: none;
}

.zipk-finding__top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.55rem;
  align-items: baseline;
  grid-column: 1;
}

.zipk-finding__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
}

.zipk-finding__n {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.zipk-finding__summary {
  grid-column: 1;
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.zipk-finding .zipk-why {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  margin: 0.15rem 0 0;
  justify-self: end;
}

.zipk-finding .zipk-why summary {
  min-height: 32px;
  font-size: 0.82rem;
}

.zipk-finding .zipk-why[open] {
  grid-column: 1 / -1;
  grid-row: auto;
  margin-top: 0.4rem;
}

.zipk-finding--info {
  display: block;
}

.zipk-finding--info .zipk-finding__title {
  display: block;
  margin-bottom: 0.1rem;
}

.zipk-bucket__lead {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.zipk-finding__jump {
  margin-left: auto;
  min-height: 32px;
  padding: 0.15rem 0.55rem;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #fff;
  color: var(--blue-deep);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.zipk-chev {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
}

.zipk-chev svg {
  display: block;
  grid-area: 1 / 1;
}

.zipk-chev__up {
  visibility: hidden;
}

details[open] > summary .zipk-chev__down {
  visibility: hidden;
}

details[open] > summary .zipk-chev__up {
  visibility: visible;
}

.zipk-why { margin-top: 0.2rem; }
.zipk-why summary {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 36px;
  padding: 0.2rem 0.55rem 0.2rem 0.65rem;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #fff;
  color: var(--blue-deep);
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
  list-style: none;
}
.zipk-why summary::-webkit-details-marker { display: none; }
.zipk-why[open] > summary {
  background: #eff6ff;
  border-color: #93c5fd;
}

.zipk-why__label--open {
  display: none;
}

.zipk-why[open] > summary .zipk-why__label--closed {
  display: none;
}

.zipk-why[open] > summary .zipk-why__label--open {
  display: inline;
}

.zipk-advice {
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}
.zipk-advice__title { margin: 0 0 0.35rem; font-size: 0.92rem; }
.zipk-advice__label {
  margin: 0.5rem 0 0;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--blue-deep);
}
.zipk-advice__text { margin: 0.12rem 0 0; color: var(--muted); font-size: 0.88rem; }
.zipk-advice__steps { margin: 0.2rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.88rem; }

.zipk-notes { margin-top: 0.85rem; }
.zipk-notes h3 { margin: 0 0 0.25rem; color: #334155; font-size: 0.95rem; }

.zipk-exclude-panel {
  margin-top: 0.65rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}
.zipk-exclude-panel summary {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 36px;
  padding: 0.15rem 0.45rem 0.15rem 0.2rem;
  border-radius: 8px;
  color: var(--blue-deep);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  list-style: none;
}
.zipk-exclude-panel summary::-webkit-details-marker { display: none; }
.zipk-exclude-panel[open] > summary {
  background: #eff6ff;
  margin-bottom: 0.25rem;
}

/* ----- Filters / list ----- */
.zipk-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.zipk-filter {
  min-height: 40px;
  padding: 0.25rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: var(--blue-deep);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.zipk-filter.is-on {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.zipk-list {
  max-width: 100%;
  margin-top: 0.85rem;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.zipk-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.2rem 0.7rem;
  padding: 0.8rem 0.85rem;
  border-top: 1px solid #eef2f7;
}

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

.zipk-check {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--soft);
  text-align: center;
}
.zipk-check input { width: 1.15rem; height: 1.15rem; }
.zipk-check__state { line-height: 1.2; }
.zipk-row.is-excluded .zipk-check__state { color: var(--amber-ink); }

.zipk-name {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.zipk-meta,
.zipk-badges { grid-column: 2; margin: 0; color: var(--muted); font-size: 0.86rem; }
.zipk-badges { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }

.zipk-badge {
  padding: 0.08rem 0.5rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.zipk-badge--suggest { background: #cffafe; color: #0e7490; }
.zipk-badge--check { background: #fef3c7; color: var(--amber-ink); }
.zipk-badge--compat { background: #ede9fe; color: #5b21b6; }
.zipk-badge--none,
.zipk-badge--info { background: #ecfdf5; color: var(--green-ink); }
.zipk-badge--critical { background: #ffe4e6; color: var(--red-ink); }
.zipk-badge--review,
.zipk-badge--junk { background: #fef3c7; color: var(--amber-ink); }

.zipk-why--row { grid-column: 2; }

.zipk-page {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.85rem;
}

.zipk-page__label { font-weight: 700; }

/* ----- Before / After ----- */
.zipk-ba {
  display: grid;
  gap: 0.65rem;
}

.zipk-ba__card {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.zipk-ba__card h3 { margin: 0 0 0.25rem; font-size: 0.95rem; }
.zipk-ba__card p { margin: 0.12rem 0 0; color: var(--muted); font-weight: 700; }
.zipk-ba__card--after { background: #ecfdf5; border-color: #a7f3d0; }
.zipk-ba__card--after h3,
.zipk-ba__card--after p { color: var(--green-ink); }
.zipk-ba__arrow {
  margin: 0;
  text-align: center;
  font-weight: 800;
  color: var(--cyan);
}

.zipk-excluded {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  overflow-wrap: anywhere;
}

.zipk-keep {
  margin: 0.85rem 0 0;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: var(--green-ink);
  font-weight: 800;
}

.zipk-built {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.zipk-built h3 {
  margin: 0 0 0.35rem;
  color: var(--green-ink);
  font-size: 1.1rem;
}

.zipk-built p { margin: 0.25rem 0 0; color: var(--green-ink); font-weight: 700; }

.zipk-built-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.8rem;
  margin-top: 0.7rem;
}

.zipk-fallback {
  color: var(--blue-deep);
  font-weight: 800;
}

.zipk-intro {
  margin: 0.4rem 0 0.6rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: #f8fafc;
  white-space: pre-line;
}

@media (hover: hover) {
  .zipk-btn:hover:not(:disabled) { filter: brightness(1.05); }
  .zipk-btn--ghost:hover:not(:disabled) { background: #f8fafc; }
  .zipk-drop:hover { border-color: var(--blue); }
  .zipk-filter:hover { border-color: var(--blue); }
  .zipk-help a:hover { text-decoration: underline; }
  .zipk-fallback:hover { text-decoration: underline; }
  .zipk-why summary:hover { background: #eff6ff; border-color: #93c5fd; }
  .zipk-exclude-panel summary:hover { background: #eff6ff; }
  .zipk-finding__jump:hover { background: #eff6ff; border-color: var(--blue); }
}

@media (min-width: 720px) {
  .zipk-counts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .zipk-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 800px) {
  .zipk-row {
    grid-template-columns: auto minmax(12rem, 1.5fr) minmax(7rem, 0.7fr) minmax(6rem, 0.7fr);
    align-items: start;
  }
  .zipk-meta,
  .zipk-badges { grid-column: auto; }
  .zipk-why--row { grid-column: 2 / -1; }
  .zipk-ba {
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
  }
  .zipk-ba__arrow {
    display: grid;
    place-items: center;
    align-self: center;
  }
}

@media (max-width: 640px) {
  .zipk-actions .zipk-btn { width: 100%; }
  .zipk-actions--list .zipk-btn { width: auto; flex: 1 1 auto; }
  .zipk-top { flex-direction: column; }
  .zipk-trust { flex-direction: column; gap: 0.35rem; }
  .zipk-bucket__head { flex-direction: column; align-items: flex-start; }
  .zipk-finding__jump--lane { margin-left: 0; }
  .zipk-finding {
    grid-template-columns: 1fr;
  }
  .zipk-finding .zipk-why {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 0.45rem;
  }
  .zipk-finding__summary {
    -webkit-line-clamp: 2;
  }
  .zipk-search input {
    width: 100%;
    max-width: none;
  }
}
