.word-tool .pw-format-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 650;
  color: #405582;
}
.pw-format-pill .icon {
  color: #315cd4;
  width: 18px;
  height: 18px;
}
.pw-start-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}
.word-tool .pw-dropzone {
  background: #fff;
  min-height: 438px;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed #b8afea;
  border-radius: 22px;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.word-tool .pw-dropzone.is-dragover {
  background: #eeebff;
  border-color: #5133e8;
}
.pw-dropzone h2 {
  font-size: 26px;
  letter-spacing: -0.9px;
}
.pw-dropzone > p {
  max-width: 320px;
  line-height: 1.6;
}
.pw-file-pair {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 2px 0 23px;
}
.pw-file-pair > span:not(.pw-transform) {
  display: block;
  width: 64px;
  height: 83px;
  border: 1px solid #e0e4f0;
  border-radius: 9px;
  background: white;
  padding: 11px;
  box-shadow: 0 8px 19px #28215b0d;
  text-align: left;
}
.pw-file-pair b {
  font-size: 12px;
  display: block;
  color: #bf3e53;
  background: #fff0f2;
  border-radius: 4px;
  padding: 3px 5px;
  width: max-content;
  margin-bottom: 9px;
}
.pw-file-pair i {
  height: 3px;
  background: #e1e5f0;
  display: block;
  margin-top: 5px;
}
.pw-file-pair i:last-child {
  width: 70%;
}
.pw-pdf-sheet {
  transform: rotate(-8deg);
}
.pw-file-pair .pw-word-sheet {
  transform: rotate(8deg);
  border-color: #cdd8f7;
}
.pw-file-pair .pw-word-sheet b {
  color: #285cc0;
  background: #eef3ff;
  font-size: 14px;
}
.pw-transform {
  width: 33px;
  height: 33px;
  background: #efebff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary);
}
.pw-transform .icon {
  width: 18px;
}
.pw-intro-card {
  padding: 34px;
  border: 1px solid #e2dff5;
  border-radius: 22px;
  background: linear-gradient(145deg, #f9f8ff, #f0effb);
}
.pw-small-label {
  color: #62568e;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.2px;
}
.pw-intro-card h2 {
  font-size: 29px;
  line-height: 1.18;
  letter-spacing: -1px;
  margin: 15px 0 28px;
}
.pw-intro-card h2 > span {
  color: var(--primary);
}
.pw-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 22px;
}
.pw-feature-list li {
  display: flex;
  gap: 14px;
}
.pw-feature-list li > span {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--primary);
}
.pw-feature-list .icon {
  width: 19px;
  height: 19px;
}
.pw-feature-list strong {
  font-size: 13px;
  color: var(--ink);
}
.pw-feature-list p {
  font-size: 12px;
  color: #596682;
  line-height: 1.6;
  margin: 4px 0 0;
}
.pw-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  background: #f5f6fc;
  border: 1px solid #e7e9f5;
  border-radius: 10px;
  margin-top: 24px;
  color: #536180;
}
.pw-tip > .icon {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: #6955be;
}
.pw-tip p {
  font-size: 12px;
  line-height: 1.65;
  margin: 0;
}
.pw-intro-card .pw-tip {
  background: #ffffffae;
}
.pw-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}
.word-tool .pw-options {
  position: sticky;
  top: 96px;
  min-width: 0;
}
.pw-preview-panel {
  min-width: 0;
  overflow: hidden;
}
.pw-source {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.pw-source > div {
  min-width: 0;
}
.pw-source h2 {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.pw-source-badge {
  font-size: 10px;
  background: #fff0f1;
  color: #b8304b;
  border: 1px solid #ffe0e5;
  padding: 13px 8px;
  border-radius: 9px;
  font-weight: 750;
}
.pw-preview-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 14px;
  font-size: 11px;
  color: #69748e;
}
.pw-preview-stage {
  background: #f0f1f9;
  border: 1px solid #e9eaf3;
  border-radius: 12px;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  text-align: center;
  color: #5a6683;
  font-size: 13px;
}
.pw-preview-stage canvas {
  display: block;
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 22px #20244815;
  background: white;
}
.pw-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}
.pw-pagination > span {
  font-size: 12px;
  color: #596581;
}
.pw-pagination button:disabled {
  opacity: 0.45;
  cursor: default;
}
.pw-word-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 48px;
  background: #eaf0ff;
  color: #305bc1;
  border-radius: 12px;
  flex-shrink: 0;
}
.pw-word-icon .icon {
  width: 25px;
  height: 25px;
}
.pw-options-copy {
  font-size: 13px;
  line-height: 1.65;
  color: #596682;
  margin: 16px 0;
}
.pw-output-summary {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 14px;
  background: #f7f8fc;
  border: 1px solid #e8eaf4;
  border-radius: 12px;
  padding: 17px 12px;
  margin: 20px 0 25px;
}
.pw-output-summary > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pw-output-summary strong {
  font-size: 21px;
  letter-spacing: -0.5px;
}
.pw-output-summary span {
  font-size: 10px;
  color: #64708a;
}
.pw-output-summary > .icon {
  width: 18px;
  color: #8a85ae;
}
.pw-name-field {
  display: flex;
  border: 1px solid #d7dcec;
  border-radius: 9px;
  background: white;
  align-items: center;
  min-width: 0;
}
.pw-name-field:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.word-tool .pw-name-field input {
  border: 0;
  min-width: 0;
  outline: 0;
  box-shadow: none;
  border-radius: 9px;
  padding: 12px;
  width: 100%;
  font-size: 14px;
}
.pw-name-field > span {
  font-size: 12px;
  color: #5c6a83;
  padding-right: 12px;
}
.pw-action {
  margin-top: 24px;
}
.pw-action > .button {
  width: 100%;
  min-height: 49px;
  justify-content: center;
}
.word-tool .pw-options > .pt-text-button {
  width: 100%;
  font-size: 12px;
  text-align: center;
  margin-top: 8px;
}
.pw-result-file {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 430px;
  margin: 24px auto;
  padding: 18px;
  text-align: left;
  border: 1px solid #e0e5f3;
  border-radius: 15px;
  background: #f9faff;
}
.pw-result-file > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.pw-result-file strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.pw-result-file div > span {
  font-size: 11px;
  color: #65708b;
}
.pw-result > .pt-help {
  max-width: 650px;
  margin-inline: auto;
  font-size: 16px;
  line-height: 1.65;
}
.pw-download-guidance {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin: 24px auto;
  text-align: left;
}
.pw-notice {
  min-width: 0;
  padding: 24px;
  border: 1px solid;
  border-left-width: 6px;
  border-radius: 16px;
  overflow-wrap: anywhere;
}
.pw-download-status {
  color: #065f46;
  background: #ecfdf5;
  border-color: #8cd9bd;
  border-left-color: #38b99a;
}
.pw-help-panel {
  color: #713f12;
  background: #fff8e8;
  border-color: #e8bb64;
  border-left-color: #e7ab3c;
}
.pw-notice-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.pw-notice-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
}
.pw-download-status .pw-notice-icon {
  background: #ccf3e5;
}
.pw-help-panel .pw-notice-icon {
  background: #ffebbd;
}
.pw-notice-icon > .icon {
  width: 26px;
  height: 26px;
}
.pw-notice-copy {
  min-width: 0;
}
.pw-notice-copy h3 {
  margin: 1px 0 8px;
  color: inherit;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 750;
  letter-spacing: -0.3px;
}
.pw-notice-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}
.pw-notice-copy p + p {
  margin-top: 8px;
}
.pw-notice-copy strong {
  font-weight: 750;
}
.pw-open-help {
  margin: 20px 0 0;
  border: 1px solid #e8bb64;
  border-radius: 12px;
  background: #fff;
}
.pw-open-help > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 18px;
  min-height: 54px;
  color: #713f12;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.pw-open-help > summary::-webkit-details-marker {
  display: none;
}
.pw-open-help > summary > span {
  flex: 1;
  min-width: 0;
}
.pw-open-help > summary:hover {
  background: #fffbf2;
  border-radius: 12px;
}
.pw-open-help > summary > .icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}
.pw-open-help[open] > summary > .icon:last-child {
  transform: rotate(180deg);
}
.pw-open-help-body {
  padding: 0 20px 20px;
  color: #62452a;
  font-size: 16px;
  line-height: 1.65;
}
.pw-open-help-body p {
  margin: 0 0 14px;
}
.pw-open-help-body ol {
  padding-left: 22px;
  margin: 0 0 16px;
}
.pw-open-help-body li {
  margin: 10px 0;
  padding-left: 3px;
}
.pw-help-filename {
  overflow-wrap: anywhere;
}
.pw-open-help-body .pw-help-note {
  padding: 12px;
  background: #fff8e8;
  border-radius: 8px;
  font-size: 15px;
}
.pw-help-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: #713f12;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pw-help-link > .icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}
.pw-open-help > summary:focus-visible,
.pw-help-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 8px;
}
.word-tool .pw-result .pt-result-next nav {
  flex-wrap: wrap;
}
.word-tool button:disabled {
  cursor: default;
  opacity: 0.55;
}
@media (max-width: 1000px) {
  .word-tool .pt-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
  .pw-editor {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 16px;
  }
  .pw-intro-card {
    padding: 26px;
  }
  .pw-start-grid {
    gap: 16px;
  }
  .pw-intro-card h2 {
    font-size: 25px;
  }
}
@media (max-width: 767px) {
  .pw-start-grid,
  .pw-editor {
    grid-template-columns: minmax(0, 1fr);
  }
  .word-tool .pw-options {
    position: static;
  }
  .pw-intro-card {
    padding: 25px;
  }
  .pw-intro-card h2 {
    font-size: 27px;
  }
  .pw-dropzone h2 {
    font-size: 23px;
  }
  .word-tool .pw-dropzone {
    min-height: 360px;
    padding: 30px 18px;
  }
  .word-tool .pt-steps {
    gap: 13px;
    flex-wrap: wrap;
    white-space: normal;
  }
  .word-tool .pt-steps li {
    font-size: 11px;
    gap: 6px;
  }
  .word-tool .pt-steps li > span {
    width: 24px;
    height: 24px;
  }
  .pw-preview-stage {
    padding: 16px;
    min-height: 250px;
  }
  .word-tool .pw-name-field input {
    font-size: 16px;
  }
  .word-tool .pt-workspace-top {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }
  .pw-source {
    flex: 1 1 175px;
  }
  .word-tool .pw-options {
    padding: 24px;
  }
  .pw-pagination button {
    font-size: 11px;
    padding: 10px;
  }
  .pw-format-pill {
    font-size: 11px;
  }
  .word-tool .pw-result h2 {
    font-size: 28px;
    letter-spacing: -1px;
  }
  .word-tool .pw-result {
    padding-inline: 14px;
  }
  .pw-result .pt-download {
    width: 100%;
    padding-inline: 12px;
    font-size: 16px;
  }
  .pw-download-guidance {
    margin-block: 20px;
    gap: 14px;
  }
  .pw-notice {
    padding: 18px 14px;
    border-left-width: 5px;
  }
  .pw-notice-heading {
    gap: 12px;
  }
  .pw-notice-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
  .pw-notice-icon > .icon {
    width: 23px;
    height: 23px;
  }
  .pw-notice-copy h3 {
    font-size: 18px;
  }
  .pw-open-help > summary {
    padding: 14px 12px;
  }
  .pw-open-help-body {
    padding: 0 14px 16px;
  }
  .pw-result > .pt-help {
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  .word-tool * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 599px) {
  .word-tool .pt-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  .word-tool .pt-steps li {
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 10px;
    gap: 7px;
  }
}
