.fsd-widget {
  --fsd-ink: #1f2b45;
  --fsd-muted: #7b879e;
  --fsd-line: #e3e7ef;
  --fsd-link: #4a5f8a;
  --fsd-ai: #f07d1d;
  --fsd-pdf: #e0392e;
  --fsd-psd: #2aa3e0;
  --fsd-focus: #3ea9f5;
  max-width: 520px;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--fsd-ink);
  -webkit-font-smoothing: antialiased;
}

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

.fsd-quickcheck {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--fsd-line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.fsd-quickcheck:hover,
.fsd-quickcheck:focus {
  border-color: var(--fsd-focus);
  box-shadow: 0 0 0 1px var(--fsd-focus);
  outline: none;
}

.fsd-stamp {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  font-size: 0;
  line-height: 0;
  color: var(--fsd-ink);
  border-bottom: 1.8px solid currentColor;
  border-radius: 1px;
}

.fsd-stamp::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 8px;
  width: 10px;
  height: 11px;
  border: 1.6px solid currentColor;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}

.fsd-stamp::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 3px;
  width: 20px;
  height: 9px;
  border: 1.6px solid currentColor;
  border-radius: 3px 3px 1px 1px;
  background: #fff;
}

.fsd-quickcheck-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
}

.fsd-quickcheck-text strong {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.fsd-quickcheck-text small {
  font-size: 12.5px;
  color: var(--fsd-muted);
  line-height: 1.35;
}

.fsd-arrow {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 22px;
  height: 16px;
  font-size: 0;
  line-height: 0;
  color: var(--fsd-ink);
  transition: transform .18s ease;
}

.fsd-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 20px;
  height: 1.8px;
  background: currentColor;
  transform: translateY(-50%);
  border-radius: 2px;
}

.fsd-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1px;
  width: 8px;
  height: 8px;
  border-top: 1.8px solid currentColor;
  border-right: 1.8px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.fsd-quickcheck:hover .fsd-arrow {
  transform: translateX(3px);
}

.fsd-templates {
  margin-top: 14px;
  border: 1px solid var(--fsd-line);
  border-radius: 8px;
  background: #fff;
  padding: 6px 20px 0;
}

.fsd-anchor {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
  pointer-events: none;
}

.fsd-tabbar {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--fsd-line);
}

.fsd-tabs {
  display: flex;
  flex: 1 1 auto;
}

.fsd-tab {
  flex: 1 1 0;
  text-align: center;
  padding: 16px 4px 13px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fsd-ink);
  text-decoration: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color .15s ease, border-color .15s ease;
}

.fsd-tab:hover {
  color: var(--fsd-muted);
}

.fsd-tab--ai {
  color: var(--fsd-ai);
  border-bottom-color: var(--fsd-ai);
}

#fsd-t-pdf:target ~ .fsd-tabbar .fsd-tab--ai,
#fsd-t-psd:target ~ .fsd-tabbar .fsd-tab--ai {
  color: var(--fsd-ink);
  border-bottom-color: transparent;
}

#fsd-t-pdf:target ~ .fsd-tabbar .fsd-tab--pdf {
  color: var(--fsd-pdf);
  border-bottom-color: var(--fsd-pdf);
}

#fsd-t-psd:target ~ .fsd-tabbar .fsd-tab--psd {
  color: var(--fsd-psd);
  border-bottom-color: var(--fsd-psd);
}

.fsd-help {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.fsd-help-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #c9d0dc;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  cursor: help;
  transition: background .15s ease;
}

.fsd-help:hover .fsd-help-dot {
  background: var(--fsd-ink);
}

.fsd-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  right: -6px;
  width: 240px;
  padding: 12px 14px;
  border-radius: 6px;
  background: #3a465c;
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 5;
}

.fsd-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 12px;
  border: 7px solid transparent;
  border-top-color: #3a465c;
}

.fsd-tooltip a {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

.fsd-help:hover .fsd-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fsd-panel {
  display: none;
  padding: 20px 0 22px;
}

.fsd-panel--ai {
  display: block;
}

#fsd-t-pdf:target ~ .fsd-panel--pdf,
#fsd-t-psd:target ~ .fsd-panel--psd {
  display: block;
}

#fsd-t-pdf:target ~ .fsd-panel--ai,
#fsd-t-psd:target ~ .fsd-panel--ai {
  display: none;
}

.fsd-panel-title {
  margin: 0 0 16px;
  font-size: 15.5px;
  font-weight: 700;
}

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

.fsd-files li + li {
  margin-top: 12px;
}

.fsd-files a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--fsd-ink);
  text-decoration: none;
  transition: color .15s ease;
}

.fsd-files a:hover {
  color: var(--fsd-focus);
  text-decoration: underline;
}

.fsd-file {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 24px;
  border: 1.4px solid currentColor;
  border-radius: 3px;
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: .2px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2px;
  background: #fff;
}

.fsd-file::before {
  content: "";
  position: absolute;
  top: -1.4px;
  right: -1.4px;
  width: 8px;
  height: 8px;
  background: #fff;
  border-left: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  border-bottom-left-radius: 2px;
}

.fsd-file--ai { color: var(--fsd-ai); }
.fsd-file--pdf { color: var(--fsd-pdf); }
.fsd-file--psd { color: var(--fsd-psd); }

.fsd-faq {
  border-top: 1px solid var(--fsd-line);
  padding: 14px 0 18px;
}

.fsd-faq-item {
  position: relative;
  display: block;
  padding: 8px 0 8px 26px;
  font-size: 13.5px;
  color: var(--fsd-link);
  text-decoration: none;
  transition: color .15s ease, transform .15s ease;
}

.fsd-faq-item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 4px;
  width: 7px;
  height: 7px;
  border-top: 2.2px solid var(--fsd-ink);
  border-right: 2.2px solid var(--fsd-ink);
  transform: translateY(-50%) rotate(45deg);
}

.fsd-faq-item:hover {
  color: var(--fsd-focus);
  transform: translateX(2px);
}

@media (max-width: 480px) {
  .fsd-templates {
    padding: 4px 14px 0;
  }

  .fsd-tab {
    font-size: 13.5px;
    padding: 14px 2px 11px;
  }

  .fsd-tooltip {
    width: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fsd-widget * {
    transition: none;
  }
}