/* v0.30: approved archive tab, flat dog-head honor and solid expressive follow glyph. */
.legacy-entry .legacy-pocket-mark { width: 32px; height: 34px; transform: rotate(-6deg); transition: transform .18s ease; }
.legacy-pocket-mark .pocket-paper { fill: #f3d9e4; stroke: #dfb6c8; }
.legacy-pocket-mark .pocket-body { fill: #fff8fb; stroke: #c98da9; }
.legacy-pocket-mark .pocket-fold { fill: #f3d7e3; stroke: #c98da9; }
.legacy-pocket-mark .pocket-seam { stroke: #e4bbce; }
.legacy-pocket-mark>span { top: 11px; left: 1px; color: #a75479; font-family: "Kaiti SC", STKaiti, KaiTi, "Songti SC", SimSun, serif; font-size: 15px; font-weight: 600; line-height: 16px; }
.legacy-entry:active .legacy-pocket-mark { transform: rotate(0) translateY(1px); }
.legacy-entry:active .pocket-body { fill: #fdebf3; }
#legacy-guide .legacy-guide-target .legacy-pocket-mark { width: 34px; height: 36px; }

.military-mark { width: 26px; height: 26px; display: block; flex-shrink: 0; object-fit: contain; }
.comment .comment-honors { gap: 8px; margin-top: 9px; }
.military-winner { gap: 5px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #98735f; font-size: 12px; font-weight: 500; letter-spacing: .015em; }
.military-winner .military-mark { width: 22px; height: 22px; }
.comment-honors>small { color: #a39098; font-size: .6875rem; letter-spacing: .02em; }
.winning-comment { border-top-color: var(--paper-line); }
.rank-badge { padding: 3px 7px; border: 1px solid #ece5eb; border-radius: 20px; background: #faf7fa; color: #938392; font-size: .6875rem; font-weight: 500; }
.rank-2 { background: #fff8f2; border-color: #f0e1d4; color: #9c7960; }
.rank-3 { background: #fdf5e7; border-color: #eeddbc; color: #a18144; }
.rank-4 { background: #f6f2fc; border-color: #e6dcf2; color: #9277aa; }
.rank-5 { background: #fdf0f5; border-color: #f0d6e3; color: #b66a8a; }
.profile-top .military-card,.military-card { border: 1px solid #f0e2e8; border-radius: 19px; padding: 18px 16px 11px; background: linear-gradient(120deg,#fffaf7,#fff9fc); }
.military-title { gap: 10px; }
.military-title small { color: #a58a95; font-size: .6875rem; letter-spacing: .04em; }
.military-title h3 { margin-top: 3px; color: #785969; font-size: var(--text-body); }
.military-level { color: #bd7b95; font-size: .8125rem; letter-spacing: -.03em; }
.military-medal { width: 42px; height: 44px; border-radius: 0; background: none; box-shadow: none; }
.military-medal .military-mark { width: 42px; height: 42px; transform: rotate(-6deg); }
.military-rule-btn { color: #a68c99; font-size: .6875rem; font-weight: 400; }
.military-progress { height: 4px; margin: 17px 0 9px; background: #f2e5eb; }
.military-progress i { min-width: 0; background: linear-gradient(90deg,#e6b5c7,#cc89a5); }
.military-tally span,.military-tally small { color: #a08b96; font-size: .6875rem; }
.military-tally b { font-weight: 600; color: #a3607e; }
.military-record-link { margin-top: 10px; padding-top: 9px; border-top-color: #f1e5eb; color: #a4778e; font-size: var(--text-meta); }
.military-record { border-color: #f0e3e9; border-radius: 14px; background: #fffafb; }
.military-record .hot-label { gap: 6px; color: #aa778d; }
.military-record p { color: #887680; }
.military-empty>.military-mark { width: 54px; height: 54px; margin: 0 auto 14px; }

/* Keep the text and count accessible while using the exact approved glyph outline. */
.actions .follow,.actions .follow.on,.detail-dock .dock-follow,.detail-dock .dock-follow.on,.folder-unfollow,button[data-action="follow"] {
  position: relative; display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 4px; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; gap: 0;
}
[data-follow-label] {
  display: inline-block; flex: 0 0 26px; width: 26px; height: 28px;
  color: transparent; font-family: inherit; font-size: 0; font-weight: 600; line-height: 1; letter-spacing: 0;
  background: url("assets/dun-solid.svg?v=0.30") center / contain no-repeat;
  transform: none; -webkit-text-stroke: 0; text-shadow: none; transition: none;
}
.on>[data-follow-label],[aria-pressed="true"]>[data-follow-label] { background-image: url("assets/dun-active.svg?v=0.30"); }
.actions .follow:active,.detail-dock .dock-follow:active,.folder-unfollow:active,button[data-action="follow"]:active { background: transparent; }
[data-action="follow"]:active>[data-follow-label] { transform: scale(.96); }
.follow-fleck { position: absolute; left: calc(50% - 1.5px); top: calc(50% - 1.5px); width: 3px; height: 3px; border-radius: 50%; background: #d76e9b; opacity: 0; pointer-events: none; }
[data-follow-count] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
#toast {
  padding: 11px 18px; background: #fff; color: #343438; border: 1px solid #ededee; border-radius: 12px;
  text-align: center; font-size: 13px; font-weight: 500; line-height: 1.5;
  box-shadow: 0 6px 24px #11111112,0 2px 6px #11111105;
}
@media (prefers-reduced-motion: reduce) {
  [data-follow-label],.legacy-entry .legacy-pocket-mark,#toast { transition: none; }
  [data-action="follow"]:active>[data-follow-label] { transform: none; }
  .follow-fleck { display: none; }
}
@media (forced-colors: active) {
  [data-follow-label],.on>[data-follow-label],[aria-pressed="true"]>[data-follow-label] {
    background: none; color: CanvasText; font-size: 26px; font-weight: 700; line-height: 28px;
  }
  .on>[data-follow-label],[aria-pressed="true"]>[data-follow-label] { color: Highlight; }
  #toast { background: Canvas; color: CanvasText; border-color: CanvasText; box-shadow: none; }
}
@media (max-width: 359px) {
  .header-title.has-beta { padding-left: 0; }
  .header-title.has-beta .beta-tag { position: static; display: table; transform: none; padding: 1px 4px; margin-bottom: 1px; }
  .military-title { flex-basis: 164px; }
  .military-title small { letter-spacing: 0; }
}

/* Phone Beta diagnostics remain separate from the production UI. */
.beta-test-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;font-size:12px;background:#fff7f8;color:#725960}
.beta-test-notice button{flex:none;padding:7px 10px;border:1px solid #edcdd4;border-radius:16px;background:#fff;color:#b34c62;font:inherit;cursor:pointer}
.beta-test-notice button:disabled{opacity:.6;cursor:wait}

/* v0.42: account diagnostics stay readable without moving the page content. */
.beta-test-notice>span{min-width:0}
.beta-test-notice [data-beta-app-status]{display:inline-block;font-size:11px;line-height:1.5;color:#725960;overflow-wrap:anywhere}
