/* Idea detail: one layout and one stylesheet, sharing the public navigation shell. */
body:has(#view-idea-detail.active) {
  --idea-ink: #20273b;
  --idea-text: #56627a;
  --idea-muted: #8a94a8;
  --idea-line: #e4e7f2;
  --idea-accent: #6258e8;
  background: #f8f9fd;
}
body:has(#view-idea-detail.active) .bg { display: none !important; }
html body:has(#view-idea-detail.active) #app {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 0 48px !important;
  gap: 0 !important;
  background: #f8f9fd !important;
}
html body:has(#view-idea-detail.active) #main-topbar {
  top: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--idea-line) !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}
html body:has(#view-idea-detail.active) #main-topbar .plaza-redesign-topbar-inner,
html body #app #view-idea-detail {
  width: min(calc(100% - var(--plaza-shell-gutter,48px)),var(--plaza-shell-max,1480px)) !important;
  max-width: var(--plaza-shell-max,1480px) !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
  box-sizing: border-box;
}
#view-idea-detail {
  color: var(--idea-ink);
  font-family: var(--plaza-font,Inter,"PingFang SC","Microsoft YaHei",sans-serif) !important;
  padding-block: 24px 60px !important;
  font-size: 14px;
  line-height: 1.7;
}
#view-idea-detail [hidden] { display: none !important; }
#view-idea-detail button { font-family: inherit; cursor: pointer; }
#view-idea-detail button:disabled { cursor: default; }
.idea-page { display: grid; gap: 24px; }
.idea-back { justify-self: start; border: 0; padding: 0; background: transparent; color: #7573ad; font-size: 13px; font-weight: 500; }
.idea-back:hover { color: var(--idea-accent); }
.idea-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 32px 34px;
  background: linear-gradient(115deg,#fff 50%,#f4f3ff);
  border: 1px solid var(--idea-line);
  border-radius: 16px;
}
.idea-hero-copy { min-width: 0; flex: 1; }
.idea-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; color: var(--idea-muted); }
.idea-type-label { color: #8a80b4; padding-right: 12px; border-right: 1px solid #dedfec; }
.idea-status { display: inline-flex; padding: 3px 9px; background: #eeecff; color: #6a59d4; border: 1px solid #e4defe; border-radius: 5px; font-size: 11px; line-height: 1.6; }
#view-idea-detail #id-title { max-width: 1000px; color: var(--idea-ink); font-family: inherit; font-size: clamp(26px,2vw,36px); line-height: 1.45; font-weight: 700; letter-spacing: -.5px; margin: 18px 0 14px; overflow-wrap: anywhere; }
#view-idea-detail #id-desc { max-width: 850px; color: #6a7489; font-size: 15px; font-weight: 400; line-height: 1.9; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.idea-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 25px; }
#view-idea-detail .idea-actions .btn { border-radius: 8px; padding: 10px 17px; font-size: 13px; min-height: 42px; font-weight: 600; box-shadow: none; }
#view-idea-detail .btn-primary { background: var(--idea-accent); border-color: var(--idea-accent); color: white; }
#view-idea-detail .btn-primary:hover:not(:disabled) { background: #5248cf; border-color: #5248cf; }
#view-idea-detail .btn-soft { color: #6961cc; border: 1px solid #deddf1; background: #f5f4ff; }
#view-idea-detail .btn-ghost { color: #767891; background: transparent; border-color: transparent; }
.idea-cover { flex: 0 0 clamp(220px,22vw,330px); aspect-ratio: 1.7; border-radius: 11px; overflow: hidden; background: #eceef6; }
.idea-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.idea-layout { display: grid; grid-template-columns: minmax(0,1fr) clamp(280px,26%,360px); gap: 24px; align-items: start; }
.idea-main,.idea-side { display: grid; gap: 20px; min-width: 0; }
.idea-card { border: 1px solid var(--idea-line); border-radius: 13px; background: #fff; padding: 26px 29px; min-width: 0; }
#view-idea-detail .idea-card h2 { font-family: inherit; font-weight: 650; font-size: 17px; color: #29354e; line-height: 1.5; margin: 0 0 17px; }
.idea-need p { font-size: 15px; color: #536079; line-height: 2; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.idea-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; width: 100%; }
.idea-section-heading>span { font-size: 12px; color: #7d71bf; text-align: right; flex: 0 1 auto; }
#view-idea-detail .idea-progress {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 0;
}
#view-idea-detail .idea-progress > * {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  box-sizing: border-box;
  flex: 0 0 auto;
}
#view-idea-detail .idea-progress > .idea-section-heading {
  display: flex;
}
#view-idea-detail #id-focus-body {
  display: block !important;
  font-size: 14px;
  line-height: 1.9;
  color: #788298;
  margin: 0;
  clear: both;
}
#view-idea-detail #id-focus-list.idea-steps,
#view-idea-detail .idea-steps {
  display: grid !important;
  grid-template-columns: repeat(var(--idea-step-count, 5), minmax(0, 1fr));
  list-style: none;
  width: 100% !important;
  max-width: none !important;
  margin: 23px 0 0;
  padding: 18px 12px;
  border-radius: 9px;
  background: #f7f8fd;
  gap: 8px;
  float: none !important;
  clear: both;
  align-self: stretch;
  box-sizing: border-box;
}
#view-idea-detail .idea-steps li {
  position: relative;
  display: flex !important;
  flex: none !important;
  flex-direction: column !important;
  align-items: center;
  gap: 9px;
  width: auto !important;
  min-width: 0;
  text-align: center;
  color: #9199ae;
}
#view-idea-detail .idea-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 1px;
  background: #e1e4f1;
  top: 13px;
}
#view-idea-detail .idea-steps li>span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  background: #edf0f8;
  border: 1px solid #e0e4f0;
  border-radius: 50%;
  color: #969fb5;
  font-size: 11px;
  font-weight: 500;
  z-index: 1;
}
#view-idea-detail .idea-steps li>strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}
#view-idea-detail .idea-steps li.is-done>span { color: #fff; background: #8b82e8; border-color: #8b82e8; }
#view-idea-detail .idea-steps li.is-done>strong { color: #5a52c4; }
#view-idea-detail .idea-steps li.is-done:not(:last-child)::after { background: #c4bef2; }
#view-idea-detail .idea-steps li.is-current>span,
#view-idea-detail .idea-steps li[aria-current=step]>span {
  background: var(--idea-accent);
  border-color: var(--idea-accent);
  color: white;
  box-shadow: 0 0 0 4px #ebe8fe;
}
#view-idea-detail .idea-steps li.is-current>strong,
#view-idea-detail .idea-steps li[aria-current=step]>strong {
  color: var(--idea-accent);
  font-weight: 600;
}
.idea-person { display: flex; align-items: center; gap: 11px; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; color: #48546f; }
.idea-person>span:not(.p-avatar):not(.idea-person-arrow):not(#id-author-avatar) { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
#view-idea-detail .idea-person .p-avatar { display: inline-flex; width: 39px; height: 39px; min-width: 39px; border-radius: 50%; font-size: 14px; margin: 0; }
#id-author-avatar { display: flex; flex-shrink: 0; }
#view-idea-detail .idea-person strong { font-size: 14px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.idea-person small { font-size: 11px; color: #929bb0; line-height: 1.7; }
.idea-person-arrow { color: #a19abd; font-size: 14px; margin-left: auto; flex-shrink: 0; }
.idea-person:hover strong,.idea-person:hover .idea-person-arrow { color: var(--idea-accent); }
.idea-person:disabled .idea-person-arrow { display: none; }
.idea-publish-date { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid #eff0f6; color: #9ca4b6; font-size: 11px; }
#view-idea-detail #id-team-hint { font-size: 12px; line-height: 1.9; color: #909aaf; margin: 0; }
#view-idea-detail .people-list { list-style: none; margin: 10px 0 0; padding: 0; }
#view-idea-detail .people-list:empty { display: none; }
#view-idea-detail .people-list li { display: block; padding: 12px 0 0; margin: 0; }
.idea-team .pd-join-requests { border-top: 1px solid var(--idea-line); padding-top: 17px; margin-top: 17px; }
.idea-team .pd-join-requests-title { font-size: 13px; margin: 0 0 10px; }
.idea-team .pd-join-request-list { margin: 0; padding: 0; list-style: none; }
.idea-team .pd-join-request-item { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 0; }
.idea-team .pd-join-request-item>div:not(.pd-join-request-actions) { flex: 1; min-width: 0; }
.idea-team .pd-join-request-item small { display: block; font-size: 11px; overflow-wrap: anywhere; color: #9099ae; }
.idea-team .pd-join-request-actions { display: flex; gap: 8px; margin-left: auto; }
#view-idea-detail .pd-join-request-actions .btn { font-size: 11px; padding: 5px 10px; border-radius: 6px; box-shadow: none; }
#view-idea-detail button:focus-visible { outline: 2px solid #a399ed; outline-offset: 4px; }
@media(max-width:1000px) {
  .idea-hero { padding: 26px; gap: 25px; }
  .idea-cover { flex-basis: 230px; }
  .idea-layout { grid-template-columns: minmax(0,1fr) 270px; gap: 18px; }
  .idea-card { padding: 23px; }
}
@media(max-width:760px) {
  .idea-page { gap: 18px; }
  .idea-hero { align-items: flex-start; padding: 23px; gap: 18px; }
  .idea-cover { flex-basis: 130px; aspect-ratio: 1; }
  #view-idea-detail #id-title { font-size: 25px; margin-top: 15px; }
  .idea-hero-meta { font-size: 10px; gap: 7px; }
  #id-position { display: none; }
  .idea-actions { gap: 6px; margin-top: 20px; }
  #view-idea-detail .idea-actions .btn { padding: 8px 11px; font-size: 12px; min-height: 37px; }
  .idea-layout { grid-template-columns: minmax(0,1fr); }
  .idea-side { grid-template-columns: 1fr 1fr; gap: 15px; }
  .idea-card { padding: 22px; }
}
@media(max-width:480px) {
  #view-idea-detail { padding-top: 19px !important; }
  .idea-hero { flex-direction: column-reverse; padding: 21px; }
  .idea-cover { width: 100%; flex-basis: auto; height: 120px; }
  #view-idea-detail #id-title { font-size: 25px; }
  .idea-side { grid-template-columns: minmax(0,1fr); }
  .idea-steps { padding-inline: 4px; }
  .idea-steps li>strong { font-size: 10px; }
  .idea-section-heading { flex-wrap: wrap; gap: 0 12px; margin-bottom: 10px; }
  .idea-section-heading h2 { margin-bottom: 7px !important; }
  .idea-need p { font-size: 14px; }
}
