.pdf-to-word-page .tool-workbench {
  width: min(100% - 48px, 1440px);
}

.pdf-word-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 22px;
  align-items: start;
}

.pdf-word-main,
.pdf-word-panel,
.pdf-word-upload,
.pdf-word-preview,
.pdf-word-page-preview,
.pdf-word-note {
  border: 1px solid rgba(116, 143, 204, .18);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 46px rgba(46, 82, 153, .08);
}

.pdf-word-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.pdf-word-upload {
  display: grid;
  min-height: 132px;
  place-items: center;
  gap: 7px;
  border-style: dashed;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(40, 123, 255, .10), transparent 44%),
    linear-gradient(135deg, rgba(248, 251, 255, .95), rgba(255, 255, 255, .96));
  color: #223a66;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.pdf-word-upload:hover {
  border-color: rgba(37, 113, 255, .38);
  box-shadow: 0 22px 58px rgba(44, 96, 198, .12);
  transform: translateY(-1px);
}

.pdf-word-upload input {
  display: none;
}

.pdf-word-upload .upload-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #266fff, #765cff);
  box-shadow: 0 16px 30px rgba(58, 101, 236, .24);
  font-size: 24px;
  font-weight: 900;
}

.pdf-word-upload b {
  max-width: 90%;
  overflow: hidden;
  color: #081733;
  font-size: 17px;
  font-weight: 840;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-word-upload em {
  color: #7484a4;
  font-size: 13px;
  font-style: normal;
  font-weight: 650;
}

.pdf-word-status {
  display: grid;
  gap: 9px;
  padding: 15px 16px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(235, 244, 255, .94), rgba(255, 255, 255, .94));
}

.pdf-word-status div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #617198;
  font-size: 13px;
  font-weight: 700;
}

.pdf-word-status strong {
  color: #0e2145;
  white-space: nowrap;
}

.pdf-word-status:after {
  content: "";
  display: block;
  height: 7px;
  border-radius: 999px;
  background: rgba(211, 222, 243, .76);
  grid-row: 2;
}

.pdf-word-status i {
  display: block;
  height: 7px;
  margin-top: -16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1e7bff, #7d5cff);
  transition: width .24s ease;
  z-index: 1;
}

.pdf-word-preview {
  display: grid;
  gap: 14px;
  border-radius: 24px;
  padding: 18px;
}

.pdf-word-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pdf-word-preview-head h2,
.pdf-word-panel h2 {
  margin: 0;
  color: #081733;
  font-size: 16px;
  font-weight: 850;
}

.pdf-word-preview-head span {
  color: #70809f;
  font-size: 13px;
  font-weight: 700;
}

.pdf-word-preview-list {
  display: grid;
  max-height: 680px;
  gap: 12px;
  overflow: auto;
  padding-right: 4px;
}

.pdf-word-empty {
  display: grid;
  min-height: 360px;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed rgba(118, 145, 204, .25);
  border-radius: 22px;
  color: #8492ad;
  background:
    linear-gradient(45deg, rgba(113, 139, 190, .06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(113, 139, 190, .06) 25%, transparent 25%),
    #fbfdff;
  background-size: 28px 28px;
}

.pdf-word-empty b {
  color: #263e68;
  font-size: 18px;
  font-weight: 850;
}

.pdf-word-page-preview {
  overflow: hidden;
  border-radius: 20px;
}

.pdf-word-page-preview header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(122, 147, 194, .14);
  background: rgba(248, 251, 255, .9);
}

.pdf-word-page-preview header b {
  color: #102548;
  font-size: 14px;
  font-weight: 850;
}

.pdf-word-page-preview header span {
  color: #7484a4;
  font-size: 12px;
  font-weight: 700;
}

.pdf-word-page-preview div {
  display: grid;
  gap: 9px;
  padding: 15px;
}

.pdf-word-page-preview p {
  margin: 0;
  color: #304463;
  font-size: 14px;
  line-height: 1.75;
}

.pdf-word-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
  border-radius: 24px;
  padding: 20px;
}

.pdf-word-panel section {
  display: grid;
  gap: 12px;
}

.pdf-word-panel label {
  display: grid;
  gap: 8px;
  color: #29446f;
  font-size: 13px;
  font-weight: 760;
}

.pdf-word-panel input[type="text"],
.pdf-word-panel input:not([type]) {
  height: 44px;
  min-width: 0;
  border: 1px solid rgba(126, 153, 210, .25);
  border-radius: 14px;
  padding: 0 14px;
  color: #081733;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}

.pdf-word-panel input:focus {
  border-color: rgba(37, 113, 255, .5);
  box-shadow: 0 0 0 4px rgba(40, 119, 255, .10);
}

.pdf-word-check {
  display: flex !important;
  min-height: 42px;
  align-items: center;
  grid-template-columns: auto 1fr;
  justify-content: space-between;
  border-radius: 14px;
  padding: 0 12px;
  background: rgba(244, 248, 255, .82);
}

.pdf-word-check input {
  width: 17px;
  height: 17px;
  accent-color: #266fff;
}

.pdf-word-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pdf-word-actions button {
  min-height: 42px;
  border: 1px solid rgba(126, 153, 210, .22);
  border-radius: 14px;
  color: #26436f;
  background: #fff;
  font-size: 13px;
  font-weight: 780;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.pdf-word-actions button:hover:not(:disabled) {
  border-color: rgba(37, 113, 255, .34);
  box-shadow: 0 12px 26px rgba(40, 96, 198, .12);
  transform: translateY(-1px);
}

.pdf-word-actions button.primary {
  grid-column: 1 / -1;
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #176fff, #715cff);
  box-shadow: 0 16px 30px rgba(48, 100, 231, .22);
}

.pdf-word-actions button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.pdf-word-note {
  display: grid;
  gap: 6px;
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(255, 248, 235, .92), rgba(255, 255, 255, .94));
}

.pdf-word-note b {
  color: #915f13;
  font-size: 13px;
  font-weight: 850;
}

.pdf-word-note p {
  margin: 0;
  color: #7a6b59;
  font-size: 12px;
  line-height: 1.7;
  font-weight: 650;
}

@media (max-width: 1080px) {
  .pdf-word-layout {
    grid-template-columns: 1fr;
  }

  .pdf-word-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .pdf-to-word-page .tool-workbench {
    width: calc(100% - 28px);
  }

  .pdf-word-preview-list {
    max-height: none;
  }
}
