:root {
  --pool-bg: #edf7f7;
  --pool-panel: #ffffff;
  --pool-ink: #10242a;
  --pool-muted: #617278;
  --pool-line: #c8dcdf;
  --pool-primary: #147d8a;
  --pool-primary-deep: #0b4f59;
  --pool-soft: #dff4f4;
}

.pool-page {
  background:
    linear-gradient(180deg, rgba(237, 247, 247, 0.96), rgba(245, 250, 250, 1)),
    var(--pool-bg);
  color: var(--pool-ink);
}

.pool-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 620px;
}

.pool-head {
  align-items: flex-start;
}

.pool-panel {
  padding: 18px;
  border: 1px solid var(--pool-line);
  border-radius: 8px;
  background: var(--pool-panel);
  box-shadow: 0 10px 26px rgba(19, 71, 80, 0.08);
}

.pool-section-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.pool-section-title h2 {
  font-size: 20px;
}

.pool-section-title span,
.pool-field span,
.pool-status {
  color: var(--pool-muted);
}

.pool-photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.pool-photo-slot {
  display: grid;
  gap: 10px;
}

.pool-photo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  min-height: 168px;
  overflow: hidden;
  border: 1px dashed var(--pool-line);
  border-radius: 8px;
  background: var(--pool-soft);
  color: var(--pool-primary-deep);
  font-weight: 700;
}

.pool-photo-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.pool-photo-actions,
.pool-action-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pool-file-action,
.pool-primary-btn,
.pool-secondary-btn {
  min-height: 46px;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
}

.pool-file-action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--pool-primary);
  background: var(--pool-primary);
  color: #fff;
}

.pool-file-action.secondary,
.pool-secondary-btn {
  background: #f4fbfb;
  color: var(--pool-primary-deep);
  border: 1px solid var(--pool-line);
}

.pool-file-action input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.work-option-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.work-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--pool-line);
  border-radius: 8px;
  background: #f8fcfc;
  color: var(--pool-ink);
  font-weight: 700;
}

.work-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--pool-primary);
  flex: 0 0 auto;
}

.pool-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.pool-field textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  border: 1px solid var(--pool-line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--pool-ink);
  font: 15px/1.65 "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.pool-primary-btn,
.pool-secondary-btn {
  border: 0;
  cursor: pointer;
}

.pool-primary-btn {
  background: var(--pool-primary);
  color: #fff;
}

.pool-secondary-btn {
  border: 1px solid var(--pool-line);
}

.pool-secondary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.pool-status {
  margin-top: 10px;
  min-height: 22px;
  font-size: 14px;
  line-height: 1.55;
}

.pool-send-hint {
  margin-top: 6px;
  color: #0b4f59;
  font-size: 13px;
  line-height: 1.55;
}

.pool-status.error {
  color: #b42318;
}

.pool-status.success {
  color: #146c43;
}

.report-preview-wrap {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--pool-line);
  border-radius: 8px;
  background: #d9ebee;
}

.report-preview-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
}

.report-canvas-source {
  display: none !important;
}

.report-image-preview {
  display: block;
  width: 100%;
  height: auto;
}

.wechat-image-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: #101719;
}

.wechat-image-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) 14px 12px;
  color: #ffffff;
  font-size: 14px;
}

.wechat-image-toolbar button {
  min-width: 66px;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
}

.wechat-image-stage {
  flex: 1;
  overflow: auto;
  padding: 0 12px 24px;
  -webkit-overflow-scrolling: touch;
}

.wechat-image-stage img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
  background: #ffffff;
  user-select: auto;
  -webkit-user-select: auto;
  -webkit-touch-callout: default;
}

@media (min-width: 560px) {
  .pool-photo-grid {
    grid-template-columns: 1fr 1fr;
  }
}
