[v-cloak] {
  display: none !important;
}

body.reader-mobile-page {
  background: #f5f7fa;
  color: #172033;
}

body.reader-mobile-page #app {
  min-height: 100vh;
  background: #f5f7fa;
}

.reader-mobile-page *,
.reader-mobile-page *::before,
.reader-mobile-page *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

.reader-main {
  width: 100%;
  max-width: 760px;
  min-height: calc(100vh - var(--h5-app-navbar));
  margin: 0 auto;
  padding: calc(var(--h5-app-topbar) + 14px) 14px 26px;
}

.reader-shell {
  display: grid;
  gap: 12px;
}

.reader-tabs {
  height: 42px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 3px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #eef1f5;
}

.reader-tabs a {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  border-radius: 6px;
  color: #667085 !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
}

.reader-tabs a.active {
  background: #fff;
  color: #172033 !important;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
}

.reader-tabs i {
  flex: 0 0 auto;
  font-size: 15px;
}

.reader-hero {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 2px 6px;
}

.reader-hero div {
  min-width: 0;
}

.reader-hero p {
  margin: 0 0 5px;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.reader-hero h1 {
  margin: 0;
  overflow: hidden;
  color: #172033;
  font-size: 24px !important;
  line-height: 1.25;
  text-align: left !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reader-hero span {
  display: block;
  margin-top: 5px;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.reader-hero > strong {
  flex: 0 0 auto;
  min-width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e7f8f1;
  color: #16835d;
  font-size: 22px;
  line-height: 1;
}

.reader-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
}

.reader-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.reader-panel-heading h2 {
  margin: 0;
  color: #172033;
  font-size: 16px;
  line-height: 1.25;
}

.reader-panel-heading p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.4;
}

.reader-panel-heading > span {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 4px;
  background: #e8eefc;
  color: #2f5bd3;
  font-size: 12px;
  font-weight: 700;
}

.reader-result-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.reader-panel-heading .el-button {
  min-height: 32px !important;
  padding: 0 4px !important;
  color: #2f5bd3;
  font-size: 13px !important;
  font-weight: 700;
}

.reader-panel-heading .el-button.danger {
  color: #b42318;
}

.reader-upload-zone {
  min-height: 176px;
  max-height: 356px;
  overflow-y: auto;
  padding: 12px;
  border: 1px dashed #cfd6e3;
  border-radius: 8px;
  background: #f8fafc;
  -webkit-overflow-scrolling: touch;
}

.reader-upload-zone .el-upload {
  display: flex;
  margin: 0 auto !important;
}

.reader-upload-zone .el-upload-list--picture-card {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  margin: 0;
}

.reader-upload-zone .el-upload--picture-card,
.reader-upload-zone .el-upload-list--picture-card .el-upload-list__item {
  width: calc((100vw - 78px) / 2) !important;
  max-width: 164px;
  min-width: 132px;
  height: 132px !important;
  overflow: hidden;
  border-radius: 8px;
}

.reader-upload-zone .el-upload-list--picture-card .el-upload-list__item {
  margin: 0 !important;
}

.reader-upload-zone .el-upload--picture-card {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto !important;
  border: 1px dashed #b8c2d4;
  background: #fff;
  line-height: normal !important;
}

.reader-upload-zone .el-upload--picture-card:active {
  background: #eef4ff;
}

.reader-upload-zone .el-upload-list__item-thumbnail {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.reader-upload-trigger {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #667085;
  line-height: 1.2;
  text-align: center;
}

.reader-upload-trigger i {
  color: #2f5bd3 !important;
  font-size: 26px !important;
}

.reader-upload-trigger span {
  display: block;
  width: 100%;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.reader-upload-zone .upload-name {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 28px;
  margin: 0;
  padding: 6px 7px;
  overflow: hidden;
  background: rgba(23, 32, 51, 0.76);
  color: #fff;
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reader-result-list {
  display: grid;
  gap: 8px;
}

.reader-result-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 36px;
  align-items: flex-start;
  gap: 10px;
  padding: 11px;
  border: 1px solid #e4e7ec;
  border-radius: 7px;
  background: #f8fafc;
}

.reader-result-item span {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #e7f8f1;
  color: #16835d;
  font-size: 12px;
  font-weight: 800;
}

.reader-result-item p {
  min-width: 0;
  margin: 0;
  color: #172033;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.reader-copy-item {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: #e8eefc;
  color: #2f5bd3;
  font-size: 17px;
}

.reader-copy-item:active {
  background: #dbe6ff;
}

.reader-empty {
  min-height: 136px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px dashed #d8dee9;
  border-radius: 8px;
  background: #f8fafc;
  color: #667085;
  text-align: center;
}

.reader-empty i {
  font-size: 28px;
}

.reader-empty p {
  margin: 0;
  font-size: 13px;
}

.reader-mobile-page .processing-overlay {
  position: fixed;
  z-index: 5000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.42);
}

.reader-mobile-page .processing-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, 0.65);
  border-top-color: #2f5bd3;
  border-radius: 50%;
  animation: reader-spin 800ms linear infinite;
}

@keyframes reader-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 374px) {
  .reader-main {
    padding-right: 10px;
    padding-left: 10px;
  }

  .reader-tabs a {
    gap: 4px;
    padding: 0 5px;
    font-size: 11px;
  }

  .reader-hero h1 {
    font-size: 22px !important;
  }

  .reader-upload-zone .el-upload--picture-card,
  .reader-upload-zone .el-upload-list--picture-card .el-upload-list__item {
    min-width: 122px;
  }
}

@media (min-width: 640px) {
  .reader-shell {
    gap: 16px;
  }

  .reader-upload-zone .el-upload--picture-card,
  .reader-upload-zone .el-upload-list--picture-card .el-upload-list__item {
    width: 154px !important;
    height: 154px !important;
  }

}

@media (prefers-reduced-motion: reduce) {
  .reader-mobile-page .processing-spinner {
    animation: none;
  }
}
