/**
 * [INPUT]: 依赖 account-detail-app.css 的 A7 社区首页骨架、account-detail.ts 的业务表单语义、account-detail-features.css 的既有控件，以及 public/app-assets 的 APK 素材
 * [OUTPUT]: 提供可逆过渡的统一弹层外壳、祈愿与期物工作区、基础藏品、传承和设置面板的响应式视觉细节
 * [POS]: public 的账号详情通用弹层视觉层；社区活动内容由 account-detail-community.css 承接，本文件不定义首页主栅格或业务行为
 * [PROTOCOL]: 变更时更新此头部，然后检查 CLAUDE.md
 */

.shrine-modal-open {
  overflow: hidden;
}

.shrine-modal {
  padding: 20px;
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(24, 28, 39, 0.54);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: opacity 140ms var(--ease-out), visibility 0s linear 140ms;
}

.shrine-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.shrine-modal-sheet {
  width: min(100%, 680px);
  max-height: min(800px, calc(100dvh - 40px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(111, 122, 153, 0.18);
  border-radius: 8px;
  background: #fcfcff;
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  box-shadow: 0 18px 58px rgba(11, 15, 25, 0.3);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.shrine-modal.is-open .shrine-modal-sheet {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.shrine-modal-heading {
  min-height: 76px;
  padding: 22px 24px 17px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-bottom: 1px solid #e9eaf1;
}

.shrine-modal-heading h3 {
  margin: 0;
  color: #1e2129;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.1;
}

.shrine-modal-heading h3:focus {
  outline: none;
}

.shrine-modal-content {
  min-height: 0;
  padding: 20px 24px;
  overflow: auto;
}

.shrine-modal-footer {
  padding: 14px 24px 20px;
  flex: 0 0 auto;
  border-top: 1px solid #e9eaf1;
}

.shrine-close {
  width: 100%;
  min-height: 46px;
  color: #2d313c;
  border: 1px solid #e1e3eb;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-family: var(--font-display);
  font-size: 17px;
  transition: transform 120ms var(--ease-out), background-color 150ms var(--ease-out), border-color 150ms var(--ease-out);
}

.shrine-close:active {
  transform: scale(0.985);
}

.shrine-workbench {
  min-width: 0;
}

.shrine-panel-meta {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.shrine-panel-meta .mini-link {
  min-height: 34px;
}

.shrine-special-text {
  color: #767d8b;
  font-family: var(--font-display);
  font-size: 14px;
}

.shrine-modal-workbench .wish-summary-grid {
  border-color: #e3e5ee;
}

.shrine-modal-workbench .wish-summary-item {
  min-height: 74px;
}

.shrine-modal-workbench .wish-actions {
  margin-top: 16px;
}

.shrine-modal-workbench .wish-result {
  min-height: 62px;
  border-color: #dfe2ec;
  background: #f8f9fd;
}

.shrine-modal-workbench .section-footer {
  margin-top: 18px;
  border-top-color: #e7e8ef;
}

.shrine-collection-group + .shrine-collection-group {
  margin-top: 24px;
  padding-top: 23px;
  border-top: 1px solid #ececf2;
}

.shrine-collection-group h4,
.settings-group h4 {
  margin: 0 0 13px;
  color: #272b36;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
}

.shrine-material-count {
  margin: -3px 0 14px;
  color: #626979;
  font-family: var(--font-display);
  font-size: 14px;
}

.shrine-empty {
  padding: 20px 10px;
  color: #6b7280;
  font-family: var(--font-display);
  font-size: 15px;
  text-align: center;
}

.shrine-notelet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.shrine-notelet {
  min-width: 0;
  min-height: 70px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  border: 1px solid #e5dcc9;
  border-radius: 7px;
}

.shrine-notelet.is-paper {
  background: #fffdf7 url("/assets/app-assets/mark_paper.webp") center / cover;
}

.shrine-notelet.is-elegance {
  color: #d9b45b;
  border-color: #3f414b;
  background: #1f2129;
}

.shrine-notelet img {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
}

.shrine-notelet span {
  min-width: 0;
  overflow: hidden;
  color: #af554f;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shrine-notelet.is-elegance span {
  color: #d7b052;
}

.shrine-calling-list {
  display: grid;
  gap: 13px;
}

.shrine-calling-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid #dedfe7;
  border-radius: 7px;
  background: #fff;
}

.shrine-calling-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
}

.shrine-calling-card figcaption {
  min-height: 42px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #353945;
  font-family: var(--font-display);
  font-size: 15px;
}

.shrine-calling-card figcaption span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shrine-calling-card figcaption small {
  flex: 0 0 auto;
  color: #7764a0;
  font-family: var(--font-sans);
  font-size: 11px;
}

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

.shrine-seal-item {
  min-width: 0;
  margin: 0;
  display: grid;
  gap: 7px;
  justify-items: center;
}

.shrine-seal-item img {
  width: min(100%, 110px);
  aspect-ratio: 1;
  object-fit: contain;
}

.shrine-seal-item figcaption {
  max-width: 100%;
  overflow: hidden;
  color: #656b79;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shrine-title-state {
  min-height: 174px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 9px;
  text-align: center;
}

.shrine-title-state > strong {
  color: #4f83bc;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.2;
}

.shrine-title-state > span,
.shrine-title-state > small {
  color: #626979;
  font-family: var(--font-display);
  font-size: 15px;
}

.shrine-title-state .btn {
  min-width: min(100%, 260px);
  margin-top: 7px;
}

.shrine-info-copy {
  display: grid;
  gap: 12px;
  color: #656c7b;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.75;
}

.shrine-info-copy p {
  margin: 0;
}

.settings-stack {
  display: grid;
  gap: 23px;
}

.settings-group {
  min-width: 0;
}

.settings-remark-editor {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
}

.settings-list,
.auto-pawn-settings {
  border-color: #e3e5ed;
  border-radius: 7px;
  background: #fafbfe;
}

.settings-row {
  min-height: 64px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.settings-row + .settings-row {
  border-top: 1px solid #e3e5ed;
}

.settings-row > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.settings-row strong {
  color: #3a3e49;
  font-size: 13px;
  font-weight: 700;
}

.settings-row small,
.settings-help {
  color: #626979;
  font-size: 12px;
  line-height: 1.5;
}

.settings-help {
  margin: 10px 0 13px;
}

.settings-readtime-button {
  width: 100%;
}

@media (hover: hover) and (pointer: fine) {
  .shrine-close:hover {
    border-color: rgba(70, 100, 151, 0.28);
    background: #f7f9ff;
  }
}

@media (max-width: 760px) {
  .user-header {
    grid-template-columns: 1fr;
  }

  .shrine-modal {
    padding: 12px;
  }

  .shrine-modal-sheet {
    max-height: calc(100dvh - 24px);
  }

  .shrine-modal-heading {
    min-height: 67px;
    padding: 18px 18px 14px;
  }

  .shrine-modal-heading h3 {
    font-size: 24px;
  }

  .shrine-modal-content {
    padding: 16px;
  }

  .shrine-modal-footer {
    padding: 12px 16px 16px;
  }

  .shrine-workbench .wish-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shrine-workbench .wish-summary-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .shrine-workbench .wish-summary-item:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  .topbar-button {
    display: inline-flex !important;
    min-width: 44px;
    padding: 0 9px;
  }

  .topbar-link-primary {
    min-width: 44px;
    padding: 0 9px;
  }

  .lore-section .section-header {
    padding: 14px 15px 10px;
  }

  .lore-section .lore-quality,
  .lore-section .lore-title,
  .lore-section .lore-rewards,
  .lore-section .lore-time,
  .lore-section .lore-desc {
    margin-left: 15px;
    margin-right: 15px;
  }

  .lore-section .section-footer {
    padding: 13px 15px;
  }

  .shrine-notelet-grid {
    gap: 8px;
  }

  .shrine-notelet {
    min-height: 62px;
    padding: 8px 10px;
    gap: 8px;
  }

  .shrine-notelet img {
    width: 28px;
    height: 28px;
  }

  .shrine-notelet span {
    font-size: 15px;
  }

  .settings-row {
    min-height: 60px;
    padding: 9px 11px;
  }
}

@media (max-width: 390px) {
}

@media (prefers-reduced-motion: reduce) {
  .shrine-modal,
  .shrine-modal-sheet,
  .shrine-module,
  .shrine-close {
    transition: none;
  }
}
