/* 青禾 0.9.7 shared shell. Loaded after styles.css so it can safely
   tighten the shared navigation without changing page-specific layouts. */
.qh-shell-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.user-topbar:not(.qh-shell-ready)::after {
  content: '';
  flex: 0 0 154px;
  min-height: 38px;
}
.user-topbar .qh-shell-actions {
  min-width: 154px;
  justify-content: flex-end;
}
.growth-home .qh-header-actions { min-width: 225px; justify-content: flex-end; }
.qh-account-link,
.qh-update-trigger {
  min-height: 38px;
  border: 1px solid var(--line, #e5e1d9);
  border-radius: 999px;
  background: var(--card, #fff);
  color: var(--ink, #23211d);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 11px;
  font: inherit;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.qh-account-link:hover,
.qh-update-trigger:hover { border-color: var(--brand, #176b52); color: var(--brand, #176b52); }
.qh-update-trigger { position: relative; padding-inline: 10px; }
.qh-update-trigger .qh-bell { font-size: 16px; line-height: 1; }
.qh-update-trigger .qh-unread-dot {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c63b31;
  box-shadow: 0 0 0 2px var(--card, #fff);
}
.qh-nav-more { position: relative; }
.qh-nav-more > summary {
  min-height: 40px;
  padding: 9px 10px;
  border-radius: var(--r-sm, 6px);
  color: var(--muted, #716d65);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.qh-nav-more > summary::-webkit-details-marker { display: none; }
.qh-nav-more > summary::after { content: '⌄'; margin-left: 5px; font-size: 12px; }
.qh-nav-more[open] > summary,
.qh-nav-more > summary:hover { color: var(--ink, #23211d); background: #f5f5f4; }
.qh-nav-more-menu {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  z-index: 70;
  display: grid;
  min-width: 146px;
  padding: 6px;
  gap: 2px;
  border: 1px solid var(--line-strong, #d9d3c9);
  border-radius: var(--r-sm, 6px);
  background: var(--card, #fff);
  box-shadow: var(--shadow-pop, 0 10px 30px rgba(20,20,20,.12));
}
.qh-nav-more-menu a { width: auto !important; min-height: 36px !important; padding: 8px 10px !important; }
.qh-release-dialog {
  width: min(560px, calc(100vw - 28px));
  max-height: min(720px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-strong, #d9d3c9);
  border-radius: 12px;
  background: var(--card, #fff);
  color: var(--ink, #23211d);
  box-shadow: 0 20px 70px rgba(20, 24, 20, .22);
}
.qh-release-dialog::backdrop { background: rgba(19, 27, 22, .34); }
.qh-release-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 20px 20px 12px; border-bottom: 1px solid var(--line, #e5e1d9); }
.qh-release-dialog-head h2 { margin: 0; font-size: 19px; }
.qh-release-dialog-head p { margin: 5px 0 0; color: var(--muted, #716d65); font-size: 12px; }
.qh-release-close { min-width: 38px; min-height: 38px; border: 0; border-radius: 8px; background: transparent; color: var(--muted, #716d65); cursor: pointer; font-size: 22px; line-height: 1; }
.qh-release-close:hover { background: var(--bg, #f4f3ef); color: var(--ink, #23211d); }
.qh-release-body { padding: 14px 20px 20px; overflow: auto; }
.qh-release-item { padding: 12px 0; border-bottom: 1px dashed var(--line, #e5e1d9); }
.qh-release-item:last-child { border-bottom: 0; }
.qh-release-item h3 { margin: 0 0 5px; font-size: 14px; }
.qh-release-item p { margin: 0; color: var(--muted, #716d65); font-size: 13px; line-height: 1.65; }
.qh-release-item a { color: var(--brand, #176b52); }
.qh-release-status { display: inline-flex; margin-left: 7px; padding: 2px 6px; border-radius: 999px; background: #fff3df; color: #8a5b16; font-size: 11px; vertical-align: middle; }
@media (max-width: 1100px) {
  .user-topbar:not(.qh-shell-ready)::after { flex-basis: 85px; }
  .user-topbar .qh-shell-actions { min-width: 85px; order: 1; }
  .qh-shell-actions { gap: 5px; }
  .qh-account-link { padding-inline: 9px; }
  .qh-update-trigger { width: 40px; padding-inline: 0; }
  .qh-update-trigger .qh-update-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .qh-nav-more > summary { padding: 10px 14px; }
  .qh-nav-more-menu { position: static; min-width: 0; margin: 0 4px 4px 10px; box-shadow: none; border-color: var(--line, #e5e1d9); }
}
@media (max-width: 520px) {
  .user-topbar:not(.qh-shell-ready)::after { flex-basis: 85px; }
  .qh-account-link { width: 40px; padding-inline: 0; font-size: 0; }
  .qh-account-link::before { content: '◉'; font-size: 15px; }
  .qh-release-dialog-head { padding-inline: 15px; }
  .qh-release-body { padding-inline: 15px; }
}

.qh-release-dialog { width: min(680px, calc(100vw - 28px)); overflow: auto; }
.qh-release-dialog-head { position: sticky; top: 0; background: #fbfcf7; z-index: 1; }
.qh-release-highlights { display: grid; gap: 12px; margin: 16px 0; }
.qh-release-highlight { padding: 16px; border: 1px solid #dce4d5; border-radius: 12px; background: #f3f7ee; }
.qh-release-highlight:nth-child(2) { background: #f9f3eb; }
.qh-release-highlight:nth-child(3) { background: #f0f4f8; }
.qh-release-item h3 { font-size: 17px; margin: 6px 0; }
.qh-release-kind { font-size: 11px; color: #617454; letter-spacing: .05em; }
.qh-release-item > a { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; }
.qh-release-more > summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.qh-unread-dot { width: 9px; height: 9px; box-shadow: 0 0 0 3px #fff; background: #da5144; }
