:root {
  color-scheme: light;
  --wc-purple: #6d3df2;
  --wc-purple-dark: #5223cf;
  --wc-purple-soft: #f0ebff;
  --wc-ink: #171522;
  --wc-muted: #625e70;
  --wc-line: #dedbe7;
  --wc-surface: #fff;
  --wc-canvas: #f8f7fb;
  --wc-success: #167c5a;
  --wc-warning: #9b5b00;
  --wc-error: #b3261e;
  --wc-shadow: 0 16px 42px rgb(38 25 75 / 8%);
  --wc-radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--wc-ink);
  background: var(--wc-surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
button, select, textarea { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: var(--wc-purple-dark); text-underline-offset: 3px; }
img, svg { display: block; }
button { border: 0; }
[hidden] { display: none !important; }

.wc-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.wc-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.wc-skip {
  position: fixed;
  z-index: 100;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--wc-purple-dark);
  transform: translateY(-160%);
  transition: transform .16s ease;
}
.wc-skip:focus { transform: none; }

.wc-header {
  min-height: 62px;
  border-bottom: 1px solid #eceaf1;
  background: rgb(255 255 255 / 96%);
}
.wc-header-inner {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.wc-brand { display: inline-flex; flex: 0 1 auto; text-decoration: none; }
.wc-brand img { width: min(194px, 45vw); height: auto; }
.wc-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; min-width: 0; }
.wc-header-actions > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--wc-muted);
  font-size: .92rem;
  font-weight: 650;
  text-decoration: none;
}
.wc-header-actions > a:hover { color: var(--wc-purple-dark); }
.wc-header select {
  min-width: 132px;
  min-height: 44px;
  padding: 8px 34px 8px 12px;
  border: 1px solid var(--wc-line);
  border-radius: 12px;
  color: var(--wc-ink);
  background: #fff;
}

.wc-ad,
.ad-placement {
  width: min(1180px, calc(100% - 40px));
  min-height: 90px;
  max-height: 160px;
  margin: 14px auto;
  overflow: auto;
  text-align: center;
  background: #faf9fc;
  border: 1px solid #eeeaf5;
  border-radius: 14px;
  contain: layout paint;
}
.wc-ad:empty { display: none; }

.wc-hero {
  padding: 20px 0 58px;
  background:
    radial-gradient(circle at 12% 5%, rgb(109 61 242 / 8%), transparent 27rem),
    linear-gradient(180deg, #fff 0, var(--wc-canvas) 100%);
}
.wc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  color: var(--wc-muted);
  font-size: .83rem;
}
.wc-breadcrumb a { color: inherit; text-decoration: none; }
.wc-intro { max-width: 790px; margin: 17px 0 24px; }
.wc-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border: 1px solid #dcd2ff;
  border-radius: 999px;
  color: var(--wc-purple-dark);
  background: var(--wc-purple-soft);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .02em;
}
.wc-intro h1 {
  margin: 9px 0 5px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.wc-intro p { max-width: 720px; margin: 0; color: var(--wc-muted); font-size: clamp(1rem, 1.8vw, 1.13rem); }

.wc-workspace { display: grid; grid-template-columns: minmax(0, 1.52fr) minmax(330px, .78fr); gap: 18px; align-items: stretch; }
.wc-editor-card,
.wc-stats-card,
.wc-panel {
  min-width: 0;
  border: 1px solid var(--wc-line);
  border-radius: var(--wc-radius);
  background: var(--wc-surface);
  box-shadow: var(--wc-shadow);
}
.wc-editor-card { padding: 18px; }
.wc-card-head,
.wc-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.wc-card-head h2,
.wc-panel-head h2,
.wc-editor-title { margin: 0; font-size: 1.06rem; line-height: 1.35; }
.wc-editor-title { display: block; font-weight: 700; }
.wc-card-head p,
.wc-panel-head p { margin: 4px 0 0; color: var(--wc-muted); font-size: .84rem; line-height: 1.45; }
.wc-editor-card textarea {
  display: block;
  width: 100%;
  min-height: 330px;
  margin-top: 14px;
  padding: 18px;
  resize: vertical;
  border: 1.5px solid #cac5d8;
  border-radius: 14px;
  outline: 0;
  color: var(--wc-ink);
  background: #fff;
  font-size: 1rem;
  line-height: 1.7;
  tab-size: 4;
}
.wc-editor-card textarea::placeholder { color: #8c8798; }
.wc-editor-card textarea:focus { border-color: var(--wc-purple); box-shadow: 0 0 0 4px rgb(109 61 242 / 13%); }
form:tool-form-active { outline: 3px solid rgb(109 61 242 / 30%); outline-offset: 4px; }
.wc-editor-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 13px; }
.wc-button,
.wc-link-button,
.wc-more-tools,
.wc-tabs button {
  min-height: 44px;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 700;
}
.wc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  color: #fff;
  background: var(--wc-purple);
}
.wc-button:hover:not(:disabled) { background: var(--wc-purple-dark); }
.wc-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wc-button-secondary { color: var(--wc-purple-dark); background: var(--wc-purple-soft); }
.wc-button-secondary:hover:not(:disabled) { color: #fff; }
.wc-button:disabled { cursor: not-allowed; opacity: .45; }
.wc-link-button { padding: 7px 10px; color: var(--wc-purple-dark); background: transparent; }
.wc-link-button:hover { background: var(--wc-purple-soft); }
.wc-clear { margin-inline-start: auto; color: var(--wc-muted); }
.wc-privacy,
.wc-error { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: .82rem; line-height: 1.45; }
.wc-privacy { color: var(--wc-success); }
.wc-privacy svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.wc-error { padding: 10px 12px; color: var(--wc-error); background: #fff1f0; border-radius: 10px; }

.wc-stats-card { display: flex; flex-direction: column; padding: 18px; }
.wc-live-dot { width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: #2caf78; box-shadow: 0 0 0 5px rgb(44 175 120 / 14%); }
.wc-primary-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.wc-primary-stats > div {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px;
  overflow: hidden;
  border: 1px solid #e3deef;
  border-radius: 14px;
  background: #faf9fe;
}
.wc-primary-stats strong {
  overflow: hidden;
  color: var(--wc-purple-dark);
  font-size: clamp(1.55rem, 2.35vw, 1.9rem);
  line-height: 1;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.wc-primary-stats span { margin-top: 8px; color: var(--wc-muted); font-size: .82rem; font-weight: 650; }
.wc-detail-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: auto 0 0; padding-top: 15px; }
.wc-detail-stats div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; padding: 10px 6px; border-bottom: 1px solid #ece9f2; }
.wc-detail-stats div:nth-last-child(-n+2) { border-bottom: 0; }
.wc-detail-stats dt { color: var(--wc-muted); font-size: .79rem; }
.wc-detail-stats dd { margin: 0; color: var(--wc-ink); font-size: .85rem; font-weight: 750; text-align: end; }

.wc-analysis-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 18px; margin-top: 18px; }
.wc-panel { padding: 18px; box-shadow: 0 10px 30px rgb(38 25 75 / 5%); }
.wc-switch { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--wc-muted); font-size: .82rem; cursor: pointer; }
.wc-switch input { width: 18px; height: 18px; accent-color: var(--wc-purple); }
.wc-tabs { display: flex; gap: 7px; margin: 15px 0 11px; }
.wc-tabs button { padding: 8px 13px; border: 1px solid var(--wc-line); color: var(--wc-muted); background: #fff; font-size: .83rem; }
.wc-tabs button.is-active { border-color: var(--wc-purple); color: #fff; background: var(--wc-purple); }
.wc-table-wrap { position: relative; min-height: 208px; overflow-x: auto; }
.wc-table-wrap table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.wc-table-wrap th { padding: 8px 10px; color: var(--wc-muted); font-size: .74rem; text-align: start; text-transform: uppercase; letter-spacing: .045em; border-bottom: 1px solid var(--wc-line); }
.wc-table-wrap th:nth-child(n+2), .wc-table-wrap td:nth-child(n+2) { width: 96px; text-align: end; white-space: nowrap; }
.wc-table-wrap td { padding: 9px 10px; border-bottom: 1px solid #efedf3; }
.wc-table-wrap td:first-child { max-width: 310px; overflow: hidden; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.wc-density { display: inline-flex; min-width: 58px; justify-content: flex-end; color: var(--wc-purple-dark); font-variant-numeric: tabular-nums; }
.wc-empty { display: grid; min-height: 170px; place-items: center; margin: 0; color: var(--wc-muted); font-size: .88rem; text-align: center; }
.wc-writing-state { min-height: 230px; display: grid; align-content: center; justify-items: center; gap: 12px; padding: 20px; color: var(--wc-muted); text-align: center; }
.wc-writing-state span { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 17px; color: var(--wc-purple-dark); background: var(--wc-purple-soft); font-weight: 800; }
.wc-writing-state p { max-width: 280px; margin: 0; font-size: .88rem; }
.wc-writing ul { margin: 22px 0 0; padding: 0; list-style: none; }
.wc-writing li { position: relative; margin: 0; padding: 11px 10px 11px 34px; border-bottom: 1px solid #eeeaf3; color: #4f4a5c; font-size: .88rem; }
[dir="rtl"] .wc-writing li { padding: 11px 34px 11px 10px; }
.wc-writing li::before { content: "!"; position: absolute; inset-inline-start: 5px; top: 11px; display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; color: var(--wc-warning); background: #fff2d8; font-size: .75rem; font-weight: 800; }

.wc-content { padding: 72px 0 48px; }
.wc-content-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); gap: 68px; }
.wc-content article { max-width: 760px; }
.wc-content h2,
.wc-how h2,
.wc-faq h2,
.wc-recommendations h2 { margin: 0 0 16px; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25; letter-spacing: -.025em; }
.wc-content h2:not(:first-child) { margin-top: 38px; }
.wc-content h3 { margin: 32px 0 10px; font-size: 1.16rem; }
.wc-content p { margin: 0 0 16px; color: #504c5b; }
.wc-category-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin-top: 8px; color: var(--wc-purple); font-weight: 700; text-decoration: none; }
.wc-category-link:hover { text-decoration: underline; }
.wc-use-cases { align-self: start; padding: 24px; border-radius: 18px; background: var(--wc-purple-soft); }
.wc-use-cases h2 { font-size: 1.12rem; }
.wc-use-cases ul { margin: 0; padding-inline-start: 20px; }
.wc-use-cases li { margin: 10px 0; color: #494355; }

.wc-how { padding: 52px 0; background: var(--wc-canvas); }
.wc-how ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.wc-how li { min-width: 0; display: flex; align-items: flex-start; gap: 14px; padding: 20px; border: 1px solid #e2dfea; border-radius: 16px; background: #fff; }
.wc-how li > span { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #fff; background: var(--wc-purple); font-weight: 800; }
.wc-how strong { display: block; line-height: 1.35; }
.wc-how p { margin: 5px 0 0; color: var(--wc-muted); font-size: .88rem; line-height: 1.5; }

.wc-faq { padding: 68px 0; }
.wc-faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.wc-faq details { border: 1px solid var(--wc-line); border-radius: 14px; background: #fff; }
.wc-faq summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 16px; cursor: pointer; font-weight: 700; line-height: 1.4; list-style: none; }
.wc-faq summary::-webkit-details-marker { display: none; }
.wc-faq summary::after { content: "+"; flex: 0 0 auto; color: var(--wc-purple); font-size: 1.25rem; }
.wc-faq details[open] summary::after { content: "−"; }
.wc-faq details p { margin: 0; padding: 0 16px 16px; color: var(--wc-muted); font-size: .92rem; }

.wc-recommendations { padding: 56px 0 64px; background: var(--wc-canvas); }
.wc-recommendations > .wc-shell > p { margin: -8px 0 20px; color: var(--wc-muted); }
.wc-recommendation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.wc-recommendation-card { min-width: 0; min-height: 100px; display: flex; align-items: center; gap: 13px; padding: 16px; border: 1px solid var(--wc-line); border-radius: 16px; color: var(--wc-ink); background: #fff; text-decoration: none; }
.wc-recommendation-card:hover { border-color: #b9a9ec; box-shadow: 0 10px 24px rgb(38 25 75 / 7%); }
.wc-recommendation-card img { flex: 0 0 44px; width: 44px; height: 44px; object-fit: contain; border-radius: 12px; }
.wc-recommendation-card span { min-width: 0; }
.wc-recommendation-card strong,
.wc-recommendation-card small { display: block; overflow: hidden; text-overflow: ellipsis; }
.wc-recommendation-card strong { white-space: nowrap; }
.wc-recommendation-card small { margin-top: 3px; color: var(--wc-muted); font-size: .78rem; line-height: 1.35; }
.wc-recommendation-card b { margin-inline-start: auto; color: var(--wc-purple); font-size: 1.2rem; }
.wc-recommendation-status { margin: 0; color: var(--wc-muted); font-size: .9rem; }
.wc-more-tools { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 9px 14px; color: var(--wc-purple-dark); background: var(--wc-purple-soft); text-decoration: none; }
.wc-more-tools:hover { color: #fff; background: var(--wc-purple); }

.wc-footer { padding: 34px 0; border-top: 1px solid #ebe8f0; background: #fff; }
.wc-footer-main { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.wc-footer-brand { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; color: var(--wc-ink); font-weight: 800; text-decoration: none; }
.wc-footer nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 3px 18px; }
.wc-footer nav a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--wc-muted); font-size: .88rem; text-decoration: none; }
.wc-footer nav a:hover { color: var(--wc-purple-dark); }
.wc-footer > .wc-shell > p { margin: 12px 0 0; color: #777280; font-size: .82rem; }

:focus-visible { outline: 3px solid #9c7dff; outline-offset: 3px; }
select:focus-visible, textarea:focus-visible { outline: 0; }

@media (max-width: 940px) {
  .wc-workspace,
  .wc-analysis-grid { grid-template-columns: 1fr; }
  .wc-stats-card { min-height: 390px; }
  .wc-content-grid { gap: 38px; }
  .wc-how ol { grid-template-columns: 1fr; }
  .wc-recommendation-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .wc-shell,
  .wc-ad,
  .ad-placement { width: min(100% - 28px, 1180px); }
  .wc-header-actions > a { display: none; }
  .wc-header select { min-width: 112px; max-width: 36vw; }
  .wc-hero { padding-top: 12px; }
  .wc-breadcrumb { font-size: .76rem; }
  .wc-intro { margin: 13px 0 18px; }
  .wc-intro h1 { font-size: clamp(1.85rem, 9vw, 2.6rem); }
  .wc-editor-card,
  .wc-stats-card,
  .wc-panel { border-radius: 16px; }
  .wc-editor-card textarea { min-height: 300px; padding: 15px; }
  .wc-primary-stats > div { min-height: 92px; }
  .wc-panel-head { display: block; }
  .wc-switch { margin-top: 8px; }
  .wc-content { padding: 52px 0 36px; }
  .wc-content-grid { grid-template-columns: 1fr; }
  .wc-use-cases { padding: 20px; }
  .wc-faq { padding: 52px 0; }
  .wc-faq-list { grid-template-columns: 1fr; }
  .wc-footer-main { align-items: flex-start; flex-direction: column; gap: 10px; }
  .wc-footer nav { justify-content: flex-start; }
}

@media (max-width: 430px) {
  .wc-shell,
  .wc-ad,
  .ad-placement { width: min(100% - 20px, 1180px); }
  .wc-header-inner { gap: 10px; }
  .wc-brand img { width: min(164px, 48vw); }
  .wc-header select { min-width: 104px; max-width: 39vw; padding-inline: 8px 24px; font-size: .86rem; }
  .wc-intro p { font-size: .96rem; }
  .wc-editor-card,
  .wc-stats-card,
  .wc-panel { padding: 14px; }
  .wc-card-head { gap: 8px; }
  .wc-card-head p { font-size: .78rem; }
  .wc-editor-card textarea { min-height: 276px; margin-top: 11px; }
  .wc-editor-actions { display: grid; grid-template-columns: repeat(2, 1fr); }
  .wc-editor-actions .wc-button { width: 100%; padding-inline: 8px; }
  .wc-editor-actions .wc-clear { grid-column: 1 / -1; margin: 0; }
  .wc-primary-stats { gap: 8px; }
  .wc-primary-stats > div { min-height: 86px; padding: 12px; }
  .wc-primary-stats strong { font-size: 1.65rem; }
  .wc-primary-stats span { font-size: .75rem; }
  .wc-detail-stats { grid-template-columns: 1fr; }
  .wc-detail-stats div:nth-last-child(-n+2) { border-bottom: 1px solid #ece9f2; }
  .wc-detail-stats div:last-child { border-bottom: 0; }
  .wc-stats-card { min-height: 0; }
  .wc-tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
  .wc-tabs button { padding-inline: 5px; font-size: .77rem; }
  .wc-table-wrap th:nth-child(n+2), .wc-table-wrap td:nth-child(n+2) { width: 78px; }
  .wc-footer nav { gap: 2px 12px; }
}

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

@media (forced-colors: active) {
  .wc-kicker,
  .wc-primary-stats > div,
  .wc-button,
  .wc-tabs button.is-active { border: 1px solid ButtonText; }
}
