.pc-main {
  box-sizing: border-box;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 14px 16px 28px;
  color: #2b1e16;
  background: #fbf6ec;
}

.pc-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.pc-header h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  color: #8f1d14;
  letter-spacing: 0.02em;
}

.pc-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6b5340;
  font-variant-numeric: tabular-nums;
}

.pc-gz-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3e6c8;
  border: 1px solid #d7b676;
  color: #7c4d0f;
  font-weight: 600;
}

.pc-controls {
  background: #fffdf8;
  border: 1px solid #e4d3b0;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.pc-preset-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.pc-preset-btn {
  min-height: 44px;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid #dfc89c;
  background: #fbf6ec;
  color: #4f3828;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.pc-preset-btn.is-active {
  background: #b5281c;
  border-color: #b5281c;
  color: #fffaf0;
}

.pc-input-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pc-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pc-label {
  font-size: 12px;
  color: #705844;
  font-weight: 600;
}

.pc-field input,
.pc-field select {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #d9c398;
  background: #fff;
  color: #2b1e16;
}

.pc-hero-card {
  background: linear-gradient(155deg, #fffdf8 0%, #f8eed7 100%);
  border: 1.5px solid #c9962c;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(139, 89, 25, 0.08);
}

.pc-hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pc-hero-info {
  flex: 1 1 auto;
  min-width: 0;
}

.pc-hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #b5281c;
  background: rgba(181, 40, 28, 0.1);
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.pc-hero-dir {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  color: #b5281c;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

.pc-hero-sub {
  margin-top: 4px;
  font-size: 14px;
  color: #6b4e2e;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pc-scene-tip {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #3d2c1e;
}

.pc-inline-alert {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff3dd;
  border: 1px solid #e0a84b;
  color: #7c4408;
  font-size: 13px;
  line-height: 1.45;
}

.pc-compass-wrap {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

.pc-compass-svg {
  display: block;
  width: 152px;
  height: 152px;
}

.pc-c-lbl {
  font-size: 13px;
  font-weight: 700;
  fill: #6e4517;
}

.pc-c-sub {
  font-size: 10px;
  fill: #8d6d47;
}

.pc-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.pc-stat-item {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #e5d2aa;
  border-radius: 10px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pc-stat-k {
  font-size: 12px;
  color: #7a6049;
}

.pc-stat-v {
  font-size: 14px;
  font-weight: 700;
  color: #2b1e16;
  font-variant-numeric: tabular-nums;
}

.pc-copy-btn {
  margin-top: 14px;
  width: 100%;
  min-height: 46px;
  border: none;
  border-radius: 12px;
  background: #b5281c;
  color: #fffaf0;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.pc-copy-feedback {
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  color: #1f6b3b;
  font-weight: 600;
}

.pc-shichen-sec {
  background: #fffdf8;
  border: 1px solid #e4d3b0;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
}

.pc-sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.pc-sec-head h2 {
  margin: 0;
  font-size: 17px;
  color: #6d2217;
}

.pc-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pc-filter-btn {
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #dfc89c;
  background: #fbf6ec;
  color: #4f3828;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.pc-filter-btn.is-active {
  background: #7c4d0f;
  border-color: #7c4d0f;
  color: #fffaf0;
}

.pc-hour-detail {
  margin: 0 0 12px;
  padding: 9px 11px;
  border-radius: 9px;
  background: #f9f2e1;
  font-size: 13px;
  line-height: 1.5;
  color: #4f3828;
}

.pc-shichen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.pc-hour-card {
  text-align: left;
  min-height: 44px;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid #e6d6b5;
  background: #fffcf5;
  color: #2b1e16;
  cursor: pointer;
}

.pc-hour-card.is-selected {
  border-color: #b5281c;
  background: #fff2ef;
  box-shadow: 0 0 0 1px #b5281c;
}

.pc-hour-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.pc-hour-name {
  font-size: 14px;
  font-weight: 700;
}

.pc-hour-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}

.pc-hour-badge.is-gold {
  background: #f9e2b3;
  color: #7f4700;
}

.pc-hour-badge.is-good {
  background: #e3f2e7;
  color: #1c6434;
}

.pc-hour-badge.is-warn {
  background: #fbe4e2;
  color: #9e1f15;
}

.pc-hour-badge.is-normal {
  background: #f1eadc;
  color: #6b5844;
}

.pc-hour-dir {
  font-size: 14px;
  font-weight: 700;
  color: #8f1d14;
}

.pc-hour-range {
  margin-top: 2px;
  font-size: 12px;
  color: #7a6652;
  font-variant-numeric: tabular-nums;
}

.pc-annual-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f5ebd4;
  border: 1px solid #dec695;
  font-size: 14px;
  margin-bottom: 14px;
}

.pc-annual-tag {
  padding: 2px 8px;
  border-radius: 6px;
  background: #b8860b;
  color: #fffaf0;
  font-size: 12px;
  font-weight: 700;
}

.pc-annual-text {
  font-weight: 600;
  color: #4b3319;
}

.pc-related {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.pc-related-title {
  font-size: 13px;
  font-weight: 700;
  color: #6b5340;
}

.pc-related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pc-link-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #dcc495;
  background: #fffdf8;
  color: #7c2419;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.pc-footnote {
  font-size: 12px;
  line-height: 1.5;
  color: #7a6652;
  border-top: 1px dashed #dfc99b;
  padding-top: 10px;
}

@media (max-width: 640px) {
  .pc-input-grid {
    grid-template-columns: 1fr;
  }
  .pc-hero-flex {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .pc-compass-wrap {
    margin-bottom: 4px;
  }
  .pc-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pc-shichen-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
