.dpc-card {
  background-color: #ffffff;
  border: 2px solid #e7dfd3;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(40, 30, 20, 0.06);
  color: #1e1915;
}
.dpc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 2px solid #f0e8dc;
  margin-bottom: 20px;
}
.dpc-mode-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  background-color: #fbfaf6;
  border: 2px solid #e7dfd3;
  border-radius: 14px;
  padding: 4px;
}
.dpc-mode-btn {
  appearance: none;
  border: none;
  background-color: #fbfaf6;
  color: #3a2818;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
}
.dpc-mode-btn:hover { background-color: #fff4ec; color: #1e1915; }
.dpc-mode-btn.is-active { background-color: #2842d6; color: #ffffff; }
.dpc-sample-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.dpc-sample-btn {
  appearance: none;
  background-color: #fff8ee;
  color: #3a2818;
  border: 2px solid #dfd3c2;
  border-radius: 999px;
  min-height: 42px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.dpc-sample-btn:hover { background-color: #f6ead8; border-color: #c8b69e; }
.dpc-sample-tag { font-size: 13px; font-weight: 600; color: #584c41; }
.dpc-form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dpc-field { display: flex; flex-direction: column; gap: 6px; }
.dpc-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dpc-label { font-size: 13px; font-weight: 700; color: #3a2818; }
.dpc-opt { font-weight: 500; color: #584c41; }
.dpc-check-inline { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: #3a2818; cursor: pointer; }
.dpc-input {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  background-color: #fbfaf6;
  border: 2px solid #dfd3c2;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #1e1915;
}
.dpc-input:disabled { background-color: #f2ede4; color: #584c41; cursor: not-allowed; }
.dpc-city-wrap { position: relative; }
.dpc-city-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background-color: #ffffff;
  border: 2px solid #d4c7b5;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(40, 30, 20, 0.08);
  max-height: 240px;
  overflow-y: auto;
  z-index: 30;
}
.dpc-city-opt { padding: 8px 10px; border-radius: 8px; font-size: 14px; color: #1e1915; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.dpc-city-opt:hover { background-color: #eef1ff; color: #1d32b0; }
.dpc-city-meta { font-size: 12px; color: #584c41; white-space: nowrap; }
.dpc-coords-drawer { margin-top: 12px; background-color: #fbfaf6; border: 1px solid #e7dfd3; border-radius: 12px; padding: 10px 14px; }
.dpc-coords-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 600; color: #584c41; cursor: pointer; list-style: none; }
.dpc-coords-summary::-webkit-details-marker { display: none; }
.dpc-coords-edit { color: #2842d6; font-weight: 700; }
.dpc-coords-grid { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e7dfd3; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dpc-actions-row { margin-top: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.dpc-btn-calc {
  appearance: none;
  background-color: #2842d6;
  color: #ffffff;
  border: 2px solid #2842d6;
  border-radius: 14px;
  min-height: 48px;
  padding: 10px 24px;
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}
.dpc-btn-calc:hover { background-color: #1d32b0; border-color: #1d32b0; }
.dpc-preset-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dpc-chip {
  appearance: none;
  background-color: #fff8ee;
  color: #3a2818;
  border: 1px solid #dfd3c2;
  border-radius: 999px;
  min-height: 36px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.dpc-chip:hover { background-color: #f5ead9; border-color: #c5b39b; }
.dpc-privacy-pill { margin-left: auto; font-size: 13px; font-weight: 600; color: #584c41; }
.dpc-error-msg { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background-color: #fff3f1; border: 1px solid #f2c4bc; color: #b02315; font-size: 14px; font-weight: 600; }

.dpc-results { margin-top: 24px; padding-top: 24px; border-top: 2px solid #f0e8dc; display: flex; flex-direction: column; gap: 24px; }
.dpc-astro-strip { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 16px; background-color: #fff9f2; border: 2px solid #e7dfd3; border-radius: 16px; }
.dpc-stat-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background-color: #ffffff; border: 1px solid #dfd3c2; border-radius: 10px; font-size: 13px; color: #1e1915; }
.dpc-stat-pill strong { color: #2842d6; font-weight: 700; }

/* V2: Dominant Archetype & Aura Card */
.dpc-archetype-card {
  background: linear-gradient(180deg, #fff4ec 0%, #fff9f2 100%);
  border: 2px solid #e4b976;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(40, 30, 20, 0.06);
}
.dpc-arch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e7dfd3;
}
.dpc-arch-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}
.dpc-arch-glyph-orb {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background-color: #2842d6;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(40, 30, 20, 0.08);
}
.dpc-arch-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #1d32b0;
  background-color: #eef1ff;
  border: 1px solid #c9d3fb;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 4px;
}
.dpc-arch-headline {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #1e1915;
  margin: 0;
}
.dpc-arch-sub {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #584c41;
}
.dpc-arch-share-box {
  text-align: right;
  background-color: #ffffff;
  border: 2px solid #e7dfd3;
  border-radius: 16px;
  padding: 10px 16px;
}
.dpc-arch-pct {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #2842d6;
  line-height: 1.1;
  display: block;
}
.dpc-arch-pct-lbl {
  font-size: 12px;
  font-weight: 700;
  color: #584c41;
}
.dpc-aura-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.dpc-aura-pill {
  background-color: #ffffff;
  border: 1px solid #dfd3c2;
  border-radius: 14px;
  padding: 12px 14px;
}
.dpc-aura-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #2842d6;
  margin-bottom: 4px;
}
.dpc-aura-val {
  font-size: 14px;
  font-weight: 600;
  color: #1e1915;
  line-height: 1.45;
}
.dpc-sig-box {
  margin-top: 16px;
  background-color: #ffffff;
  border: 2px solid #c9d3fb;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.dpc-sig-main {
  flex: 1;
  min-width: 240px;
}
.dpc-sig-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.dpc-sig-name {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1e1915;
}
.dpc-sig-tag {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background-color: #f1faf5;
  border: 1px solid #bce2cd;
  color: #0b663a;
}
.dpc-sig-tag.is-tiebroken {
  background-color: #eef1ff;
  border-color: #c9d3fb;
  color: #1d32b0;
}
.dpc-sig-reason {
  margin: 0;
  font-size: 13px;
  color: #584c41;
  line-height: 1.5;
}

/* V2: AI Unlock Demand Probe Card */
.dpc-probe-card {
  background-color: #fff9f2;
  border: 2px solid #dfd3c2;
  border-radius: 20px;
  padding: 24px;
}
.dpc-probe-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: #eef1ff;
  color: #1d32b0;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}
.dpc-probe-title {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 22px;
  margin: 0 0 8px;
  color: #1e1915;
}
.dpc-probe-free {
  margin: 0 0 14px;
  font-size: 15px;
  color: #1e1915;
  line-height: 1.6;
}
.dpc-probe-blur-wrap {
  position: relative;
  background-color: #ffffff;
  border: 1px solid #e7dfd3;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  overflow: hidden;
}
.dpc-probe-blurred {
  filter: blur(4.5px);
  user-select: none;
  pointer-events: none;
  font-size: 14px;
  color: #584c41;
}
.dpc-probe-blurred p { margin: 0 0 8px; }
.dpc-probe-lock-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  border: 2px solid #2842d6;
  color: #1d32b0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(40, 30, 20, 0.08);
}
.dpc-probe-btns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.dpc-unlock-btn {
  appearance: none;
  border-radius: 14px;
  min-height: 52px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.dpc-unlock-report {
  background-color: #2842d6;
  border: 2px solid #2842d6;
  color: #ffffff;
}
.dpc-unlock-report:hover { background-color: #1d32b0; border-color: #1d32b0; }
.dpc-unlock-soulmate {
  background-color: #0b7a46;
  border: 2px solid #0b7a46;
  color: #ffffff;
}
.dpc-unlock-soulmate:hover { background-color: #086036; border-color: #086036; }
.dpc-unlock-price {
  background-color: #ffffff;
  color: #1e1915;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.dpc-early-notice {
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  background-color: #ffffff;
  border: 2px solid #2842d6;
}
.dpc-early-text {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #1e1915;
}
.dpc-early-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dpc-compare-panel { background-color: #fbfaf6; border: 2px solid #c9d3fb; border-radius: 18px; padding: 20px; }
.dpc-compare-title { font-family: 'Fredoka', system-ui, sans-serif; font-size: 22px; margin: 0 0 8px; color: #1e1915; }
.dpc-compare-note { margin: 0 0 16px; font-size: 14px; color: #584c41; }
.dpc-compare-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dpc-compare-box { background-color: #ffffff; border: 2px solid #e7dfd3; border-radius: 14px; padding: 16px; }
.dpc-compare-box h4 { font-family: 'Fredoka', system-ui, sans-serif; font-size: 18px; margin: 0 0 10px; color: #1e1915; }
.dpc-compare-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.dpc-compare-list li { display: flex; justify-content: space-between; padding-bottom: 6px; border-bottom: 1px solid #f0e8dc; }
.dpc-podium-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.dpc-subhead { font-size: 24px; margin: 0; }
.dpc-btn-export {
  appearance: none;
  background-color: #0b7a46;
  color: #ffffff;
  border: 2px solid #0b7a46;
  border-radius: 14px;
  min-height: 44px;
  padding: 8px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.dpc-btn-export:hover { background-color: #086036; border-color: #086036; }
.dpc-export-toast { margin: -12px 0 0; padding: 10px 14px; border-radius: 12px; background-color: #f1faf5; border: 1px solid #bce2cd; color: #0b663a; font-size: 14px; font-weight: 600; }
.dpc-podium-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dpc-medal-card { background-color: #fbfaf6; border: 2px solid #e7dfd3; border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.dpc-medal-card.is-rank-1 { background-color: #fff9f2; border-color: #e4b976; box-shadow: 0 8px 24px rgba(40, 30, 20, 0.06); }
.dpc-medal-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dpc-rank-badge { padding: 4px 10px; border-radius: 999px; background-color: #fff8ee; border: 1px solid #dfd3c2; color: #3a2818; font-size: 12px; font-weight: 700; }
.dpc-medal-card.is-rank-1 .dpc-rank-badge { background-color: #2842d6; border-color: #2842d6; color: #ffffff; }
.dpc-elem-pill { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.dpc-elem-pill[data-elem="Fire"] { background-color: #fff3f1; border: 1px solid #f2c4bc; color: #b02315; }
.dpc-elem-pill[data-elem="Earth"] { background-color: #f1faf5; border: 1px solid #bce2cd; color: #0b663a; }
.dpc-elem-pill[data-elem="Air"] { background-color: #f0f5ff; border: 1px solid #bfd3fa; color: #174cb5; }
.dpc-elem-pill[data-elem="Water"] { background-color: #f6f2ff; border: 1px solid #d3c2fa; color: #552cb3; }
.dpc-planet-hero { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dpc-planet-name { font-family: 'Fredoka', system-ui, sans-serif; font-size: 24px; font-weight: 700; color: #1e1915; }
.dpc-planet-pct { font-family: 'Fredoka', system-ui, sans-serif; font-size: 26px; font-weight: 700; color: #2842d6; }
.dpc-planet-pos { font-size: 14px; font-weight: 600; color: #3a2818; }
.dpc-planet-traits { margin: 0; font-size: 14px; color: #584c41; line-height: 1.5; }
.dpc-bars-card, .dpc-balance-card { background-color: #fbfaf6; border: 2px solid #e7dfd3; border-radius: 18px; padding: 20px; }
.dpc-bars-header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.dpc-card-title { font-size: 20px; margin: 0; }
.dpc-bars-caption { font-size: 13px; color: #584c41; font-weight: 600; }
.dpc-bars-list { display: flex; flex-direction: column; gap: 10px; }
.dpc-bar-row { display: grid; grid-template-columns: 150px 1fr 130px 68px; align-items: center; gap: 12px; font-size: 14px; }
.dpc-bar-label { font-weight: 700; color: #1e1915; white-space: nowrap; }
.dpc-bar-track { height: 14px; background-color: #ede5d8; border-radius: 999px; overflow: hidden; }
.dpc-bar-fill { height: 100%; border-radius: 999px; }
.dpc-bar-fill[data-elem="Fire"] { background-color: #d93829; }
.dpc-bar-fill[data-elem="Earth"] { background-color: #16794b; }
.dpc-bar-fill[data-elem="Air"] { background-color: #1d5fd6; }
.dpc-bar-fill[data-elem="Water"] { background-color: #6b3fd4; }
.dpc-bar-fill[data-elem="Mode"] { background-color: #2842d6; }
.dpc-bar-pos { font-size: 13px; color: #584c41; text-align: right; white-space: nowrap; }
.dpc-bar-val { font-family: 'Fredoka', system-ui, sans-serif; font-weight: 700; font-size: 15px; color: #1e1915; text-align: right; }
.dpc-table-drawer { margin-top: 20px; padding-top: 16px; border-top: 1px solid #dfd3c2; }
.dpc-table-summary { font-size: 14px; font-weight: 700; color: #2842d6; cursor: pointer; list-style: none; }
.dpc-table-summary::-webkit-details-marker { display: none; }
.dpc-table-scroll { margin-top: 12px; overflow-x: auto; }
.dpc-score-table { width: 100%; border-collapse: collapse; background-color: #ffffff; border: 1px solid #dfd3c2; border-radius: 12px; font-size: 13px; }
.dpc-score-table th, .dpc-score-table td { padding: 9px 10px; text-align: left; border-bottom: 1px solid #eee6da; white-space: nowrap; }
.dpc-score-table th { background-color: #fff9f2; color: #3a2818; font-weight: 700; }
.dpc-balance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dpc-elem-bars { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.dpc-elem-row { display: grid; grid-template-columns: 100px 1fr 56px; align-items: center; gap: 10px; font-size: 14px; }

@media (max-width: 860px) {
  .dpc-form-grid, .dpc-coords-grid, .dpc-probe-btns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dpc-podium-grid, .dpc-probe-btns { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dpc-card, .dpc-archetype-card, .dpc-probe-card { padding: 16px; }
  .dpc-form-grid, .dpc-coords-grid, .dpc-compare-cols, .dpc-balance-grid, .dpc-aura-grid, .dpc-probe-btns { grid-template-columns: 1fr; }
  .dpc-btn-calc, .dpc-btn-export, .dpc-sample-btn, .dpc-unlock-btn { width: 100%; justify-content: center; }
  .dpc-unlock-btn { justify-content: space-between; }
  .dpc-arch-share-box { width: 100%; text-align: left; display: flex; align-items: baseline; gap: 10px; }
  .dpc-privacy-pill { margin-left: 0; }
  .dpc-bar-row { grid-template-columns: 118px 1fr 54px; }
  .dpc-bar-pos { display: none; }
}