.export-card-mock {
  position: fixed;
  top: 0;
  left: -10000px;
  z-index: -1;
  width: 820px;
  padding: 22px;
  pointer-events: none;
}
.export-card-frame {
  box-sizing: border-box;
  width: 100%;
  padding: 34px 38px;
  border: 1px solid rgba(121,180,198,.65);
  outline: 1px solid rgba(121,180,198,.18);
  outline-offset: 7px;
  background:
    radial-gradient(ellipse at 92% 5%, rgba(121,180,198,.13), transparent 34%),
    linear-gradient(145deg, #0d1318, #080a0c 68%);
  color: #d7e0e4;
  font-family: "Inter", "Segoe UI", "Microsoft YaHei", sans-serif;
  box-shadow: 0 18px 60px rgba(0,0,0,.4);
}
.export-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.export-card-org {
  color: #dfe9ed;
  font-size: 15px;
  letter-spacing: .14em;
}
.export-card-en {
  margin-top: 6px;
  color: #71838b;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 8px;
  letter-spacing: .17em;
}
.export-card-classification {
  flex: none;
  padding: 7px 10px;
  border: 1px solid rgba(194,160,106,.55);
  color: #d3b77f;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 9px;
  letter-spacing: .1em;
}
.export-card-rule {
  height: 1px;
  margin: 24px 0;
  background: linear-gradient(90deg, rgba(121,180,198,.78), rgba(121,180,198,.08));
}
.export-card-name {
  margin: 0;
  color: #edf4f6;
  font-size: 31px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .08em;
  overflow-wrap: anywhere;
}
.export-card-generated {
  margin-top: 12px;
  color: #7e8d93;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 9px;
  letter-spacing: .06em;
}
.export-card-content { margin-top: 28px; }
.export-card-content h2 {
  margin: 0 0 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(150,175,185,.2);
  color: #a9cbd5;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .14em;
}
.export-card-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.export-card-field {
  padding: 12px 14px;
  border: 1px solid rgba(150,175,185,.13);
  background: rgba(255,255,255,.018);
  color: #c5d0d4;
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.export-card-label, .export-nested-label {
  margin-bottom: 5px;
  color: #8299a1;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 8px;
  letter-spacing: .12em;
}
.export-value-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-left: 1px solid rgba(121,180,198,.35);
  background: rgba(0,0,0,.16);
}
.export-nested-field { min-width: 0; }
.export-nested-label { margin-bottom: 2px; color: #70858d; }
.export-value-list { margin: 0; padding-left: 20px; }
.export-value-list li { padding: 2px 0; }
.export-value-list li::marker { color: #79b4c6; }
.export-card-foot {
  margin-top: 26px;
  padding-top: 12px;
  border-top: 1px solid rgba(150,175,185,.13);
  color: #56666d;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 7px;
  letter-spacing: .15em;
  text-align: right;
}

@media (max-width: 768px) {
  .export-card-mock {
    box-sizing: border-box;
    width: 600px;
    padding: 18px;
  }
  .export-card-frame {
    padding: 28px 30px;
  }
  .export-card-field {
    padding: 10px 12px;
  }
}

.export-preview-modal[hidden],
.export-toast[hidden] {
  display: none !important;
}
.export-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 20px;
}
.export-preview-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(5px);
}
.export-preview-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(680px, 100%);
  max-height: 90vh;
  max-height: 90dvh;
  padding: 24px;
  overflow-y: auto;
  border: 1px solid rgba(121,180,198,.48);
  background: linear-gradient(180deg, #0c1014, #07080a);
  box-shadow: 0 24px 80px rgba(0,0,0,.72), inset 0 1px 0 rgba(121,180,198,.12);
}
.export-preview-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(150,175,185,.22);
  background: rgba(7,8,10,.8);
  color: #a9cbd5;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.export-preview-title {
  margin: 0 48px 16px;
  color: #dceef4;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .12em;
  text-align: center;
}
.export-preview-image-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 0;
}
.export-preview-image {
  display: block;
  width: auto;
  max-width: min(90vw, 600px);
  max-height: 68vh;
  object-fit: contain;
  border: 1px solid rgba(121,180,198,.35);
  background: #080b0e;
  -webkit-touch-callout: default;
  user-select: auto;
}
.export-preview-hint {
  margin: 18px 0 12px;
  color: #e6a23c;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: .06em;
  text-align: center;
}
.export-preview-close-button {
  min-width: 140px;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid rgba(121,180,198,.45);
  background: rgba(121,180,198,.1);
  color: #dceef4;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  cursor: pointer;
}
.export-toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 1250;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(560px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 14px 16px;
  transform: translateX(-50%);
  border: 1px solid rgba(194,160,106,.55);
  background: rgba(12,16,20,.97);
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
  color: #e4d4b5;
  font-size: 13px;
  line-height: 1.7;
}
.export-toast button {
  flex: none;
  width: 32px;
  height: 32px;
  margin: -6px -8px 0 0;
  border: 0;
  background: transparent;
  color: #c2a06a;
  font-size: 20px;
  cursor: pointer;
}
@media (max-width: 768px) {
  .export-preview-modal {
    padding: 12px;
  }
  .export-preview-panel {
    width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    padding: 18px 14px;
  }
  .export-preview-image {
    max-width: 90vw;
    max-height: 68vh;
  }
  .export-preview-hint {
    font-size: 13px;
  }
  .export-preview-close-button {
    width: 100%;
    min-height: 44px;
  }
  .export-toast {
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
  }
}
