.e2d-3dpoq-quote {
  --e2d-3dpoq-border: #d8e3df;
  --e2d-3dpoq-ink: #17352f;
  --e2d-3dpoq-muted: #5d716b;
  --e2d-3dpoq-accent: #0f766e;
  --e2d-3dpoq-accent-soft: #dbf3ee;
  --e2d-3dpoq-surface: #ffffff;
  --e2d-3dpoq-surface-alt: #f6fbf9;
  --e2d-card-grid-cols: repeat(auto-fill, minmax(clamp(200px, calc(25% - 7.5px), 100%), 1fr));
  border: 1px solid var(--e2d-3dpoq-border);
  border-radius: 18px;
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfa 100%);
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  color: var(--e2d-3dpoq-ink);
}

.e2d-3dpoq-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.e2d-3dpoq-hero h3,
.e2d-3dpoq-card h4 {
  margin: 0 0 8px;
}

.e2d-3dpoq-help {
  color: var(--e2d-3dpoq-muted);
  margin: 0;
}

.e2d-3dpoq-quote [hidden],
.e2d-3dpoq-modal[hidden] {
  display: none !important;
}

.e2d-3dpoq-entry {
  background:
    linear-gradient(120deg, rgba(226, 241, 243, 0.92) 0%, rgba(255, 255, 255, 0.98) 38%, rgba(242, 249, 247, 0.96) 100%);
  box-shadow: 0 16px 40px rgba(19, 53, 47, 0.06);
}

.e2d-3dpoq-entry-hero {
  align-items: stretch;
  gap: 24px;
  margin-bottom: 24px;
}

.e2d-3dpoq-entry-hero__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.e2d-3dpoq-entry-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(25, 115, 145, 0.1);
  color: #0e667a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.e2d-3dpoq-entry-hero__copy .e2d-3dpoq-help {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.75;
  color: #3f5d62;
}

.e2d-3dpoq-entry-highlights {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.e2d-3dpoq-entry-highlights span {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(27, 96, 112, 0.12);
  color: #24434a;
  font-size: 13px;
  font-weight: 700;
}

.e2d-3dpoq-entry-hero__badge {
  min-width: 220px;
  border: 1px solid rgba(34, 97, 117, 0.12);
  border-radius: 22px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(226, 241, 243, 0.9) 100%);
  box-shadow: 0 16px 36px rgba(19, 53, 47, 0.08);
}

.e2d-3dpoq-entry-hero__badge-label {
  color: var(--e2d-3dpoq-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.e2d-3dpoq-entry-hero__badge-value {
  margin-top: 10px;
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
  color: #17352f;
}

.e2d-3dpoq-entry-hero__badge-meta {
  margin-top: 14px;
  color: #47656b;
  font-weight: 700;
}

.e2d-3dpoq-entry-strip {
  margin-bottom: 20px;
  padding: 14px 18px;
  border: 1px solid rgba(34, 97, 117, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow-x: auto;
}

.e2d-3dpoq-entry-strip__line {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 14px;
  min-width: max-content;
  white-space: nowrap;
  text-align: center;
}

.e2d-3dpoq-entry-strip__line span {
  color: #17352f;
  font-weight: 700;
  line-height: 1.4;
}

.e2d-3dpoq-entry-strip__arrow {
  color: #0f766e;
  font-weight: 800;
}

.e2d-3dpoq-entry-strip::-webkit-scrollbar {
  height: 8px;
}

.e2d-3dpoq-entry-strip::-webkit-scrollbar-thumb {
  background: rgba(15, 118, 110, 0.22);
  border-radius: 999px;
}

.e2d-3dpoq-entry-strip::-webkit-scrollbar-track {
  background: transparent;
}

.e2d-3dpoq-entry-grid {
  align-items: stretch;
}

.e2d-3dpoq-entry-upload-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(246, 251, 249, 0.98) 100%);
  padding-top: 12px;
  padding-bottom: 14px;
  min-height: 100%;
}

.e2d-3dpoq-entry-info-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(239, 247, 245, 0.98) 100%);
  min-height: 100%;
}

.e2d-3dpoq-entry-status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.e2d-3dpoq-entry-status-summary {
  color: #35565d;
  line-height: 1.65;
}

.e2d-3dpoq-entry-status-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #4f6b71;
  display: grid;
  gap: 8px;
}

.e2d-3dpoq-entry-status-list li {
  line-height: 1.55;
}

.e2d-3dpoq-entry-history-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 250, 251, 0.98) 100%);
  margin-top: 20px;
  container-type: inline-size;
}

.e2d-3dpoq-entry-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.e2d-3dpoq-entry-history-head h4 {
  margin: 0;
}

.e2d-3dpoq-entry-history-summary-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 12px;
  color: #52656a;
  font-size: 13px;
  font-weight: 700;
}

.e2d-3dpoq-entry-history-summary-bar span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(226, 241, 243, 0.72);
  border: 1px solid rgba(27, 96, 112, 0.12);
}

.e2d-3dpoq-entry-pricing-card {
  margin-top: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(245, 250, 248, 0.98) 100%);
  container-type: inline-size;
}

.e2d-3dpoq-entry-analysis-card {
  margin-top: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(244, 250, 249, 0.98) 100%);
}

.e2d-3dpoq-entry-analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: start;
}

.e2d-3dpoq-entry-analysis-grid--single {
  grid-template-columns: 1fr;
}

.e2d-3dpoq-entry-preview-card {
  margin-top: 0;
}

.e2d-3dpoq-entry-pricing-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.e2d-3dpoq-entry-pricing-head > div {
  width: 100%;
}

.e2d-3dpoq-entry-pricing-copy {
  margin: 6px 0 0;
  color: #507075;
  line-height: 1.6;
}

.e2d-3dpoq-entry-estimate-pool {
  margin-top: 12px;
  padding: 12px 14px;
  border: 2px dashed rgba(34, 97, 117, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.e2d-3dpoq-entry-estimate-pool.is-dragover {
  border-color: #0f766e;
  background: rgba(219, 243, 238, 0.55);
}

.e2d-3dpoq-entry-estimate-pool__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  margin-bottom: 10px;
}

.e2d-3dpoq-entry-estimate-pool__head strong {
  color: #17352f;
  font-size: 14px;
}

.e2d-3dpoq-entry-estimate-pool__count-tag {
  font-size: 12px;
  font-weight: 700;
  color: #0f766e;
  background: rgba(15, 118, 110, 0.1);
  border-radius: 999px;
  padding: 3px 9px;
}

.e2d-3dpoq-entry-estimate-pool__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: var(--e2d-card-grid-cols);
  gap: 10px;
  min-height: 52px;
  align-items: start;
}

.e2d-3dpoq-entry-history-list--pool {
  grid-template-columns: var(--e2d-card-grid-cols);
}

.e2d-3dpoq-entry-history-list--pool li {
  aspect-ratio: auto;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  background: #f4fbf9;
}

.e2d-3dpoq-entry-pool-card__preview {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 0;
  overflow: hidden;
  border-radius: inherit;
  background: #f4fbf9;
}

.e2d-3dpoq-entry-history-list--pool .e2d-3dpoq-entry-history-preview,
.e2d-3dpoq-entry-history-list--pool .e2d-3dpoq-entry-history-overlay {
  border-radius: inherit;
}

.e2d-3dpoq-entry-pool-selection {
  display: grid;
  gap: 7px;
  padding: 10px 10px 12px;
  background: rgba(244, 251, 249, 0.98);
  border-top: 1px solid rgba(34, 97, 117, 0.12);
  border-radius: 0 0 14px 14px;
}

.e2d-3dpoq-entry-pool-selection__row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.e2d-3dpoq-entry-pool-selection__row > span {
  color: #35565d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.e2d-3dpoq-entry-pool-selection__row select,
.e2d-3dpoq-entry-pool-selection__row input {
  width: 100%;
  min-height: 30px;
  border: 1px solid rgba(34, 97, 117, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #17352f;
  font-size: 12px;
  padding: 4px 8px;
  box-sizing: border-box;
}

.e2d-3dpoq-entry-pool-selection__row input {
  text-align: right;
}

/* 空白提示 */
.e2d-3dpoq-entry-estimate-pool__list li.is-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 10px;
  border-radius: 9px;
  border: 1px dashed rgba(34, 97, 117, 0.2);
  color: #6a868d;
  font-size: 13px;
  text-align: center;
  pointer-events: none;
  aspect-ratio: auto;
  min-height: 86px;
}

.e2d-3dpoq-entry-estimate-pool__hint {
  font-size: 11px;
  color: #8da9ae;
}

/* 尚未分析完成：可查看，但不可加入估價池 */
.e2d-3dpoq-entry-history-list li.is-pool-blocked:not(.in-pool) {
  border-style: dashed;
  border-color: rgba(15, 118, 110, 0.28);
  cursor: progress;
}

.e2d-3dpoq-entry-history-list li.is-pool-blocked[data-risk-level="blocked"]:not(.in-pool) {
  cursor: not-allowed;
}

/* 已在估價池的歷史卡片：暗色不可再加入 */
.e2d-3dpoq-entry-history-list li.in-pool {
  opacity: 0.38;
  cursor: default;
  pointer-events: none;
}

.e2d-3dpoq-entry-history-list li.in-pool::after {
  content: "已加入";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  background: rgba(15, 118, 110, 0.18);
  color: #0f766e;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  pointer-events: none;
}

/* 拖曳中的歷史卡 */
.e2d-3dpoq-entry-history-list li.is-dragging {
  opacity: 0.5;
  box-shadow: 0 20px 40px rgba(15, 118, 110, 0.22);
}

.e2d-3dpoq-entry-pricing-meta {
  min-width: 260px;
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(34, 97, 117, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  color: #48636a;
  font-size: 13px;
}

.e2d-3dpoq-entry-pricing-meta code {
  font-size: 12px;
}

.e2d-3dpoq-entry-pricing-form {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) 168px;
  gap: 12px;
  align-items: end;
}

.e2d-3dpoq-pricing-form__hidden-field {
  display: none !important;
}

.e2d-3dpoq-entry-pricing-actions,
.e2d-3dpoq-entry-pricing-actions.e2d-3dpoq-actions {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
  align-items: flex-start;
  align-self: stretch;
  grid-column: 6 / 7;
  grid-row: 1;
}

.e2d-3dpoq-entry-pricing-actions__label {
  color: #536a71;
  font-size: 14px;
  font-weight: 700;
}

.e2d-3dpoq-entry-pricing-actions > * {
  flex: 0 0 auto;
}

.e2d-3dpoq-entry-pricing-card #e2d-3dpoq-estimate-disabled-reason {
  margin-top: 8px;
  text-align: right;
}

.e2d-3dpoq-quote-action-choice {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.e2d-3dpoq-quote-action-choice__item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.e2d-3dpoq-quote-action-choice__item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.e2d-3dpoq-quote-action-choice__item span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: #35565d;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.e2d-3dpoq-quote-action-choice__item input:checked + span {
  border-color: #0f766e;
  background: rgba(15, 118, 110, 0.12);
  color: #0f5b55;
}

.e2d-3dpoq-entry-action-hint {
  margin-top: 8px;
  color: #6d7f84;
  font-size: 13px;
  line-height: 1.45;
}

.e2d-3dpoq-entry-action-hint.is-error {
  color: #b42318;
}

.e2d-3dpoq-entry-pricing-results {
  display: none;
}

.e2d-3dpoq-entry-actions {
  margin-top: 10px;
}

.e2d-3dpoq-link-button--secondary {
  background: #d8ebe4;
  color: var(--e2d-3dpoq-ink);
}

.e2d-3dpoq-entry-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(34, 97, 117, 0.07);
  color: #24434a;
  line-height: 1.6;
}

.e2d-3dpoq-entry-dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px 18px;
  margin-bottom: 8px;
  border: 2px dashed #11a8c4;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 251, 249, 0.95) 100%);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.e2d-3dpoq-entry-dropzone:hover,
.e2d-3dpoq-entry-dropzone:focus-visible,
.e2d-3dpoq-entry-dropzone.is-dragover {
  border-color: #0f8aa3;
  background: linear-gradient(180deg, rgba(250, 255, 255, 0.98) 0%, rgba(233, 247, 248, 0.98) 100%);
  box-shadow: 0 10px 24px rgba(17, 168, 196, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.e2d-3dpoq-entry-dropzone__icon {
  position: relative;
  width: 66px;
  height: 66px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(17, 168, 196, 0.12);
}

.e2d-3dpoq-entry-dropzone__icon-cloud,
.e2d-3dpoq-entry-dropzone__icon-arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.e2d-3dpoq-entry-dropzone__icon-cloud {
  top: 20px;
  width: 30px;
  height: 17px;
  background: #11a8c4;
  border-radius: 12px;
}

.e2d-3dpoq-entry-dropzone__icon-cloud::before,
.e2d-3dpoq-entry-dropzone__icon-cloud::after {
  content: "";
  position: absolute;
  background: #11a8c4;
  border-radius: 999px;
}

.e2d-3dpoq-entry-dropzone__icon-cloud::before {
  width: 18px;
  height: 18px;
  left: 3px;
  top: -8px;
}

.e2d-3dpoq-entry-dropzone__icon-cloud::after {
  width: 16px;
  height: 16px;
  right: 4px;
  top: -6px;
}

.e2d-3dpoq-entry-dropzone__icon-arrow {
  top: 22px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 12px solid #ffffff;
}

.e2d-3dpoq-entry-dropzone__icon-arrow::after {
  content: "";
  position: absolute;
  left: -3px;
  top: 10px;
  width: 6px;
  height: 12px;
  background: #ffffff;
}

.e2d-3dpoq-entry-dropzone__text {
  color: #17352f;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.e2d-3dpoq-entry-dropzone__text span {
  color: #13849b;
}

.e2d-3dpoq-entry-dropzone__hint {
  color: #648087;
  font-size: 13px;
}

.e2d-3dpoq-entry-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.e2d-3dpoq-entry-selected-file {
  margin: -2px 0 14px;
  color: #4d676d;
  font-size: 14px;
}

.e2d-3dpoq-entry-upload-list {
  margin: 10px 0 6px;
  display: grid;
  gap: 8px;
  max-height: calc((44px * 3) + (8px * 2));
  overflow-y: auto;
  padding-right: 2px;
}

.e2d-3dpoq-entry-upload-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(17, 140, 163, 0.18);
  background: rgba(255, 255, 255, 0.86);
}

.e2d-3dpoq-entry-upload-item__name {
  font-size: 13px;
  color: #29515a;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e2d-3dpoq-entry-upload-item__status {
  font-size: 12px;
  color: #0e667a;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(17, 168, 196, 0.12);
  white-space: nowrap;
}

.e2d-3dpoq-entry-upload-item__activity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 24px;
  color: #0e667a;
}

.e2d-3dpoq-entry-upload-item__activity.is-ready {
  color: #16a34a;
}

.e2d-3dpoq-entry-upload-item__activity-dot,
.e2d-3dpoq-entry-history-progress__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  flex: 0 0 auto;
}

.e2d-3dpoq-entry-upload-item__activity-wave {
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.35;
  flex: 0 0 auto;
}

.e2d-3dpoq-entry-upload-item__activity.is-busy .e2d-3dpoq-entry-upload-item__activity-dot,
.e2d-3dpoq-entry-history-progress.is-busy .e2d-3dpoq-entry-history-progress__dot {
  animation: e2d-3dpoq-status-pulse 1.15s ease-in-out infinite;
}

.e2d-3dpoq-entry-upload-item__activity.is-busy .e2d-3dpoq-entry-upload-item__activity-wave {
  animation: e2d-3dpoq-status-wave 1.15s ease-in-out infinite;
}

@keyframes e2d-3dpoq-status-pulse {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(14, 102, 122, 0.28);
  }
  70% {
    transform: scale(1.12);
    box-shadow: 0 0 0 7px rgba(14, 102, 122, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(14, 102, 122, 0);
  }
}

@keyframes e2d-3dpoq-status-wave {
  0%,
  100% {
    transform: scaleX(0.75);
    opacity: 0.25;
  }
  50% {
    transform: scaleX(1.15);
    opacity: 0.65;
  }
}

.e2d-3dpoq-entry-auto-hint {
  margin: -4px 0 14px;
  color: #5f787e;
  font-size: 13px;
  line-height: 1.5;
}

.e2d-3dpoq-entry-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: var(--e2d-card-grid-cols);
  gap: 10px;
  align-items: start;
}

.e2d-3dpoq-entry-history-list li {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(34, 97, 117, 0.1);
  background: #f4fbf9;
  box-shadow: 0 8px 20px rgba(19, 53, 47, 0.04);
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition:
    box-shadow 0.22s ease,
    transform 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease;
}

.e2d-3dpoq-entry-history-list li:hover {
  box-shadow: 0 14px 32px rgba(19, 53, 47, 0.14);
  transform: translateY(-2px);
}

.e2d-3dpoq-entry-estimate-pool__list.e2d-3dpoq-entry-history-list--pool li {
  aspect-ratio: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-self: start;
}

.e2d-3dpoq-entry-estimate-pool__list.e2d-3dpoq-entry-history-list--pool .e2d-3dpoq-entry-pool-card__preview {
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
  min-height: 0;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.e2d-3dpoq-entry-estimate-pool__list.e2d-3dpoq-entry-history-list--pool .e2d-3dpoq-entry-history-preview {
  -webkit-user-drag: none;
  user-select: none;
}

.e2d-3dpoq-entry-estimate-pool__list.e2d-3dpoq-entry-history-list--pool .e2d-3dpoq-entry-history-overlay {
  z-index: 2;
}

.e2d-3dpoq-entry-estimate-pool__list.e2d-3dpoq-entry-history-list--pool .e2d-3dpoq-entry-history-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  left: 8px;
  padding: 0;
  z-index: 3;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 4px;
}

.e2d-3dpoq-entry-estimate-pool__list.e2d-3dpoq-entry-history-list--pool .e2d-3dpoq-entry-pool-selection {
  flex: 0 0 auto;
}

.e2d-3dpoq-entry-history-list li.is-selected {
  border-color: var(--e2d-3dpoq-accent);
  background: var(--e2d-3dpoq-accent-soft);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.25);
  transform: translateY(-1px);
}

.e2d-3dpoq-entry-history-list li.is-selected:hover {
  box-shadow: 0 16px 36px rgba(15, 118, 110, 0.35);
  transform: translateY(-3px);
}

#e2d-3dpoq-entry-history-list-wrap .e2d-3dpoq-entry-history-body,
#e2d-3dpoq-estimate-pool-list .e2d-3dpoq-entry-history-body {
  background: linear-gradient(
    to bottom,
    rgba(233, 244, 241, 0.14) 0%,
    rgba(52, 78, 75, 0.68) 45%,
    rgba(8, 34, 31, 0.92) 100%
  );
}

#e2d-3dpoq-entry-history-list-wrap .e2d-3dpoq-entry-history-name,
#e2d-3dpoq-estimate-pool-list .e2d-3dpoq-entry-history-name {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#e2d-3dpoq-entry-history-list-wrap .e2d-3dpoq-entry-history-file-id,
#e2d-3dpoq-estimate-pool-list .e2d-3dpoq-entry-history-file-id {
  color: rgba(214, 239, 233, 0.92);
}

#e2d-3dpoq-entry-history-list-wrap .e2d-3dpoq-entry-history-meta span,
#e2d-3dpoq-estimate-pool-list .e2d-3dpoq-entry-history-meta span {
  color: rgba(223, 245, 239, 0.94);
}

#e2d-3dpoq-entry-history-list-wrap .e2d-3dpoq-entry-history-lock-reason,
#e2d-3dpoq-estimate-pool-list .e2d-3dpoq-entry-history-lock-reason {
  color: #ff8c42;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.e2d-3dpoq-entry-history-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  background: #f4fbf9;
}

.e2d-3dpoq-entry-history-preview--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}

.e2d-3dpoq-entry-history-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.e2d-3dpoq-entry-history-list li:hover .e2d-3dpoq-entry-history-overlay,
.e2d-3dpoq-entry-history-list li:focus-within .e2d-3dpoq-entry-history-overlay,
.e2d-3dpoq-entry-history-list li.is-selected .e2d-3dpoq-entry-history-overlay {
  opacity: 1;
  pointer-events: auto;
}

.e2d-3dpoq-entry-history-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px 8px 0;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}

.e2d-3dpoq-entry-history-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 8px 12px 10px;
  background: linear-gradient(
    to bottom,
    rgba(6, 22, 20, 0.18) 0%,
    rgba(8, 28, 25, 0.94) 52%,
    rgba(6, 18, 17, 0.98) 100%
  );
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  margin-top: auto;
}

.e2d-3dpoq-entry-history-name {
  color: #f7fffd;
  font-size: 14px;
  min-width: 0;
  line-height: 1.45;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.e2d-3dpoq-entry-history-progress {
  position: absolute;
  top: 46px;
  left: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 0;
  max-width: calc(100% - 116px);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.e2d-3dpoq-entry-history-progress--busy {
  color: #b8f5ec;
  background: rgba(15, 118, 110, 0.22);
}

.e2d-3dpoq-entry-history-progress--review {
  color: #fff4c7;
  background: rgba(202, 138, 4, 0.24);
}

.e2d-3dpoq-entry-history-progress--error {
  color: #ffd6d6;
  background: rgba(220, 38, 38, 0.24);
}

.e2d-3dpoq-entry-history-progress__label {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e2d-3dpoq-entry-history-file-id {
  color: rgba(210, 238, 232, 0.72);
  font-size: 11px;
  min-width: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.e2d-3dpoq-entry-history-list strong {
  color: #ffffff;
  font-size: 14px;
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e2d-3dpoq-entry-history-action {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.e2d-3dpoq-entry-history-action:hover,
.e2d-3dpoq-entry-history-action:focus-visible {
  background: rgba(227, 245, 241, 0.96);
  border-color: rgba(15, 118, 110, 0.3);
  transform: translateY(-1px);
  outline: none;
}

.e2d-3dpoq-entry-history-action.is-active {
  background: rgba(227, 245, 241, 0.96);
  border-color: rgba(15, 118, 110, 0.3);
  color: #0f766e;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.08);
}

.e2d-3dpoq-entry-history-action__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.e2d-3dpoq-entry-history-action__icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.e2d-3dpoq-entry-history-action__fallback {
  font-size: 10px;
  letter-spacing: 0.04em;
}

.e2d-3dpoq-order-item-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.e2d-3dpoq-order-item-link {
  display: inline-flex;
  align-items: center;
  color: #0f766e;
  font-weight: 700;
  text-decoration: none;
}

.e2d-3dpoq-order-item-link:hover,
.e2d-3dpoq-order-item-link:focus-visible {
  color: #0b5e57;
  text-decoration: underline;
}

.e2d-3dpoq-order-item-viewer {
  font-size: 15px;
}

.e2d-3dpoq-entry-history-action.is-disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.e2d-3dpoq-entry-history-meta {
  display: grid;
  gap: 5px;
  margin-top: 4px;
  width: 100%;
}

.e2d-3dpoq-entry-history-meta-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px;
  align-items: start;
}

.e2d-3dpoq-entry-history-meta-label,
.e2d-3dpoq-entry-history-meta-value {
  color: rgba(223, 242, 237, 0.98);
  font-size: 12px;
  line-height: 1.45;
  min-width: 0;
  overflow-wrap: anywhere;
}

.e2d-3dpoq-entry-history-meta-label {
  color: rgba(177, 211, 204, 0.96);
  font-weight: 700;
  white-space: nowrap;
}

.e2d-3dpoq-entry-history-meta-value {
  color: #f4fffc;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.e2d-3dpoq-entry-history-meta-value--mono {
  color: rgba(210, 238, 232, 0.72);
  font-size: 11px;
  line-height: 1.4;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  word-break: normal;
  letter-spacing: 0;
  font-family: inherit;
  font-weight: 600;
  text-shadow: none;
}

.e2d-3dpoq-entry-history-lock-reason {
  color: #ff8c42;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  margin-top: 5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.e2d-3dpoq-entry-history-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  width: 100%;
  box-sizing: border-box;
}

.e2d-3dpoq-entry-history-footer-note {
  color: #ff8c42;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  min-width: 0;
  flex: 1 1 auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.e2d-3dpoq-entry-delete-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 10001;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(92vw, 560px);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 118, 110, 0.35);
  background: rgba(11, 28, 26, 0.95);
  color: #ecfdf8;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
}

.e2d-3dpoq-entry-delete-toast__text {
  font-size: 13px;
  line-height: 1.45;
}

.e2d-3dpoq-entry-delete-toast__undo {
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  background: #16a34a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.e2d-3dpoq-entry-delete-toast__undo:hover,
.e2d-3dpoq-entry-delete-toast__undo:focus-visible {
  background: #15803d;
  outline: none;
}

.e2d-3dpoq-entry-history-summary-loading,
.e2d-3dpoq-entry-history-summary-empty {
  border-radius: 12px;
  padding: 12px 14px;
  background: #f3faf8;
  color: #5a7177;
  line-height: 1.55;
}

.e2d-3dpoq-entry-history-summary-head {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.e2d-3dpoq-entry-history-summary-head-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.e2d-3dpoq-entry-history-summary-title {
  color: #17352f;
  font-size: 15px;
  font-weight: 800;
}

.e2d-3dpoq-entry-history-summary-copy {
  color: #4e676d;
  line-height: 1.6;
  font-size: 13px;
}

.e2d-3dpoq-entry-history-summary-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 0 0 14px;
}

.e2d-3dpoq-entry-history-summary-facts div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(244, 251, 249, 0.95);
  border: 1px solid rgba(34, 97, 117, 0.08);
}

.e2d-3dpoq-entry-history-summary-facts dt {
  color: #5a7177;
  font-size: 12px;
}

.e2d-3dpoq-entry-history-summary-facts dd {
  margin: 0;
  color: #17352f;
  font-weight: 700;
}

.e2d-3dpoq-summary-review-notice {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.e2d-3dpoq-summary-review-notice strong {
  font-size: 13px;
  font-weight: 700;
}

.e2d-3dpoq-summary-review-notice__note {
  color: inherit;
  opacity: 0.88;
  white-space: pre-wrap;
  word-break: break-word;
}

.e2d-3dpoq-summary-review-notice--rejected {
  background: #fff3e0;
  border: 1px solid #e0902a;
  color: #7c3d00;
}

.e2d-3dpoq-summary-review-notice--approved {
  background: #f5f5f5;
  border: 1px solid #c8c8c8;
  color: #444;
}

.e2d-3dpoq-entry-history-summary-details,
.e2d-3dpoq-entry-history-summary-warnings {
  display: grid;
  gap: 8px;
}

.e2d-3dpoq-entry-history-summary-details {
  color: #4e676d;
  line-height: 1.55;
}

.e2d-3dpoq-entry-history-summary-preview {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.e2d-3dpoq-entry-history-summary-preview-label {
  color: #17352f;
  font-size: 13px;
  font-weight: 700;
}

.e2d-3dpoq-entry-history-summary-preview img {
  display: block;
  width: 100%;
  max-width: 280px;
  border-radius: 12px;
  border: 1px solid rgba(34, 97, 117, 0.1);
  background: #fff;
}

.e2d-3dpoq-entry-analysis-card h4 {
  margin-bottom: 10px;
}

.e2d-3dpoq-entry-history-empty {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: #5a7177;
}

.e2d-3dpoq-status-chip {
  background: var(--e2d-3dpoq-accent-soft);
  color: var(--e2d-3dpoq-accent);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  white-space: nowrap;
}

.e2d-3dpoq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.e2d-3dpoq-grid--single {
  grid-template-columns: 1fr;
}

.e2d-3dpoq-card {
  border: 1px solid var(--e2d-3dpoq-border);
  border-radius: 14px;
  padding: 16px;
  background: var(--e2d-3dpoq-surface);
  box-shadow: 0 8px 24px rgba(19, 53, 47, 0.04);
}

.e2d-3dpoq-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.e2d-3dpoq-row label,
.e2d-3dpoq-pricing-form label {
  color: var(--e2d-3dpoq-muted);
  font-size: 14px;
}

.e2d-3dpoq-row input[type="number"],
.e2d-3dpoq-row input[type="text"],
.e2d-3dpoq-row input[type="file"],
.e2d-3dpoq-pricing-form input[type="number"],
.e2d-3dpoq-pricing-form select {
  border: 1px solid #bfd0ca;
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--e2d-3dpoq-surface-alt);
}

.e2d-3dpoq-row input[type="number"] {
  width: 110px;
}

.e2d-3dpoq-row input[type="text"] {
  width: 240px;
  max-width: 100%;
}

.e2d-3dpoq-row button,
.e2d-3dpoq-actions button,
.e2d-3dpoq-link-button {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--e2d-3dpoq-accent);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
}

.e2d-3dpoq-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.e2d-3dpoq-row button:disabled,
.e2d-3dpoq-actions button:disabled {
  opacity: 0.45;
  cursor: default;
}

.e2d-3dpoq-meta,
.e2d-3dpoq-analysis-details {
  display: grid;
  gap: 6px;
  color: var(--e2d-3dpoq-muted);
}

.e2d-3dpoq-preview-card {
  margin-top: 16px;
  border: 1px dashed #bfd0ca;
  border-radius: 12px;
  padding: 14px;
  background: var(--e2d-3dpoq-surface-alt);
}

.e2d-3dpoq-preview-label {
  font-weight: 700;
  margin-bottom: 8px;
}

.e2d-3dpoq-preview-state {
  color: var(--e2d-3dpoq-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.e2d-3dpoq-preview-empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef7f4 0%, #f8fbfa 100%);
  color: var(--e2d-3dpoq-muted);
  font-weight: 700;
}

.e2d-3dpoq-preview-image {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #d8e3df;
  margin-bottom: 10px;
}

.e2d-3dpoq-preview-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  align-items: center;
  justify-content: center;
}

.e2d-3dpoq-summary {
  margin-bottom: 14px;
  color: var(--e2d-3dpoq-ink);
  line-height: 1.6;
}

.e2d-3dpoq-facts {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}

.e2d-3dpoq-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf4f1;
  padding-bottom: 8px;
}

.e2d-3dpoq-facts dt {
  color: var(--e2d-3dpoq-muted);
}

.e2d-3dpoq-facts dd {
  margin: 0;
  font-weight: 700;
}

.e2d-3dpoq-review-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.e2d-3dpoq-inline-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.e2d-3dpoq-inline-button {
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--e2d-3dpoq-accent);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.e2d-3dpoq-inline-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.e2d-3dpoq-inline-button-danger {
  background: #b42318;
}

.e2d-3dpoq-warnings {
  margin-top: 14px;
  border-radius: 12px;
  background: #fff5db;
  color: #7a5500;
  padding: 12px 14px;
}

.e2d-3dpoq-warnings ul {
  margin: 8px 0 0 18px;
}

.e2d-3dpoq-warning-group + .e2d-3dpoq-warning-group {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(122, 85, 0, 0.18);
}

.e2d-3dpoq-orientation-preview {
  margin-top: 16px;
  border: 1px solid #d8e3df;
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(180deg, #f8fbfa 0%, #eef7f4 100%);
}

.e2d-3dpoq-orientation-preview__label {
  font-weight: 700;
  margin-bottom: 10px;
}

.e2d-3dpoq-orientation-preview__image {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #d8e3df;
}

.e2d-3dpoq-orientation-preview__empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--e2d-3dpoq-muted);
  font-weight: 700;
}

.e2d-3dpoq-pricing-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.e2d-3dpoq-pricing-form label {
  display: grid;
  gap: 6px;
}

.e2d-3dpoq-entry-pricing-form label {
  color: #536a71;
  font-size: 14px;
  font-weight: 700;
}

.e2d-3dpoq-price-summary {
  margin-top: 14px;
  border-radius: 12px;
  background: var(--e2d-3dpoq-surface-alt);
  padding: 14px;
  color: var(--e2d-3dpoq-ink);
}

.e2d-3dpoq-price-summary.is-empty {
  padding: 10px 12px;
  color: #5d716b;
}

.e2d-3dpoq-price-formula {
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.82);
  padding: 14px;
  color: var(--e2d-3dpoq-ink);
  display: grid;
  gap: 8px;
}

.e2d-3dpoq-price-formula__title {
  font-size: 13px;
  font-weight: 800;
  color: var(--e2d-3dpoq-muted);
  letter-spacing: 0.04em;
}

.e2d-3dpoq-price-formula__equation {
  font-weight: 700;
  line-height: 1.5;
}

.e2d-3dpoq-price-formula__rows {
  display: grid;
  gap: 8px;
}

.e2d-3dpoq-price-formula__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.e2d-3dpoq-price-formula__row:last-child {
  border-bottom: none;
}

.e2d-3dpoq-price-formula__row > div {
  display: grid;
  gap: 4px;
}

.e2d-3dpoq-price-formula__row span {
  color: var(--e2d-3dpoq-muted);
  font-weight: 700;
}

.e2d-3dpoq-price-formula__row small {
  color: var(--e2d-3dpoq-muted);
  line-height: 1.45;
}

.e2d-3dpoq-price-formula__row strong {
  font-variant-numeric: tabular-nums;
}

.e2d-3dpoq-price-formula__row--discount strong {
  color: #b91c1c;
}

.e2d-3dpoq-price-formula__result {
  padding-top: 4px;
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.e2d-3dpoq-price-formula__note {
  color: var(--e2d-3dpoq-muted);
  line-height: 1.5;
}

.e2d-3dpoq-price-total {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.e2d-3dpoq-events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.e2d-3dpoq-events li {
  border-left: 3px solid var(--e2d-3dpoq-accent);
  padding-left: 10px;
  color: var(--e2d-3dpoq-ink);
}

.e2d-3dpoq-events li span {
  display: block;
  color: var(--e2d-3dpoq-muted);
  font-size: 13px;
  margin-top: 3px;
}

@media (max-width: 1024px) {
  .e2d-3dpoq-pricing-form,
  .e2d-3dpoq-entry-pricing-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .e2d-3dpoq-entry-pricing-actions {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 960px) {
  .e2d-3dpoq-entry-grid {
    grid-template-columns: 1fr;
  }

  .e2d-3dpoq-pricing-form,
  .e2d-3dpoq-entry-pricing-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .e2d-3dpoq-entry-pricing-head {
    flex-direction: column;
  }

  .e2d-3dpoq-entry-pricing-meta {
    min-width: 0;
    width: 100%;
  }

  .e2d-3dpoq-entry-pricing-results {
    grid-template-columns: 1fr;
  }

  .e2d-3dpoq-entry-analysis-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .e2d-3dpoq-entry-history-summary-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .e2d-3dpoq-quote {
    padding: 14px;
    border-radius: 14px;
  }

  .e2d-3dpoq-entry-history-head {
    flex-direction: column;
    align-items: stretch;
  }

  .e2d-3dpoq-entry-history-summary-bar {
    justify-content: flex-start;
  }

  .e2d-3dpoq-entry-hero {
    flex-direction: column;
    gap: 16px;
  }

  .e2d-3dpoq-entry-hero__badge {
    width: 100%;
    min-width: 0;
  }

  .e2d-3dpoq-entry-highlights {
    gap: 8px;
  }

  .e2d-3dpoq-entry-highlights span {
    width: 100%;
    justify-content: center;
  }

  .e2d-3dpoq-actions button,
  .e2d-3dpoq-link-button,
  .e2d-3dpoq-preview-actions .e2d-3dpoq-link-button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .e2d-3dpoq-entry-history-actions {
    gap: 8px;
  }

  .e2d-3dpoq-entry-history-action {
    flex-basis: 38px;
    width: 38px;
    min-width: 38px;
    height: 38px;
  }

  .e2d-3dpoq-facts div {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .e2d-3dpoq-entry-history-list li,
  .e2d-3dpoq-entry-estimate-pool__list li,
  .e2d-3dpoq-entry-history-list--pool li {
    width: 100%;
    min-height: 250px;
  }

  .e2d-3dpoq-entry-history-body {
    gap: 6px;
    padding: 10px 12px 12px;
  }

  .e2d-3dpoq-entry-history-name {
    font-size: 14px;
  }
}

.e2d-3dpoq-log {
  background: #0b1220;
  color: #d7e3ff;
  border-radius: 12px;
  padding: 12px;
  min-height: 180px;
  max-height: 280px;
  overflow: auto;
  font-size: 12px;
  margin-top: 18px;
}

.e2d-3dpoq-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
}

#e2d-3dpoq-quote-detail-modal {
  z-index: 9999;
}

#e2d-3dpoq-model-modal,
#e2d-3dpoq-summary-modal {
  z-index: 10020;
}

#e2d-3dpoq-preview-modal {
  z-index: 10030;
}

.e2d-3dpoq-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 15, 22, 0.58);
  backdrop-filter: blur(4px);
}

.e2d-3dpoq-modal__dialog {
  position: relative;
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: hidden;
  border-radius: 18px;
  background: #f5faf8;
  border: 1px solid #d8e6df;
  box-shadow: 0 26px 80px rgba(14, 38, 33, 0.26);
  display: grid;
  grid-template-rows: auto 1fr;
}

.e2d-3dpoq-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 20px 12px;
  border-bottom: 1px solid #e0ece7;
}

.e2d-3dpoq-modal__header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.e2d-3dpoq-modal__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--e2d-3dpoq-ink);
}

.e2d-3dpoq-modal__subtitle {
  margin-top: 4px;
  color: var(--e2d-3dpoq-muted);
  font-size: 13px;
}

.e2d-3dpoq-modal__close {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: #d8ebe4;
  color: var(--e2d-3dpoq-ink);
  cursor: pointer;
  font-weight: 700;
}

.e2d-3dpoq-modal__close--primary {
  background: #5f8f84;
  color: #ffffff;
}

#e2d-3dpoq-quote-detail-save:disabled {
  cursor: not-allowed;
}

.e2d-3dpoq-modal__close--at-limit {
  background: #d8ebe4;
  color: #8aaa9e;
  opacity: 0.75;
}

.e2d-3dpoq-modal__body {
  position: relative;
  padding: 18px 20px 20px;
  display: grid;
  gap: 12px;
}

.e2d-3dpoq-summary-modal__dialog {
  width: min(860px, calc(100vw - 32px));
}

.e2d-3dpoq-summary-modal__body {
  overflow: auto;
}

.e2d-3dpoq-preview-modal__dialog {
  width: min(980px, calc(100vw - 32px));
}

.e2d-3dpoq-preview-modal__body {
  display: grid;
  place-items: center;
  min-height: min(72vh, 760px);
  overflow: auto;
  background:
    radial-gradient(circle at top, rgba(223, 242, 235, 0.65), rgba(245, 250, 248, 0.96) 58%),
    #f5faf8;
}

.e2d-3dpoq-preview-modal__image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(16, 46, 42, 0.16);
  background: #ffffff;
}

.e2d-3dpoq-preview-modal__empty {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid #d8e6df;
  background: rgba(255, 255, 255, 0.9);
  color: #59716b;
  font-weight: 700;
}

.e2d-3dpoq-quote-detail-modal__dialog {
  width: min(1120px, calc(100vw - 32px));
}

.e2d-3dpoq-quote-detail-modal__body {
  overflow: auto;
  padding-top: 14px;
}

.e2d-3dpoq-quote-detail-modal__body:has(.e2d-3dpoq-quote-sheet) {
  padding: 0;
  overflow: hidden;
}

.e2d-3dpoq-quote-detail-modal__panel {
  display: grid;
  gap: 18px;
}

.e2d-3dpoq-quote-detail-modal__hero {
  display: grid;
  gap: 8px;
  padding: 6px 2px 0;
}

.e2d-3dpoq-quote-detail-modal__eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #58756d;
}

.e2d-3dpoq-quote-detail-modal__headline {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  color: #17352f;
}

.e2d-3dpoq-quote-detail-modal__summary {
  margin: 0;
  color: #4b635d;
  font-size: 14px;
  line-height: 1.65;
}

.e2d-3dpoq-quote-detail-modal__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.e2d-3dpoq-quote-detail-modal__fact {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #d8e6df;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, #f9fcfb 0%, #edf5f2 100%);
}

.e2d-3dpoq-quote-detail-modal__fact-label {
  font-size: 12px;
  font-weight: 700;
  color: #6a8680;
}

.e2d-3dpoq-quote-detail-modal__fact-value {
  color: #17352f;
  font-size: 18px;
  line-height: 1.3;
}

.e2d-3dpoq-quote-detail-modal__fact--mono .e2d-3dpoq-quote-detail-modal__fact-value {
  font-size: 14px;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.e2d-3dpoq-quote-detail-modal__meta {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #dbe8e1;
  background: #ffffff;
}

.e2d-3dpoq-quote-detail-modal__panel--active {
  gap: 20px;
}

.e2d-3dpoq-quote-detail-modal__active-top {
  display: flex;
  justify-content: flex-end;
}

.e2d-3dpoq-quote-detail-modal__meta--active {
  width: min(100%, 420px);
}

.e2d-3dpoq-quote-detail-modal__meta-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.e2d-3dpoq-quote-detail-modal__meta-label {
  font-size: 12px;
  font-weight: 700;
  color: #6a8680;
}

.e2d-3dpoq-quote-detail-modal__meta-value {
  color: #17352f;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.e2d-3dpoq-quote-detail-modal__meta-value--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.e2d-3dpoq-quote-detail-modal__notice,
.e2d-3dpoq-quote-detail-modal__empty {
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 700;
}

.e2d-3dpoq-quote-detail-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.e2d-3dpoq-quote-detail-modal__action[disabled],
.e2d-3dpoq-quote-detail-modal__action[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.e2d-3dpoq-quote-sheet {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
}

.e2d-3dpoq-quote-sheet__scroll {
  overflow: auto;
  padding: 8px 10px 8px;
}

.e2d-3dpoq-quote-sheet__paper {
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 22px 22px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 249, 0.96)),
    linear-gradient(135deg, rgba(206, 230, 221, 0.4), rgba(255, 255, 255, 0));
}

.e2d-3dpoq-quote-sheet__strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.e2d-3dpoq-quote-sheet__strip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 4px 12px;
  border: 1px solid #dbe8e2;
  border-radius: 14px;
  background: #ffffff;
}

.e2d-3dpoq-quote-sheet__strip-item span {
  color: #68817b;
  font-size: 12px;
  font-weight: 800;
  order: 1;
  line-height: 1;
  white-space: nowrap;
}

.e2d-3dpoq-quote-sheet__strip-item strong {
  font-size: 14px;
  line-height: 1;
  color: #17352f;
  order: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
}

.e2d-3dpoq-quote-sheet__strip-item span::after {
  content: ":";
  margin-left: 4px;
  color: #68817b;
}

.e2d-3dpoq-quote-sheet__strip-item.is-mono strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
}

.e2d-3dpoq-quote-sheet__header {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(240px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.e2d-3dpoq-quote-sheet__badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #dff2eb;
  color: #165749;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.e2d-3dpoq-quote-sheet__title {
  margin: 12px 0 8px;
  font-size: 30px;
  line-height: 1.05;
  color: #17352f;
}

.e2d-3dpoq-quote-sheet__intro {
  margin: 0;
  color: #59716b;
  font-size: 14px;
  line-height: 1.7;
}

.e2d-3dpoq-quote-sheet__meta-card {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #17352f 0%, #21473f 100%);
  color: #effbf7;
  box-shadow: 0 20px 38px rgba(23, 53, 47, 0.18);
}

.e2d-3dpoq-quote-sheet__meta-kv {
  display: grid;
  gap: 3px;
}

.e2d-3dpoq-quote-sheet__meta-kv span {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(223, 247, 240, 0.72);
}

.e2d-3dpoq-quote-sheet__meta-kv strong {
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.e2d-3dpoq-quote-sheet__parties {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.e2d-3dpoq-quote-sheet__party {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border: 1px solid #dbe8e2;
  border-radius: 18px;
  background: #ffffff;
}

.e2d-3dpoq-quote-sheet__party-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #66817b;
}

.e2d-3dpoq-quote-sheet__party-name {
  color: #17352f;
  font-size: 16px;
  line-height: 1.4;
}

.e2d-3dpoq-quote-sheet__party-line {
  color: #546b65;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.e2d-3dpoq-quote-sheet__summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.e2d-3dpoq-quote-sheet__specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.e2d-3dpoq-quote-sheet__spec {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 4px 12px;
  border: 1px solid #dbe8e2;
  border-radius: 14px;
  background: #ffffff;
}

.e2d-3dpoq-quote-sheet__spec span {
  color: #68817b;
  font-size: 12px;
  font-weight: 800;
  order: 1;
  line-height: 1;
  white-space: nowrap;
}

.e2d-3dpoq-quote-sheet__spec strong {
  color: #17352f;
  font-size: 15px;
  line-height: 1;
  order: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
}

.e2d-3dpoq-quote-sheet__spec span::after {
  content: ":";
  margin-left: 4px;
  color: #68817b;
}

.e2d-3dpoq-quote-sheet__summary-grid .e2d-3dpoq-quote-detail-modal__fact {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 4px 12px;
  border: 1px solid #dbe8e2;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: none;
}

.e2d-3dpoq-quote-sheet__summary-grid .e2d-3dpoq-quote-detail-modal__fact-label {
  color: #68817b;
  font-size: 12px;
  order: 1;
  line-height: 1;
  white-space: nowrap;
}

.e2d-3dpoq-quote-sheet__summary-grid .e2d-3dpoq-quote-detail-modal__fact-value {
  color: #17352f;
  font-size: 15px;
  line-height: 1;
  order: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
}

.e2d-3dpoq-quote-sheet__summary-grid .e2d-3dpoq-quote-detail-modal__fact-label::after {
  content: ":";
  margin-left: 4px;
  color: #68817b;
}

.e2d-3dpoq-quote-sheet__summary-grid .e2d-3dpoq-quote-detail-modal__fact--mono .e2d-3dpoq-quote-detail-modal__fact-value,
.e2d-3dpoq-quote-sheet__spec.is-mono strong,
.e2d-3dpoq-quote-sheet__strip-item.is-mono strong {
  font-size: 15px;
}

.e2d-3dpoq-quote-sheet__table-wrap {
  border: 1px solid #dbe8e2;
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
}

.e2d-3dpoq-quote-sheet__table {
  width: 100%;
  border-collapse: collapse;
}

.e2d-3dpoq-quote-sheet__table th,
.e2d-3dpoq-quote-sheet__table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #ebf3ef;
  font-size: 13px;
  line-height: 1.55;
  color: #29443e;
  vertical-align: top;
}

.e2d-3dpoq-quote-sheet__table thead th {
  background: #f3f8f6;
  color: #59716b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.e2d-3dpoq-quote-sheet__table tbody tr:last-child td {
  border-bottom: 0;
}

.e2d-3dpoq-quote-sheet__money {
  text-align: right;
  white-space: nowrap;
  font-weight: 800;
  color: #17352f;
}

.e2d-3dpoq-quote-sheet__file-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #e9f7f3;
  border: 1px solid #0f8aa3;
  box-shadow: none;
}

.e2d-3dpoq-quote-sheet__file-card-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  left: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.e2d-3dpoq-quote-sheet__file-card-actions .e2d-3dpoq-entry-history-action {
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 18px rgba(23, 53, 47, 0.12);
}

.e2d-3dpoq-quote-sheet__file-card-actions .e2d-3dpoq-entry-history-action svg,
.e2d-3dpoq-quote-sheet__pool-list .e2d-3dpoq-entry-history-action svg {
  width: 16px;
  height: 16px;
}

.e2d-3dpoq-quote-sheet__file-card-media {
  width: 100%;
  height: 100%;
  background: #c7c7c7;
}

.e2d-3dpoq-quote-sheet__file-card-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  background: linear-gradient(180deg, rgba(242, 247, 245, 0.88), rgba(222, 234, 229, 0.82));
}

.e2d-3dpoq-quote-sheet__file-card-preview--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}

.e2d-3dpoq-quote-sheet__file-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

.e2d-3dpoq-quote-sheet__file-card-body {
  justify-content: flex-end;
  margin-top: auto;
  background: linear-gradient(
    to bottom,
    rgba(6, 22, 20, 0.18) 0%,
    rgba(8, 28, 25, 0.94) 52%,
    rgba(6, 18, 17, 0.98) 100%
  );
  padding: 5px 8px 7px 10px;
  gap: 1px;
  min-width: 0;
}

.e2d-3dpoq-quote-sheet__file-card-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: 3px;
}

.e2d-3dpoq-quote-sheet__file-card-meta-line {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  flex-wrap: wrap;
}

.e2d-3dpoq-quote-sheet__file-card-meta-line span {
  font-size: 14px;
  line-height: 1.35;
  color: rgba(222, 241, 235, 0.88);
  font-weight: 700;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.e2d-3dpoq-quote-sheet__file-card-meta-line strong {
  font-size: 15px;
  line-height: 1.35;
  color: #ffffff;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.e2d-3dpoq-quote-sheet__file-card-name {
  display: block;
}

.e2d-3dpoq-quote-sheet__pool-list .e2d-3dpoq-entry-pool-card__preview {
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 4 / 5;
  min-height: 360px;
}

.e2d-3dpoq-quote-sheet__pool-list .e2d-3dpoq-entry-history-overlay {
  opacity: 1;
  pointer-events: auto;
}

.e2d-3dpoq-quote-sheet__pool-list .e2d-3dpoq-entry-history-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  left: 8px;
  padding: 0;
  z-index: 3;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}

.e2d-3dpoq-quote-sheet__pool-list .e2d-3dpoq-entry-history-action {
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
}

.e2d-3dpoq-quote-sheet__pool-list .e2d-3dpoq-entry-history-body {
  gap: 5px;
  padding: 10px 8px 12px 10px;
}

.e2d-3dpoq-quote-sheet__pool-list .e2d-3dpoq-entry-history-name {
  text-align: center;
}

.e2d-3dpoq-quote-sheet__pool {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #dbe8e2;
  border-radius: 18px;
  background: #ffffff;
}

.e2d-3dpoq-quote-sheet__pool-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
  color: #58756d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.e2d-3dpoq-quote-sheet__pool-head strong {
  color: #17352f;
  font-size: 14px;
}

.e2d-3dpoq-quote-sheet__pool-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(160px, calc(25% - 12px), 100%), 1fr));
  gap: 16px;
}

.e2d-3dpoq-quote-sheet__pool-item {
  min-width: 0;
}

.e2d-3dpoq-quote-sheet__empty {
  padding: 18px;
  color: #5e756f;
  font-size: 13px;
  line-height: 1.6;
}

.e2d-3dpoq-quote-sheet__footer {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  padding: 16px 20px 20px;
  border-top: 1px solid #dce8e3;
  background: rgba(245, 250, 248, 0.96);
  backdrop-filter: blur(12px);
}

.e2d-3dpoq-quote-sheet__totals {
  display: grid;
  gap: 8px;
}

.e2d-3dpoq-quote-sheet__totals-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #4f6862;
  font-size: 13px;
  line-height: 1.45;
}

.e2d-3dpoq-quote-sheet__totals-row strong {
  color: #17352f;
}

.e2d-3dpoq-quote-sheet__totals-row.is-grand {
  padding-top: 8px;
  border-top: 1px solid #cfe0d9;
  font-size: 15px;
  font-weight: 800;
}

.e2d-3dpoq-quote-sheet__footer-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.e2d-3dpoq-viewcube {
  position: absolute;
  bottom: 56px;
  right: 22px;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 132px;
  padding: 9px 8px 8px;
  border-radius: 16px;
  background: rgba(245, 250, 248, 0.9);
  border: 1px solid rgba(216, 230, 223, 0.92);
  box-shadow: 0 14px 30px rgba(23, 53, 47, 0.12);
  backdrop-filter: blur(10px);
}

.e2d-3dpoq-viewcube__canvas {
  display: block;
  width: 114px;
  height: 114px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.32) 42%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(236, 244, 240, 0.55));
  cursor: pointer;
}

.e2d-3dpoq-viewcube__iso {
  min-width: 48px;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid #c7d6d1;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #edf5f2 100%);
  color: #3c5551;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease;
}

.e2d-3dpoq-viewcube__iso:hover {
  transform: translateY(-1px);
  border-color: #95b9ad;
  box-shadow: 0 8px 16px rgba(23, 53, 47, 0.12);
}

.e2d-3dpoq-viewcube__iso.is-active {
  border-color: #6dafa0;
  background: linear-gradient(180deg, #d9f0e7 0%, #c6e7db 100%);
  color: #16483e;
}

.e2d-3dpoq-model-canvas {
  display: block;
  width: 100%;
  height: min(68vh, 640px);
  border-radius: 14px;
  border: 1px solid #d7e3df;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 35%),
    linear-gradient(180deg, #f8fcfb 0%, #dfece7 100%);
  cursor: grab;
  touch-action: none;
  overscroll-behavior: contain;
}

.e2d-3dpoq-model-canvas:active {
  cursor: grabbing;
}

.e2d-3dpoq-model-status {
  min-height: 24px;
  color: var(--e2d-3dpoq-muted);
  font-size: 13px;
}

.e2d-3dpoq-login-required {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 14px;
  background: #fff;
}

@media (max-width: 800px) {
  .e2d-3dpoq-entry-hero {
    flex-direction: column;
  }

  .e2d-3dpoq-quote-detail-modal__facts {
    grid-template-columns: 1fr;
  }

  .e2d-3dpoq-quote-detail-modal__headline {
    font-size: 22px;
  }

  .e2d-3dpoq-quote-detail-modal__meta-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .e2d-3dpoq-quote-detail-modal__actions {
    justify-content: stretch;
  }

  .e2d-3dpoq-quote-detail-modal__action {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .e2d-3dpoq-entry-quote-card__facts {
    grid-template-columns: 1fr;
  }

  .e2d-3dpoq-entry-quote-card__meta .e2d-3dpoq-quote-detail-modal__meta-row {
    grid-template-columns: 1fr;
  }

  .e2d-3dpoq-quote-sheet__header,
  .e2d-3dpoq-quote-sheet__parties,
  .e2d-3dpoq-quote-sheet__summary-grid,
  .e2d-3dpoq-quote-sheet__specs,
  .e2d-3dpoq-quote-sheet__footer {
    grid-template-columns: 1fr;
  }

  .e2d-3dpoq-quote-sheet__scroll {
    padding: 16px 16px 0;
  }

  .e2d-3dpoq-quote-sheet__paper {
    padding: 18px;
  }

  .e2d-3dpoq-quote-sheet__title {
    font-size: 24px;
  }

  .e2d-3dpoq-quote-sheet__table th,
  .e2d-3dpoq-quote-sheet__table td {
    padding: 12px 10px;
    font-size: 12px;
  }

  .e2d-3dpoq-entry-hero__badge {
    min-width: 0;
  }

  .e2d-3dpoq-entry-history-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .e2d-3dpoq-entry-history-list li {
    aspect-ratio: 1 / 1;
    min-height: 0;
  }

  .e2d-3dpoq-entry-history-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .e2d-3dpoq-entry-history-actions {
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 10px 10px 0;
  }

  .e2d-3dpoq-entry-history-body {
    gap: 5px;
    padding: 10px 12px 12px;
  }

  .e2d-3dpoq-entry-history-top {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .e2d-3dpoq-entry-history-meta {
    gap: 5px;
  }

  .e2d-3dpoq-entry-history-preview {
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .e2d-3dpoq-grid,
  .e2d-3dpoq-pricing-form,
  .e2d-3dpoq-entry-pricing-form {
    grid-template-columns: 1fr;
  }

  .e2d-3dpoq-hero {
    flex-direction: column;
  }

  .e2d-3dpoq-facts div {
    flex-direction: column;
    gap: 4px;
  }

  .e2d-3dpoq-modal {
    padding: 12px;
  }

  .e2d-3dpoq-modal__header {
    align-items: start;
    flex-direction: column;
  }

  .e2d-3dpoq-model-canvas {
    height: min(54vh, 420px);
  }

  .e2d-3dpoq-viewcube {
    bottom: 50px;
    right: 14px;
    width: 112px;
    gap: 5px;
    padding: 8px 7px 7px;
  }

  .e2d-3dpoq-viewcube__canvas {
    width: 96px;
    height: 96px;
  }

  .e2d-3dpoq-viewcube__iso {
    min-width: 44px;
    min-height: 22px;
    font-size: 9px;
  }
}

@media (max-width: 640px) {
  .e2d-3dpoq-entry-history-list,
  .e2d-3dpoq-entry-estimate-pool__list,
  .e2d-3dpoq-entry-history-list--pool {
    grid-template-columns: 1fr;
  }
}

.e2d-3dpoq-entry-quote-row {
  list-style: none;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  margin: 0 0 12px;
  background: #fff;
  aspect-ratio: auto !important;
  min-height: 0;
  height: auto;
  cursor: default;
  overflow: visible;
}

.e2d-3dpoq-entry-list-wrap .e2d-3dpoq-entry-history-list {
  margin: 0;
  padding: 0;
}

.e2d-3dpoq-entry-history-lock-reason {
  margin-top: 8px;
  font-size: 13px;
  color: #92400e;
}

.e2d-3dpoq-entry-list-wrap {
  margin-top: 16px;
}

.e2d-3dpoq-cart-item-quote-number {
  margin-top: 4px;
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
}

.e2d-3dpoq-cart-item-quote-number strong {
  color: #0f172a;
  font-weight: 700;
}

.e2d-3dpoq-cart-item-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.e2d-3dpoq-cart-item-extra {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.e2d-3dpoq-cart-item-quote-code-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.e2d-3dpoq-cart-item-quote-code {
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}

.e2d-3dpoq-cart-item-title {
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
  word-break: break-word;
}

.e2d-3dpoq-cart-item-title--button {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.e2d-3dpoq-cart-item-title:hover,
.e2d-3dpoq-cart-item-title:focus {
  color: #166534;
  text-decoration: underline;
}

.e2d-3dpoq-cart-item-view-link {
  color: #166534;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.e2d-3dpoq-cart-item-view-link:hover,
.e2d-3dpoq-cart-item-view-link:focus {
  text-decoration: underline;
}

.e2d-3dpoq-cart-item-view-link--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  padding: 0;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.e2d-3dpoq-cart-item-view-link--icon:hover,
.e2d-3dpoq-cart-item-view-link--icon:focus {
  text-decoration: none;
  background: rgba(227, 245, 241, 0.96);
  border-color: rgba(15, 118, 110, 0.3);
}

.e2d-3dpoq-cart-item-view-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.e2d-3dpoq-cart-item-view-link__icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.e2d-3dpoq-cart-item-thumb {
  display: inline-flex;
  text-decoration: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.e2d-3dpoq-cart-item-thumb-frame {
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.e2d-3dpoq-cart-item-thumb--linked:hover .e2d-3dpoq-cart-item-thumb-frame,
.e2d-3dpoq-cart-item-thumb--linked:focus .e2d-3dpoq-cart-item-thumb-frame {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.e2d-3dpoq-cart-item-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.e2d-3dpoq-cart-item-thumb-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.e2d-3dpoq-cart-quantity {
  display: none;
}

.e2d-3dpoq-cart-return-link {
  display: inline-flex;
  align-items: center;
  color: #166534;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  vertical-align: middle;
}

.e2d-3dpoq-cart-return-link:hover,
.e2d-3dpoq-cart-return-link:focus {
  text-decoration: underline;
}

.e2d-3dpoq-cart-remove-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  visibility: visible !important;
  opacity: 1 !important;
  color: #0f172a;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  min-width: 20px;
  min-height: 20px;
  line-height: 1;
}

.e2d-3dpoq-cart-remove-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.e2d-3dpoq-cart-remove-link--custom:hover,
.e2d-3dpoq-cart-remove-link--custom:focus,
.e2d-3dpoq-cart-remove-link:hover,
.e2d-3dpoq-cart-remove-link:focus {
  text-decoration: underline;
}

.e2d-3dpoq-block-cart-item .wc-block-components-product-name {
  display: block;
}

.e2d-3dpoq-block-cart-item .wc-block-components-quantity-selector,
.e2d-3dpoq-block-cart-item .wc-block-components-product-metadata__quantity,
.e2d-3dpoq-block-cart-item .wc-block-cart-item__quantity,
.e2d-3dpoq-block-cart-item .wc-block-components-product-badge {
  display: none !important;
}

.e2d-3dpoq-block-cart-item .wc-block-cart-item__image,
.e2d-3dpoq-block-cart-item .wc-block-components-product-image {
  min-width: 96px;
}

body.woocommerce-checkout .e2d-3dpoq-block-cart-item .e2d-3dpoq-cart-item-thumb-frame,
body.wp-block-woocommerce-checkout .e2d-3dpoq-block-cart-item .e2d-3dpoq-cart-item-thumb-frame,
body.is-checkout .e2d-3dpoq-block-cart-item .e2d-3dpoq-cart-item-thumb-frame {
  width: 56px;
  height: 56px;
  border-radius: 10px;
}

body.woocommerce-checkout .e2d-3dpoq-block-cart-item .wc-block-cart-item__image,
body.woocommerce-checkout .e2d-3dpoq-block-cart-item .wc-block-components-product-image,
body.woocommerce-checkout .e2d-3dpoq-block-cart-item .wc-block-components-order-summary-item__image,
body.wp-block-woocommerce-checkout .e2d-3dpoq-block-cart-item .wc-block-cart-item__image,
body.wp-block-woocommerce-checkout .e2d-3dpoq-block-cart-item .wc-block-components-product-image,
body.wp-block-woocommerce-checkout .e2d-3dpoq-block-cart-item .wc-block-components-order-summary-item__image,
body.is-checkout .e2d-3dpoq-block-cart-item .wc-block-cart-item__image,
body.is-checkout .e2d-3dpoq-block-cart-item .wc-block-components-product-image,
body.is-checkout .e2d-3dpoq-block-cart-item .wc-block-components-order-summary-item__image {
  min-width: 64px;
}

.e2d-3dpoq-cart-quote-modal__dialog {
  width: min(1100px, 92vw);
  height: min(88vh, 900px);
}

.e2d-3dpoq-cart-quote-modal__body {
  padding: 0;
  overflow: hidden;
}

.e2d-3dpoq-cart-quote-modal__frame {
  width: 100%;
  height: 100%;
  min-height: 70vh;
  border: 0;
  background: #fff;
  display: block;
}

.e2d-3dpoq-cart-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .e2d-3dpoq-cart-item-quote-code-row {
    align-items: flex-start;
    gap: 6px;
  }
}

body.e2d-3dpoq-embed-mode {
  background: transparent;
}

#e2d-3dpoq-quote-app.e2d-3dpoq-embed-mode {
  max-width: none;
  padding: 0;
  margin: 0;
}

.e2d-3dpoq-embed-mode .e2d-3dpoq-entry,
.e2d-3dpoq-embed-mode .e2d-3dpoq-entry-shell,
.e2d-3dpoq-embed-mode .e2d-3dpoq-dashboard,
.e2d-3dpoq-embed-mode .e2d-3dpoq-toolbar,
.e2d-3dpoq-embed-mode .e2d-3dpoq-modal {
  display: none !important;
}

.e2d-3dpoq-embed-shell {
  padding: 0;
  margin: 0;
}

.e2d-3dpoq-embed-shell .e2d-3dpoq-quote-sheet {
  border-radius: 0;
  box-shadow: none;
  min-height: auto;
}

.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 0;
  margin-left: auto;
  flex: 0 0 auto;
}

.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-body {
  justify-content: flex-end;
  margin-top: auto;
  background: linear-gradient(
    to bottom,
    rgba(6, 22, 20, 0.18) 0%,
    rgba(8, 28, 25, 0.94) 52%,
    rgba(6, 18, 17, 0.98) 100%
  );
  border-radius: 14px;
  padding: 10px 8px 12px 10px;
  gap: 5px;
}

.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-footer {
  margin-top: 10px;
  align-items: center;
}

.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-footer:empty {
  display: none;
}

.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-action.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Responsive Quote Options Grid ─────────────────────────────────────────── */
@media (max-width: 1200px) {
  .e2d-3dpoq-entry-pricing-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .e2d-3dpoq-entry-pricing-form .e2d-3dpoq-entry-pricing-actions {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  .e2d-3dpoq-entry-pricing-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .e2d-3dpoq-entry-pricing-form .e2d-3dpoq-entry-pricing-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* ── Production stage timeline (我的訂單) ─────────────────────────── */
.e2d-3dpoq-order-stage {
  margin-top: 10px;
}

.e2d-3dpoq-stage-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #23282d;
}

.e2d-3dpoq-stage-track {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Dot ── base (future) */
.e2d-3dpoq-order-stage .e2d-3dpoq-stage-dot {
  flex-shrink: 0;
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e0e0e0 !important;
  border: 2px solid #ccc !important;
  box-shadow: none !important;
  transition: none;
}

/* Dot ── done (past steps) */
.e2d-3dpoq-order-stage .e2d-3dpoq-stage-dot--done {
  background: #43a047 !important;
  border-color: #43a047 !important;
}

/* Dot ── current (active step) */
.e2d-3dpoq-order-stage .e2d-3dpoq-stage-dot--current {
  background: #0073aa !important;
  border-color: #0073aa !important;
  width: 14px;
  height: 14px;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.18) !important;
}

/* Connector line */
.e2d-3dpoq-stage-connector {
  flex: 1;
  height: 2px;
  min-width: 8px;
  background: #e0e0e0;
}

.e2d-3dpoq-stage-connector--done {
  background: #43a047;
}

/* ─── Price highlight ────────────────────────────────────────────────────── */

.e2d-3dpoq-entry-quote-price {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  text-shadow: none !important;
  line-height: 1.15;
}

.e2d-3dpoq-price-currency {
  font-size: 11px;
  font-weight: 600;
  color: var(--e2d-3dpoq-accent);
  opacity: 0.7;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.e2d-3dpoq-price-amount {
  font-size: 24px;
  font-weight: 800;
  color: var(--e2d-3dpoq-accent);
  letter-spacing: -0.03em;
}

/* ─── Status badge ───────────────────────────────────────────────────────── */

.e2d-3dpoq-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  background: rgba(34, 97, 117, 0.1);
  color: #1e5269 !important;
  border: 1px solid rgba(34, 97, 117, 0.14);
  white-space: nowrap;
}

/* neutral/pending */
.e2d-3dpoq-status-badge[data-status="draft"],
.e2d-3dpoq-status-badge[data-status="pending"],
.e2d-3dpoq-status-badge[data-status="queued_for_analysis"] {
  background: rgba(100, 116, 139, 0.1);
  color: #475569 !important;
  border-color: rgba(100, 116, 139, 0.18);
}

/* in-progress */
.e2d-3dpoq-status-badge[data-status="analysis_completed"],
.e2d-3dpoq-status-badge[data-status="estimated"],
.e2d-3dpoq-status-badge[data-status="approved"],
.e2d-3dpoq-status-badge[data-status="not_required"],
.e2d-3dpoq-status-badge[data-status="pending_review"] {
  background: rgba(15, 118, 110, 0.1);
  color: #0f5b55 !important;
  border-color: rgba(15, 118, 110, 0.2);
}

/* converted / completed */
.e2d-3dpoq-status-badge[data-status="converted"],
.e2d-3dpoq-status-badge[data-status="completed"] {
  background: rgba(22, 163, 74, 0.1);
  color: #166534 !important;
  border-color: rgba(22, 163, 74, 0.2);
}

/* error */
.e2d-3dpoq-status-badge[data-status="analysis_failed"],
.e2d-3dpoq-status-badge[data-status="rejected"],
.e2d-3dpoq-status-badge[data-status="failed"] {
  background: rgba(185, 28, 28, 0.08);
  color: #991b1b !important;
  border-color: rgba(185, 28, 28, 0.18);
}

/* ─── Quote / order card: conversion design ──────────────────────────────
   Text-only cards (no thumbnail). Hierarchy:
     price = focal point  |  CTA = dominant  |  view = quiet  |  delete = ghost
   ──────────────────────────────────────────────────────────────────────── */

/* Card shell */
.e2d-3dpoq-entry-quote-row {
  border: 1px solid rgba(34, 97, 117, 0.14);
  border-left: 3px solid var(--e2d-3dpoq-accent);
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf9 100%);
  box-shadow: 0 2px 12px rgba(19, 53, 47, 0.05);
  cursor: pointer;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.e2d-3dpoq-entry-quote-row:hover {
  box-shadow: 0 8px 24px rgba(19, 53, 47, 0.11);
  transform: translateY(-2px);
}

/* Remove dark-gradient body (designed for thumbnail cards) */
.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-body {
  background: none;
  border-radius: 0;
  padding: 14px 16px 12px;
  gap: 10px;
  margin-top: 0;
  justify-content: flex-start;
  box-sizing: border-box;
}

/* Text: light-background colours */
.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-name {
  text-align: left;
  text-shadow: none;
  font-size: 15px;
}

.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-name strong {
  color: #17352f;
  text-shadow: none;
  white-space: normal;
  font-size: 15px;
  overflow: visible;
  text-overflow: unset;
}

.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-meta-label {
  color: #6a8680;
  text-shadow: none;
}

.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-meta-value {
  color: #17352f;
  text-shadow: none;
  font-size: 13px;
}

.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-meta-value--mono {
  color: #35565d;
  text-shadow: none;
  font-size: 11px;
}

.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-lock-reason {
  text-shadow: none;
  font-size: 12px;
  color: #607d83;
  font-weight: 500;
}

/* footer-note = informational state message (已在購物車中 / 訂單已建立 etc.)
   These are POSITIVE/NEUTRAL states — not errors. Styled as a quiet badge. */
.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-footer-note {
  text-shadow: none;
  font-size: 11px;
  font-weight: 600;
  color: #0f766e;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 6px;
  padding: 3px 9px;
  align-self: flex-start;
  flex: 0 0 auto;
}

/* Footer: separated action zone */
.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-footer {
  padding-top: 10px;
  border-top: 1px solid rgba(34, 97, 117, 0.1);
}

/* Actions row: wrap so CTA can expand without clipping */
.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-actions {
  margin-left: 0;
  gap: 6px;
  flex: 1;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding: 0;
}

/* Action base: neutral pill */
.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-action {
  background: rgba(241, 250, 248, 0.96);
  border-color: rgba(34, 97, 117, 0.18);
  color: #0f766e;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease;
}

/* ── Primary CTA: 加到購物車 / 查看訂單 (order list) ──── */
.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-action--quote-order,
.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-action--view-order {
  flex: 0 0 auto;
  width: auto;
  min-width: auto;
  height: 36px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  background: var(--e2d-3dpoq-accent);
  border-color: var(--e2d-3dpoq-accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

/* ── 至購物車 — 橘色（已加入狀態，導航用途） ──────────────────────── */
.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-action--go-cart {
  flex: 0 0 auto;
  width: auto;
  min-width: auto;
  height: 36px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  border: 1px solid transparent;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.28);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

/* Label text read from title attribute — no JS change needed */
.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-action--quote-order::after,
.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-action--go-cart::after,
.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-action--view-order::after {
  content: attr(title);
  margin-left: 5px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-action--quote-order:hover,
.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-action--view-order:hover {
  background: #0a5c54;
  border-color: #0a5c54;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.28);
}

.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-action--go-cart:hover {
  background: #0a5c54;
  border-color: #0a5c54;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.28);
}

.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-action--quote-order:disabled,
.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-action--quote-order[aria-disabled="true"] {
  background: rgba(15, 118, 110, 0.22);
  border-color: transparent;
  color: rgba(255, 255, 255, 0.65);
  transform: none;
  box-shadow: none;
  cursor: not-allowed;
}

/* ── Secondary: 查看報價單 ──────────────────────────────────────────── */
.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-action--view-quote {
  background: transparent;
  border-color: rgba(34, 97, 117, 0.2);
  color: #607d83;
  opacity: 0.72;
}

.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-action--view-quote:hover,
.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-action--view-quote:focus-visible {
  opacity: 1;
  background: rgba(226, 241, 243, 0.6);
  border-color: rgba(34, 97, 117, 0.3);
  transform: none;
}

/* ── Danger: 刪除報價單 ─────────────────────────────────────────────── */
.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-action--delete-quote {
  background: transparent;
  border-color: rgba(185, 28, 28, 0.14);
  color: rgba(185, 28, 28, 0.38);
}

.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-action--delete-quote:hover,
.e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-action--delete-quote:focus-visible {
  background: rgba(254, 242, 242, 0.85);
  border-color: rgba(185, 28, 28, 0.35);
  color: #b91c1c;
  transform: none;
}

/* ── Order list: 查看訂單 link-button → primary pill ────────────────── */
.e2d-3dpoq-entry-order-list .e2d-3dpoq-entry-history-actions .e2d-3dpoq-link-button--secondary {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  border: 1px solid transparent;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.28);
  color: #ffffff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  text-decoration: none;
}

.e2d-3dpoq-entry-order-list .e2d-3dpoq-entry-history-actions .e2d-3dpoq-link-button--secondary:hover {
  background: #0a5c54;
}

/* Generic link-button inside quote rows: compact */
.e2d-3dpoq-entry-quote-row .e2d-3dpoq-link-button {
  padding: 7px 12px;
  font-size: 13px;
}

/* ─── Production stage timeline: brand-aligned polish ─────────────────── */

.e2d-3dpoq-order-stage {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(34, 97, 117, 0.1);
}

.e2d-3dpoq-stage-title {
  color: #0f766e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.e2d-3dpoq-stage-connector {
  height: 2px;
  border-radius: 999px;
}

/* ─── Empty states: richer placeholder ─────────────────────────────────── */

.e2d-3dpoq-entry-history-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(246, 251, 249, 0.9);
  border: 1px dashed rgba(34, 97, 117, 0.18);
  color: #5a7177;
  font-size: 14px;
}

/* ─── Quote / order list: responsive ───────────────────────────────────── */

@media (max-width: 800px) {
  /* 1-column: quote/order rows have multi-line text, unlike file thumbnail cards */
  .e2d-3dpoq-entry-quote-list,
  .e2d-3dpoq-entry-order-list {
    grid-template-columns: 1fr;
  }

  /* Action area: vertical stack */
  .e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 0;
  }

  /* All actions: full-width, centred */
  .e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-action {
    flex: 0 0 auto;
    width: 100%;
    height: 38px;
    border-radius: 10px;
    justify-content: center;
  }

  /* Primary CTA: first in stack, taller, pill */
  .e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-action--quote-order,
  .e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-action--go-cart,
  .e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-action--view-order {
    order: -1;
    width: 100%;
    height: 42px;
    border-radius: 999px;
    font-size: 14px;
    justify-content: center;
    padding: 0 18px 0 14px;
  }
  /* Delete: last in stack */
  .e2d-3dpoq-entry-quote-row .e2d-3dpoq-entry-history-action--delete-quote {
    order: 1;
    justify-content: center;
  }

  /* Order list link-button: full-width */
  .e2d-3dpoq-entry-order-list .e2d-3dpoq-entry-history-actions .e2d-3dpoq-link-button--secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: flex;
    height: 42px;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .e2d-3dpoq-entry-quote-list,
  .e2d-3dpoq-entry-order-list {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   FILE CARD (已上傳模型 section)
   Principle: thumbnail dominant, info bar always visible,
              action icons appear on hover (desktop) or
              dimmed-but-visible on touch devices.
   Scope: #e2d-3dpoq-entry-history-list-wrap only — does NOT affect
          pool list or quote/order card lists.
   Zero JS. Touch fallback via @media (hover: none).
   ═══════════════════════════════════════════════════════════════════ */

/* ── Overlay: always visible so info bar is always at bottom ─────── */
#e2d-3dpoq-entry-history-list-wrap .e2d-3dpoq-entry-history-overlay {
  opacity: 1;
  pointer-events: none; /* click-through; actions re-enable below */
}

/* ── Action bar: float at top, hidden → reveal on hover ─────────── */
#e2d-3dpoq-entry-history-list-wrap .e2d-3dpoq-entry-history-actions {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 8px 8px 18px;
  background: linear-gradient(
    180deg,
    rgba(8, 28, 25, 0.62) 0%,
    rgba(8, 28, 25, 0.08) 80%,
    transparent 100%
  );
  border-radius: 14px 14px 0 0;
  justify-content: flex-end;
  flex-wrap: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#e2d-3dpoq-entry-history-list-wrap
  .e2d-3dpoq-entry-history-list li:hover .e2d-3dpoq-entry-history-actions,
#e2d-3dpoq-entry-history-list-wrap
  .e2d-3dpoq-entry-history-list li:focus-within .e2d-3dpoq-entry-history-actions,
#e2d-3dpoq-entry-history-list-wrap
  .e2d-3dpoq-entry-history-list li.is-selected .e2d-3dpoq-entry-history-actions {
  opacity: 1;
  pointer-events: auto;
}

/* ── Filename: larger, bold, left-aligned ───────────────────────── */
#e2d-3dpoq-entry-history-list-wrap .e2d-3dpoq-entry-history-name strong {
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}

/* ── UUID: shrink to footnote ───────────────────────────────────── */
#e2d-3dpoq-entry-history-list-wrap .e2d-3dpoq-entry-history-file-id {
  display: block;
  font-size: 9px;
  color: rgba(180, 220, 210, 0.42);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
  padding-top: 1px;
  /* override base 2-line clamp */
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

/* ── Meta rows: compact stack ───────────────────────────────────── */
#e2d-3dpoq-entry-history-list-wrap .e2d-3dpoq-entry-history-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 2px;
}

#e2d-3dpoq-entry-history-list-wrap .e2d-3dpoq-entry-history-meta span {
  font-size: 10px;
  color: rgba(210, 240, 234, 0.65);
  line-height: 1.5;
}

#e2d-3dpoq-entry-history-list-wrap
  .e2d-3dpoq-entry-history-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(6px);
  box-shadow: none;
}

#e2d-3dpoq-entry-history-list-wrap
  .e2d-3dpoq-entry-history-status-badge--overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  transform: none;
  z-index: 4;
  max-width: calc(100% - 74px);
}

#e2d-3dpoq-entry-history-list-wrap
  .e2d-3dpoq-entry-history-status-badge:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

#e2d-3dpoq-entry-history-list-wrap
  .e2d-3dpoq-entry-history-status-badge--success {
  color: rgba(236, 253, 245, 0.9);
  background: rgba(22, 101, 52, 0.32);
}

#e2d-3dpoq-entry-history-list-wrap
  .e2d-3dpoq-entry-history-status-badge--warning {
  color: rgba(255, 247, 214, 0.9);
  background: rgba(180, 83, 9, 0.32);
}

#e2d-3dpoq-entry-history-list-wrap
  .e2d-3dpoq-entry-history-status-badge--error {
  color: rgba(255, 232, 232, 0.9);
  background: rgba(153, 27, 27, 0.3);
}

#e2d-3dpoq-entry-history-list-wrap
  .e2d-3dpoq-entry-history-status-badge--locked {
  color: rgba(255, 237, 213, 0.88);
  background: rgba(120, 53, 15, 0.3);
}

#e2d-3dpoq-entry-history-list-wrap
  .e2d-3dpoq-entry-history-status-badge--muted {
  color: rgba(226, 232, 240, 0.88);
  background: rgba(51, 65, 85, 0.28);
}

#e2d-3dpoq-entry-history-list-wrap
  .e2d-3dpoq-entry-history-actions--rail {
  position: absolute;
  top: 12px;
  left: auto;
  right: 10px;
  bottom: auto;
  width: auto;
  max-width: 32px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 6px;
  padding: 0;
  background: none;
  border-radius: 0;
  flex-wrap: nowrap;
  opacity: 0.15;
  pointer-events: none;
  transform: translateX(4px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

#e2d-3dpoq-entry-history-list-wrap
  .e2d-3dpoq-entry-history-list li:hover .e2d-3dpoq-entry-history-actions--rail,
#e2d-3dpoq-entry-history-list-wrap
  .e2d-3dpoq-entry-history-list li:focus-within .e2d-3dpoq-entry-history-actions--rail,
#e2d-3dpoq-entry-history-list-wrap
  .e2d-3dpoq-entry-history-list li.is-selected .e2d-3dpoq-entry-history-actions--rail {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

#e2d-3dpoq-entry-history-list-wrap .e2d-3dpoq-entry-history-lock-reason,
#e2d-3dpoq-entry-history-list-wrap .e2d-3dpoq-entry-history-progress {
  display: none;
}

/* ── Touch device fallback: actions always dimly visible ────────── */
/* No hover on touch → make actions accessible at reduced opacity   */
@media (hover: none) {
  #e2d-3dpoq-entry-history-list-wrap .e2d-3dpoq-entry-history-actions--rail {
    opacity: 0.65;
    pointer-events: auto;
    transform: translateX(0);
  }

  /* No hover hint on touch (::after won't fire but guard anyway) */
  #e2d-3dpoq-entry-history-list-wrap
    .e2d-3dpoq-entry-history-list
    li[data-analysis-status="completed"]:not(.in-pool):hover::after {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   STATUS SYSTEM — canonical quote / review / production mapping
   Requires: data-status on li.e2d-3dpoq-entry-quote-row (JS patch)
             data-status on span.e2d-3dpoq-status-badge (already done)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Badge base: add emoji prefix slot ───────────────────────────── */
.e2d-3dpoq-status-badge {
  gap: 5px;
}

.e2d-3dpoq-status-badge::before {
  content: "•";
  font-size: 11px;
  line-height: 1;
  flex-shrink: 0;
}

/* ── Quote status: canonical values (override older status names) ─── */
.e2d-3dpoq-status-badge[data-status="pricing_ready"] {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #047857 !important;
  border-color: rgba(16, 185, 129, 0.28) !important;
}
.e2d-3dpoq-status-badge[data-status="pricing_ready"]::before { content: "💰"; }

.e2d-3dpoq-status-badge[data-status="converted"] {
  background: rgba(20, 184, 166, 0.15) !important;
  color: #0f766e !important;
  border-color: rgba(20, 184, 166, 0.28) !important;
}
.e2d-3dpoq-status-badge[data-status="converted"]::before { content: "🛒"; }

.e2d-3dpoq-status-badge[data-status="paid"] {
  background: rgba(59, 130, 246, 0.14) !important;
  color: #1d4ed8 !important;
  border-color: rgba(59, 130, 246, 0.25) !important;
}
.e2d-3dpoq-status-badge[data-status="paid"]::before { content: "✅"; }

.e2d-3dpoq-status-badge[data-status="pending_payment"] {
  background: rgba(251, 191, 36, 0.16) !important;
  color: #b45309 !important;
  border-color: rgba(251, 191, 36, 0.3) !important;
}
.e2d-3dpoq-status-badge[data-status="pending_payment"]::before { content: "💳"; }

.e2d-3dpoq-status-badge[data-status="shipped"] {
  background: rgba(124, 58, 237, 0.14) !important;
  color: #6d28d9 !important;
  border-color: rgba(124, 58, 237, 0.25) !important;
}
.e2d-3dpoq-status-badge[data-status="shipped"]::before { content: "🚚"; }

.e2d-3dpoq-status-badge[data-status="completed"] {
  background: rgba(99, 102, 241, 0.14) !important;
  color: #4338ca !important;
  border-color: rgba(99, 102, 241, 0.26) !important;
}
.e2d-3dpoq-status-badge[data-status="completed"]::before { content: "📬"; }

.e2d-3dpoq-status-badge[data-status="refunded"],
.e2d-3dpoq-status-badge[data-status="payment_failed"] {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #b91c1c !important;
  border-color: rgba(239, 68, 68, 0.22) !important;
}
.e2d-3dpoq-status-badge[data-status="refunded"]::before { content: "↩"; }
.e2d-3dpoq-status-badge[data-status="payment_failed"]::before { content: "⚠"; }

.e2d-3dpoq-status-badge[data-status="expired"] {
  background: rgba(107, 114, 128, 0.14) !important;
  color: #4b5563 !important;
  border-color: rgba(107, 114, 128, 0.22) !important;
}
.e2d-3dpoq-status-badge[data-status="expired"]::before { content: "⏰"; }

.e2d-3dpoq-status-badge[data-status="cancelled"] {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #b91c1c !important;
  border-color: rgba(239, 68, 68, 0.22) !important;
}
.e2d-3dpoq-status-badge[data-status="cancelled"]::before { content: "✕"; }

/* Existing statuses: add emoji prefixes */
.e2d-3dpoq-status-badge[data-status="pending_review"]::before { content: "🕵️"; }
.e2d-3dpoq-status-badge[data-status="approved"]::before      { content: "✓"; }
.e2d-3dpoq-status-badge[data-status="rejected"]::before      { content: "!"; }
.e2d-3dpoq-status-badge[data-status="analysis_failed"]::before,
.e2d-3dpoq-status-badge[data-status="failed"]::before        { content: "✕"; }

/* ── CTA colour by quote status (needs data-status on li) ────────── */
/* Selectors match actual JS class names:
     --quote-order = 加到購物車   (pricing_ready)
     --go-cart     = 至購物車     (converted)
     --view-order  = 查看訂單     (paid / shipped)              */

.e2d-3dpoq-entry-quote-row[data-status="pricing_ready"]
  .e2d-3dpoq-entry-history-action--quote-order {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.28);
}

.e2d-3dpoq-entry-quote-row[data-status="converted"]
  .e2d-3dpoq-entry-history-action--go-cart {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.28);
}

.e2d-3dpoq-entry-quote-row[data-status="paid"]
  .e2d-3dpoq-entry-history-action--view-order,
.e2d-3dpoq-entry-quote-row[data-status="shipped"]
  .e2d-3dpoq-entry-history-action--view-order {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.22);
}

/* ── Expired / cancelled: dim card, block primary CTA ────────────── */
.e2d-3dpoq-entry-quote-row[data-status="expired"],
.e2d-3dpoq-entry-quote-row[data-status="cancelled"] {
  opacity: 0.7;
  cursor: default;
}

.e2d-3dpoq-entry-quote-row[data-status="expired"]:hover,
.e2d-3dpoq-entry-quote-row[data-status="cancelled"]:hover {
  transform: none;
  box-shadow: 0 2px 12px rgba(19, 53, 47, 0.05);
}

/* ── Review status badge (future DOM: data-review-status on span) ─── */
.e2d-3dpoq-review-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  background: rgba(148, 163, 184, 0.12);
  color: #64748b;
  border: 1px solid rgba(148, 163, 184, 0.22);
}
.e2d-3dpoq-review-badge[data-review-status="not_required"] { display: none; }
.e2d-3dpoq-review-badge[data-review-status="pending_review"] {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.28);
}
.e2d-3dpoq-review-badge[data-review-status="pending_review"]::before { content: "🕵️"; }
.e2d-3dpoq-review-badge[data-review-status="approved"] {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.25);
}
.e2d-3dpoq-review-badge[data-review-status="approved"]::before { content: "✓"; }
.e2d-3dpoq-review-badge[data-review-status="rejected"] {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.26);
}
.e2d-3dpoq-review-badge[data-review-status="rejected"]::before { content: "!"; }
.e2d-3dpoq-review-badge[data-review-status="blocked"] {
  background: rgba(127, 29, 29, 0.15);
  color: #7f1d1d;
  border-color: rgba(127, 29, 29, 0.28);
}
.e2d-3dpoq-review-badge[data-review-status="blocked"]::before { content: "⛔"; }

/* ── Combined status badge: main + review in one pill ────────────── */
.e2d-3dpoq-combined-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: help;
  background: rgba(34, 97, 117, 0.1);
  color: #1e5269;
  border-color: rgba(34, 97, 117, 0.14);
}
.e2d-3dpoq-combined-status[data-status="pricing_ready"] {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.28);
}
.e2d-3dpoq-combined-status[data-status="converted"] {
  background: rgba(20, 184, 166, 0.15);
  color: #0f766e;
  border-color: rgba(20, 184, 166, 0.28);
}
/* converted + abnormal review: 狀態異常 → warning tint */
.e2d-3dpoq-combined-status[data-status="converted"][data-review-status="pending_review"],
.e2d-3dpoq-combined-status[data-status="converted"][data-review-status="rejected"],
.e2d-3dpoq-combined-status[data-status="converted"][data-review-status="blocked"] {
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.4);
}
.e2d-3dpoq-combined-status[data-status="paid"] {
  background: rgba(59, 130, 246, 0.14);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.25);
}
.e2d-3dpoq-combined-status[data-status="pending_payment"] {
  background: rgba(251, 191, 36, 0.16);
  color: #b45309;
  border-color: rgba(251, 191, 36, 0.3);
}
.e2d-3dpoq-combined-status[data-status="shipped"] {
  background: rgba(124, 58, 237, 0.14);
  color: #6d28d9;
  border-color: rgba(124, 58, 237, 0.25);
}
.e2d-3dpoq-combined-status[data-status="completed"] {
  background: rgba(99, 102, 241, 0.14);
  color: #4338ca;
  border-color: rgba(99, 102, 241, 0.26);
}
.e2d-3dpoq-combined-status[data-status="refunded"],
.e2d-3dpoq-combined-status[data-status="payment_failed"] {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.22);
}
.e2d-3dpoq-combined-status[data-status="expired"] {
  background: rgba(107, 114, 128, 0.14);
  color: #4b5563;
  border-color: rgba(107, 114, 128, 0.22);
}
.e2d-3dpoq-combined-status[data-status="cancelled"] {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.22);
}
/* Review modifier: override border tint when review status is notable */
.e2d-3dpoq-combined-status[data-review-status="pending_review"] {
  border-color: rgba(245, 158, 11, 0.4);
}
.e2d-3dpoq-combined-status[data-review-status="rejected"] {
  border-color: rgba(239, 68, 68, 0.4);
}
.e2d-3dpoq-combined-status[data-review-status="blocked"] {
  border-color: rgba(127, 29, 29, 0.4);
}

/* ── Production stage badge (future DOM: data-production-stage) ───── */
.e2d-3dpoq-production-stage {
  --stage-bg: rgba(148, 163, 184, 0.14);
  --stage-fg: #64748b;
  --stage-border: rgba(148, 163, 184, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--stage-border);
  background: var(--stage-bg);
  color: var(--stage-fg);
  font-size: 12px;
  font-weight: 700;
}
.e2d-3dpoq-production-stage::before { content: "◯"; }

.e2d-3dpoq-production-stage[data-production-stage="printing"] {
  --stage-bg: rgba(59, 130, 246, 0.14);
  --stage-fg: #1d4ed8;
  --stage-border: rgba(59, 130, 246, 0.25);
}
.e2d-3dpoq-production-stage[data-production-stage="printing"]::before     { content: "🖨"; }

.e2d-3dpoq-production-stage[data-production-stage="post_processing"] {
  --stage-bg: rgba(249, 115, 22, 0.14);
  --stage-fg: #c2410c;
  --stage-border: rgba(249, 115, 22, 0.25);
}
.e2d-3dpoq-production-stage[data-production-stage="post_processing"]::before { content: "🛠"; }

.e2d-3dpoq-production-stage[data-production-stage="qc"] {
  --stage-bg: rgba(234, 179, 8, 0.16);
  --stage-fg: #a16207;
  --stage-border: rgba(234, 179, 8, 0.28);
}
.e2d-3dpoq-production-stage[data-production-stage="qc"]::before            { content: "🔍"; }

.e2d-3dpoq-production-stage[data-production-stage="packing"] {
  --stage-bg: rgba(6, 182, 212, 0.14);
  --stage-fg: #0e7490;
  --stage-border: rgba(6, 182, 212, 0.26);
}
.e2d-3dpoq-production-stage[data-production-stage="packing"]::before       { content: "📦"; }

.e2d-3dpoq-production-stage[data-production-stage="shipped"] {
  --stage-bg: rgba(124, 58, 237, 0.14);
  --stage-fg: #6d28d9;
  --stage-border: rgba(124, 58, 237, 0.25);
}
.e2d-3dpoq-production-stage[data-production-stage="shipped"]::before       { content: "🚚"; }

.e2d-3dpoq-production-stage[data-production-stage="closed"] {
  --stage-bg: rgba(16, 185, 129, 0.14);
  --stage-fg: #047857;
  --stage-border: rgba(16, 185, 129, 0.25);
}
.e2d-3dpoq-production-stage[data-production-stage="closed"]::before        { content: "✓"; }

/* ── Status row: main badge + note + review badge side-by-side ───── */
/* Wrapper span sits in the value column of the 34px/1fr grid row.  */
.e2d-3dpoq-status-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

/* ── review_status → CTA disable ─────────────────────────────────────
   rejected / blocked: 覆核阻擋主行為，不允許加入購物車。
   data-review-status is on the li, so this selector is:
     li[data-review-status="rejected"] > ... > button.--quote-order
   ─────────────────────────────────────────────────────────────────── */
.e2d-3dpoq-entry-quote-row[data-review-status="rejected"]
  .e2d-3dpoq-entry-history-action--quote-order,
.e2d-3dpoq-entry-quote-row[data-review-status="blocked"]
  .e2d-3dpoq-entry-history-action--quote-order {
  pointer-events: none;
  opacity: 0.45;
  background: rgba(148, 163, 184, 0.2);
  border-color: rgba(148, 163, 184, 0.25);
  color: #64748b;
  box-shadow: none;
}

/* ══════════════════════════════════════════════════════════════════════
   CTA 按鈕統一樣式（加到購物車 / 至購物車 / 查看訂單）
   ══════════════════════════════════════════════════════════════════════ */

/* 共用基底 */
.e2d-3dpoq-entry-history-action--go-cart,
.e2d-3dpoq-entry-history-action--quote-order,
.e2d-3dpoq-entry-order-list .e2d-3dpoq-link-button--secondary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 16px !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(0, 0, 0, 0) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

/* 至購物車 — 橘色，無陰影 */
.e2d-3dpoq-entry-history-action--go-cart {
  background-image: linear-gradient(135deg, #f97316, #fb923c) !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
}

.e2d-3dpoq-entry-history-action--go-cart:hover {
  background-image: none !important;
  background-color: #ffffff !important;
  color: #f97316 !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
  border: 1px solid #f97316 !important;
}

/* 加到購物車 — 綠色，無陰影 */
.e2d-3dpoq-entry-history-action--quote-order:not([disabled]):not([aria-disabled="true"]) {
  background-image: linear-gradient(135deg, #0f766e, #14b8a6) !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
}

.e2d-3dpoq-entry-history-action--quote-order:not([disabled]):not([aria-disabled="true"]):hover {
  background-image: none !important;
  background-color: #ffffff !important;
  color: #0f766e !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
  border: 1px solid #0f766e !important;
}

/* 查看訂單 — 紅色，無陰影 */
.e2d-3dpoq-entry-order-list .e2d-3dpoq-link-button--secondary {
  background-image: linear-gradient(135deg, #dc2626, #ef4444) !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
}

.e2d-3dpoq-entry-order-list .e2d-3dpoq-link-button--secondary:hover {
  background-image: none !important;
  background-color: #ffffff !important;
  color: #dc2626 !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
  border: 1px solid #dc2626 !important;
}

/* 查看訂單 SVG 文件圖示 */
.e2d-3dpoq-entry-order-list .e2d-3dpoq-link-button--secondary::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
