.wsi-hero {
  background: var(--surface);
  color: var(--text);
  padding: 28px 20px 36px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 800px) {
  .wsi-hero {
    padding: 40px max(32px, calc((100% - var(--page)) / 2)) 48px;
  }
}
.wsi-hero-head { max-width: 46rem; margin-bottom: 24px; }
.wsi-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
}
.wsi-hero-lede {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--muted);
}
.wsi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .wsi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .wsi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.wsi-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(20, 17, 13, 0.05);
}
.wsi-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 148px;
  padding: 16px;
  background: #e9e2d4;
  border-bottom: 1px solid var(--line);
  box-sizing: border-box;
}
.wsi-preview img {
  display: block;
  background: #ffffff;
  border: 1px solid rgba(20, 17, 13, 0.18);
  box-shadow: 0 4px 12px rgba(20, 17, 13, 0.08);
  border-radius: 4px;
}
.wsi-preview img.is-wide { width: 176px; height: 99px; object-fit: cover; }
.wsi-preview img.is-tall { width: 64px; height: 114px; object-fit: cover; }
.wsi-preview img.is-square { width: 104px; height: 104px; object-fit: cover; }
.wsi-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}
.wsi-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.wsi-res {
  margin: 0;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.wsi-tag {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
}
.wsi-use {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  flex: 1 1 auto;
}
.wsi-meta {
  margin: 0;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
}
.wsi-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.wsi-dl {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
}
.wsi-dl-png {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--bg);
}
.wsi-dl-png:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.wsi-dl-jpg {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}
.wsi-dl-jpg:hover { border-color: var(--primary); color: var(--primary-dark); }
.wsi-tool-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 24px 20px;
}
@media (min-width: 800px) {
  .wsi-tool-wrap {
    padding: 28px max(32px, calc((100% - var(--page)) / 2));
  }
}
.wsi-custom-title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
}
.wsi-custom-lede {
  margin: 0 0 16px;
  font-size: 1rem;
  color: var(--muted);
}
.wsi-custom-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: end;
}
@media (min-width: 720px) {
  .wsi-custom-row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  }
}
.wsi-custom-row label {
  display: grid;
  gap: 4px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.wsi-custom-row input,
.wsi-custom-row select {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 14px;
  box-sizing: border-box;
}
.wsi-btn-primary {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 0;
  background: var(--primary);
  color: #ffffff;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.wsi-btn-primary:hover { background: var(--primary-dark); }
.wsi-custom-note {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
  min-height: 1.2em;
}
.faq-accordion {
  display: grid;
  gap: 10px;
  margin: 16px 0 28px;
  max-width: 44rem;
}
.faq-accordion details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
}
.faq-accordion summary {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::after {
  content: "+";
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  flex: 0 0 auto;
}
.faq-accordion details[open] summary::after { content: "−"; }
.faq-accordion details p {
  margin: 12px 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}