:root {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: #272733; background: #edf0f5; font-size: 100%;
  --text-meta: .75rem; --text-label: .875rem; --text-body: 1rem; --text-heading: 1.125rem; --text-title: 1.25rem;
  --pink: #c73560; --muted: #786a79; --line: #f0f0f4; --blue: #4d66b4; --app-width: 430px; --page-gutter: 20px;
}
* { box-sizing: border-box; }
body { margin: 0; -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; touch-action: manipulation; }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, a:focus-visible { outline: 3px solid #e5446770; outline-offset: 3px; }
a { color: inherit; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: var(--text-title); letter-spacing: -.5px; font-weight: 600; }
h2 { font-size: var(--text-title); line-height: 1.55; }
h3 { font-size: var(--text-heading); line-height: 1.65; }
p { line-height: 1.85; }
small,.meta { font-size: var(--text-meta); line-height: 1.6; color: var(--muted); }
svg.icon {
  width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.65;
  stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle;
}
.icon-fill { fill: transparent; transition: fill .16s; }
.shell { width: 100%; max-width: var(--app-width); margin: 0 auto; position: relative; }
.phone {
  width: 100%; min-width: 0; background: white; min-height: 100vh; min-height: 100dvh;
  padding-bottom: calc(92px + env(safe-area-inset-bottom)); overflow-wrap: anywhere;
}
header {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center;
  justify-content: space-between; gap: 10px; padding: calc(17px + env(safe-area-inset-top)) 20px 15px;
  background: #ffffffed; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.header-title { min-width: 0; }
header .sub { font-size: var(--text-meta); color: var(--muted); margin-top: 5px; letter-spacing: .5px; }
.head-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.iconbtn {
  width: 42px; min-width: 42px; height: 42px; border-radius: 14px;
  background: #f6f6f9; display: inline-grid; place-items: center; position: relative; padding: 0;
}
.dot { position: absolute; right: 10px; top: 9px; width: 6px; height: 6px; background: var(--pink); border-radius: 50%; outline: 2px solid #f6f6f9; }
.idpill {
  font-size: var(--text-meta); min-height: 36px; padding: 8px 11px; border-radius: 20px;
  background: #fff0f4; color: #be4566; font-weight: 600; white-space: nowrap;
}
.prototype { margin: 0 20px 17px; color: #9494a1; font-size: var(--text-meta); line-height: 1.6; }
.features { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 0 20px 21px; }
.feature {
  text-align: left; padding: 16px; border-radius: 19px; position: relative; min-height: 144px;
  border: 1px solid #f8e2e9; background: linear-gradient(140deg,#fff5f8,#ffeaf1); color: #984159;
}
.feature.blue { border-color: #e2eafb; background: linear-gradient(140deg,#f3f7ff,#e9f0ff); color: #4d68ac; }
.feature .ficon {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px;
  color: #d35574; background: #fffafb; box-shadow: 0 3px 8px #a5526710;
}
.feature.blue .ficon { color: #607fcf; background: #fbfcff; box-shadow: 0 3px 8px #416bb610; }
.feature .ficon svg { width: 25px; height: 25px; stroke-width: 1.55; }
.feature .ficon .icon-fill { fill: currentColor; fill-opacity: .06; }
.feature b { display: block; font-size: var(--text-body); color: #4f3441; margin-top: 12px; font-weight: 600; }
.feature.blue b { color: #344866; }
.feature small { display: block; font-size: var(--text-meta); margin-top: 6px; color: inherit; opacity: .83; }
.feature-arrow { position: absolute; top: 24px; right: 16px; opacity: .5; }
.feature-arrow svg { width: 17px; height: 17px; }
.tabs {
  display: flex; gap: 26px; padding: 0 20px; border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none; background: white;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button { white-space: nowrap; padding: 15px 0 17px; font-size: var(--text-label); color: #94949f; position: relative; flex-shrink: 0; }
.tabs .active { color: #2d2b38; font-weight: 600; }
.tabs .active:after {
  content: ''; position: absolute; bottom: 0; left: calc(50% - 9px);
  width: 18px; height: 3px; background: var(--pink); border-radius: 4px;
}
.card { padding: 21px 20px 14px; border-bottom: 7px solid #f6f7f9; }
.author { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; min-width: 0; }
.avatar {
  width: 36px; height: 36px; border-radius: 13px; display: inline-grid; place-items: center;
  background: #efeaf7; color: #857197; font-size: var(--text-label); font-weight: 600; flex-shrink: 0;
  border: 1px solid #ffffff80;
}
.avatar.a1 { background: #e9f3ef; color: #65907e; }
.avatar.a2 { background: #fff1db; color: #b3945b; }
.avatar.a3 { background: #eaf0fc; color: #7c91b8; }
.author-name { font-size: var(--text-label); font-weight: 600; }
.author-name small { font-size: var(--text-meta); font-weight: 400; margin-left: 3px; }
.author .meta { margin-top: 3px; }
.tag { font-size: var(--text-meta); line-height: 1.5; padding: 4px 7px; border-radius: 6px; color: #8a8793; background: #f5f4f7; white-space: nowrap; }
.tag.pink { color: #cd5977; background: #fff0f5; }
.tag.blue { color: #6783c7; background: #eff4ff; }
.author .tag { margin-left: auto; }
.card-title { padding: 0; display: block; text-align: left; width: 100%; }
.card-title h3 { font-size: var(--text-body); font-weight: 600; line-height: 1.7; }
.excerpt {
  color: #7f7e8b; font-size: var(--text-label); margin-top: 8px; line-height: 1.9;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.chat-preview { background: #f5f6f8; padding: 14px; border-radius: 12px; margin-top: 14px; display: grid; gap: 10px; }
.bubble { background: white; border-radius: 10px 10px 10px 3px; padding: 9px 12px; font-size: var(--text-label); max-width: 90%; width: max-content; line-height: 1.6; }
.bubble.right { background: #e1efe7; margin-left: auto; border-radius: 10px 10px 3px 10px; }
.progress { height: 5px; background: #dce5fa; border-radius: 6px; overflow: hidden; margin: 12px 0; }
.progress i { display: block; height: 100%; background: #e8889e; border-radius: 6px; }
.scoreline { display: flex; justify-content: space-between; gap: 15px; font-size: var(--text-meta); color: #7d8295; }
.scoreline span { max-width: 48%; }
.scoreline span:last-child { text-align: right; }
.debate-preview { background: #f8f9fc; border-radius: 12px; padding: 15px; margin-top: 14px; }
.actions { display: flex; align-items: center; gap: 19px; margin-top: 12px; color: #9794a2; }
.actions button { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0; font-size: var(--text-meta); }
.actions button svg { width: 19px; height: 19px; stroke-width: 1.6; }
.actions .comment-action { color: #706779; font-size: var(--text-label); min-height: 44px; gap: 7px; }
.actions .comment-action svg { width: 22px; height: 22px; stroke-width: 1.75; }
.actions .follow { margin-left: auto; }
.on { color: var(--pink)!important; }
.on .icon-fill { fill: #fde3eb; }
.on svg.icon-heart .icon-fill { fill: var(--pink); }
.nav {
  display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); align-items: center;
  position: fixed; z-index: 20; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--app-width);
  background: #fffffff5; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid #efeff3; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px #32324903;
}
.nav button { display: flex; flex-direction: column; align-items: center; gap: 5px; justify-content: center; min-height: 57px; padding: 3px 0; color: #a09eaa; }
.nav-icon { width: 38px; height: 30px; display: grid; place-items: center; position: relative; }
.nav-icon svg { width: 23px; height: 23px; stroke-width: 1.65; }
.nav-label { font-size: var(--text-meta); line-height: 1.4; letter-spacing: .4px; }
.nav button.selected { color: var(--pink); font-weight: 600; }
.nav .selected .icon-fill { fill: #fbe0e9; }
.nav .selected svg { stroke-width: 1.85; }
.nav .nav-add { width: 43px; height: 32px; display: grid; place-items: center; color: white; background: linear-gradient(135deg,#ef6a83,#e34369); border-radius: 11px; box-shadow: 0 4px 9px #dc46622b; }
.nav .nav-add svg { width: 21px; height: 21px; stroke-width: 2; }
.discovery-list { display: grid; gap: 16px; padding: 8px 20px 24px; }
.discovery-card { display: block; width: 100%; padding: 19px 18px 15px; border: 1px solid var(--discovery-border); border-radius: 20px; text-align: left; background: var(--discovery-bg); color: var(--discovery-color); }
.discovery-jury { --discovery-bg: #fff1f5; --discovery-border: #f7dce5; --discovery-color: #a34461; }
.discovery-bottle { --discovery-bg: #eff4ff; --discovery-border: #dee7fa; --discovery-color: #4c68ae; }
.discovery-follow { --discovery-bg: #fff7e9; --discovery-border: #f4e6c9; --discovery-color: #976a2f; }
.discovery-top { display: flex; align-items: center; gap: 12px; }
.discovery-symbol { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; background: #ffffffc9; }
.discovery-symbol .icon { width: 26px; height: 26px; }
.discovery-word { font-size: var(--text-title); font-weight: 600; }
.discovery-copy { display: grid; gap: 5px; min-width: 0; }
.discovery-copy strong { font-size: var(--text-heading); line-height: 1.4; color: #36313e; }
.discovery-copy>span { font-size: var(--text-label); line-height: 1.5; }
.discovery-arrow { margin-left: auto; flex-shrink: 0; }
.discovery-arrow .icon { width: 19px; height: 19px; }
.discovery-preview { display: flex; align-items: baseline; gap: 7px; margin-top: 17px; padding: 12px; background: #ffffffa8; border-radius: 10px; color: #625a68; font-size: var(--text-label); line-height: 1.75; }
.discovery-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; font-size: var(--text-meta); line-height: 1.6; }
.discovery-foot>span { flex-shrink: 0; font-size: var(--text-label); font-weight: 600; }
.discovery-unread { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--pink); }
.jury-intro { display: grid; gap: 14px; margin: 0 20px 6px; padding: 18px; border: 1px solid #f7dce5; background: #fff5f8; border-radius: 16px; }
.jury-intro p { font-size: var(--text-label); color: #896375; }
.jury-intro .primary { justify-self: start; display: flex; align-items: center; gap: 5px; }
.jury-intro .primary .icon { width: 18px; height: 18px; }
@media(max-width:359px) { .discovery-list { padding-left: 16px; padding-right: 16px; }.discovery-card { padding-left: 14px; padding-right: 14px; }.discovery-top { gap: 9px; }.discovery-copy strong { font-size: var(--text-heading); }.discovery-foot { flex-wrap: wrap; gap: 6px; } }
.nav-update { width: 5px; height: 5px; background: var(--pink); border-radius: 50%; position: absolute; top: 2px; right: 5px; outline: 2px solid white; }
.content { padding: 20px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stack { display: grid; gap: 14px; }
.primary,.secondary { min-height: 46px; padding: 12px 18px; border-radius: 13px; font-size: var(--text-label); font-weight: 600; line-height: 1.6; }
.primary { background: var(--pink); color: white; }
.secondary { background: #f5f5f8; border: 1px solid #eeeef3; }
.wide { width: 100%; }
.muted { color: #888795; font-size: var(--text-label); }
.notice { padding: 13px 15px; background: #fff5f8; color: #aa6278; border-radius: 12px; font-size: var(--text-label); line-height: 1.8; }
.empty { text-align: center; padding: 60px 24px; color: #9693a2; }
.empty>svg { width: 36px; height: 36px; margin-bottom: 16px; }
.empty h3 { font-size: var(--text-body); color: #55505f; margin-bottom: 9px; }
.empty p { font-size: var(--text-label); }
.empty button { margin-top: 22px; }
.body-text { white-space: pre-wrap; margin: 18px 0; color: #5a5562; font-size: var(--text-body); line-height: 2; overflow-wrap: anywhere; }
.detail .author { margin-top: 8px; }
.section-title { margin: 28px 0 18px; font-size: var(--text-body); }
.comment { padding: 18px 0; border-top: 1px solid var(--line); }
.comment .author { margin: 0 0 10px; flex-wrap: wrap; }
.comment p { margin-left: 45px; font-size: var(--text-label); white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-actions { margin-left: 45px; display: flex; gap: 16px; align-items: center; margin-top: 7px; color: #94909e; font-size: var(--text-meta); flex-wrap: wrap; }
.comment-actions button { min-height: 36px; padding: 0; }
.comment-actions svg { width: 16px; height: 16px; }
.reply { margin: 8px 0 0 45px; padding: 11px; background: #f7f6f9; border-radius: 9px; font-size: var(--text-label); line-height: 1.7; }
.form { display: grid; gap: 20px; }
.form label { display: grid; gap: 9px; font-size: var(--text-label); font-weight: 600; }
.form input,.form textarea,.form select,input.entry,textarea.entry {
  width: 100%; max-width: 100%; border: 1px solid #e9e7ee; padding: 13px;
  background: #faf9fc; border-radius: 12px; color: #36303f; outline: none; font-size: var(--text-body);
}
.form input:focus,.form textarea:focus,.entry:focus { border-color: var(--pink); background: white; }
.form textarea { resize: vertical; min-height: 145px; line-height: 1.8; }
.form input[type=checkbox] { width: 18px; height: 18px; margin: 3px 0 0; flex-shrink: 0; accent-color: var(--pink); }
.form .check { display: flex; align-items: flex-start; gap: 9px; font-weight: 400; font-size: var(--text-label); line-height: 1.7; }
.types { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.types button { padding: 13px 3px; background: #f5f4f8; border-radius: 12px; font-size: var(--text-label); }
.types .active { color: var(--pink); background: #ffedf3; font-weight: 600; }
.photos { display: flex; gap: 8px; flex-wrap: wrap; }
.photos img { width: 85px; height: 85px; object-fit: cover; border-radius: 10px; }
.postphotos img { max-width: 100%; max-height: 440px; object-fit: contain; border-radius: 12px; margin-top: 12px; }
.sides { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 20px 0; }
.side-choice { padding: 16px 12px; border: 1px solid #f2dce5; background: #fff5f8; border-radius: 14px; text-align: left; }
.side-choice b { display: block; font-size: var(--text-label); margin: 7px 0; line-height: 1.7; }
.side-choice small { color: #ba768c; }
.side-choice.b { background: #f3f6ff; border-color: #e0e7f8; }
.side-choice.b small { color: #7b8eb8; }
.side-choice.chosen { outline: 2px solid var(--pink); }
.side-choice.b.chosen { outline-color: var(--blue); }
.bottle-screen { background: linear-gradient(#f0f5ff,#fbfcff 85%); min-height: 580px; padding: 29px 20px; }
.bottle-screen h2 { font-size: var(--text-title); text-align: center; color: #405277; }
.bottle-screen>.muted { text-align: center; margin: 10px 0 27px; color: #91a0b8; font-size: var(--text-label); }
.letter { background: white; padding: 25px; border-radius: 20px; box-shadow: 0 8px 30px #4e6ea80c; border: 1px solid #edf0f8; margin-bottom: 23px; min-height: 225px; }
.letter p { font-size: var(--text-body); line-height: 2.1; margin: 20px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.letter .stamp { font-size: var(--text-meta); color: #8294b8; border: 1px solid #dce4f4; width: max-content; padding: 5px 10px; border-radius: 7px; }
.bottle-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bluebtn { background: var(--blue); }
.bottle-screen .quota { font-size: var(--text-meta); text-align: center; color: #94a0b5; margin-top: 18px; }
.timeline { padding: 16px; background: #fff4f8; border-radius: 12px; margin: 18px 0; }
.timeline small { color: #c56983; }
.timeline p { margin-top: 8px; font-size: var(--text-label); }
.profile-top { display: grid; gap: 16px; padding: 20px var(--page-gutter) 24px; background: linear-gradient(150deg,#fff1f6,#f7f4fc); }
.profile-top>* { min-width: 0; width: 100%; margin: 0; }
.profile-intro { padding: 16px; border: 1px solid #fff; border-radius: 18px; background: #ffffffd9; }
.profile-identity-row { flex-wrap: wrap; }
.profile-name { margin-top: 14px; font-size: var(--text-title); line-height: 1.5; overflow-wrap: anywhere; }
.profile-top .avatar { width: 62px; height: 62px; font-size: var(--text-title); border-radius: 22px; background: #fff; color: #b380a0; box-shadow: 0 4px 15px #bd8da212; }
.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; padding: 18px 8px; border: 1px solid #fff; border-radius: 18px; background: #fff; }
.stats>div { min-width: 0; padding: 0 4px; text-align: center; display: grid; justify-items: center; align-content: start; }
.stats>div+div { border-left: 1px solid #f1e9ee; }
.stats b { display: block; max-width: 100%; font-size: var(--text-title); line-height: 1.4; font-weight: 600; font-variant-numeric: tabular-nums; color: #443041; overflow-wrap: anywhere; }
.stats small { display: block; margin-top: 6px; font-size: var(--text-label); line-height: 1.6; text-align: center; }
.profile-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 15px 0 20px; }
.profile-menu button { text-align: left; display: flex; gap: 8px; align-items: center; padding: 16px 12px; background: #f7f6fa; border-radius: 14px; font-size: var(--text-label); line-height: 1.7; }
.profile-menu svg { width: 20px; height: 20px; color: #8f829f; }
.notification { display: flex; gap: 12px; padding: 21px 20px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.notification.unread { background: #fff8fb; }
.notification b { font-size: var(--text-label); display: block; margin-bottom: 6px; }
.notification p { font-size: var(--text-label); color: #888393; }
.notification small { display: block; margin-top: 9px; }
dialog {
  border: 0; border-radius: 25px 25px 0 0; padding: 0;
  width: 100%; max-width: var(--app-width); max-height: 88vh; max-height: 88dvh;
  inset: auto 0 0; margin: 0 auto; color: #34303e; background: white; overflow-y: auto;
  box-shadow: 0 -12px 60px #29213120;
}
dialog::backdrop { background: #17132055; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
dialog:before { content: ''; display: block; width: 32px; height: 4px; background: #e7e4ec; border-radius: 4px; margin: 11px auto 0; }
.modalhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 22px 8px; }
.modalhead h3 { font-size: var(--text-heading); }
.modalhead .iconbtn { background: #f6f5f8; width: 32px; min-width: 32px; height: 32px; border-radius: 50%; }
.modalhead .iconbtn svg { width: 17px; height: 17px; }
.modalbody { padding: 12px 22px calc(26px + env(safe-area-inset-bottom)); }
.modalbody p { font-size: var(--text-label); color: #93909f; margin-bottom: 20px; }
.identity-choice { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 18px 14px; border: 1px solid #edeaf1; border-radius: 16px; margin-top: 12px; }
.identity-choice:first-of-type { background: #fff7fa; border-color: #f2d4e0; }
.identity-choice .avatar { width: 43px; height: 43px; border-radius: 15px; }
.identity-choice b { display: block; font-size: var(--text-label); }
.identity-choice small { display: block; margin-top: 6px; line-height: 1.7; font-size: var(--text-meta); }
.identity-choice>svg { margin-left: auto; color: #c2b6c7; width: 18px; height: 18px; }
.endnote { text-align: center; padding: 24px 20px; color: #aba5b1; font-size: var(--text-meta); }
.backlabel { display: flex; align-items: center; gap: 5px; min-height: 42px; padding: 0; font-size: var(--text-body); font-weight: 600; text-align: left; }
.backlabel svg { width: 19px; height: 19px; }
.danger { color: #cc4668; }
.smallbtn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 40px; padding: 8px 11px; background: #f6f5f9; border-radius: 10px; font-size: var(--text-meta); line-height: 1.5; }
.smallbtn svg { width: 17px; height: 17px; }
.profile-list { margin-top: 15px; }
.unread-label { background: var(--pink); color: white; border-radius: 4px; padding: 2px 5px; font-size: var(--text-meta); }
.update-note { color: #c27890; font-size: var(--text-meta); margin-top: 12px; }
.mb { margin-bottom: 18px; }
#toast { position: fixed; bottom: calc(101px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); background: #302b3ded; color: white; padding: 13px 17px; border-radius: 13px; font-size: var(--text-label); line-height: 1.7; z-index: 100; max-width: min(88vw,380px); width: max-content; opacity: 0; pointer-events: none; transition: opacity .18s; }
#toast.show { opacity: 1; }
@media(min-width:431px) {
  .shell { box-shadow: 0 0 0 1px #e3e5eb, 0 12px 50px #222d4410; }
}
@media(max-width:359px) {
  header,.card,.content { padding-left: 16px; padding-right: 16px; }
  .features { padding-left: 16px; padding-right: 16px; gap: 9px; }
  .feature { padding: 13px; }
  .feature b { font-size: var(--text-label); }
  .feature small { font-size: var(--text-meta); }
  .head-actions { gap: 4px; }
  .idpill { padding-left: 8px; padding-right: 8px; font-size: var(--text-meta); }
  .tabs { gap: 23px; padding-left: 16px; padding-right: 16px; }
}
@media(prefers-reduced-motion:reduce) { * { scroll-behavior: auto!important; transition: none!important; } }

/* v0.5: short follow action, one visible hot comment, military growth, mock barrage. */
.actions .follow {
  min-width: 45px; min-height: 32px; justify-content: center; padding: 4px 11px;
  border: 1px solid #ece8f0; background: #faf8fc; border-radius: 10px;
  font-size: var(--text-label); font-weight: 600; letter-spacing: 1px;
}
.actions .follow.on { background: #fff0f5; border-color: #f2d5e0; font-size: var(--text-meta); }
.hot-preview { display: block; width: 100%; margin-top: 14px; padding: 12px 13px; background: #f7f7fa; border-radius: 11px; text-align: left; }
.hot-preview.military-hot { background: #fff8ed; border: 1px solid #f5ead8; }
.hot-preview-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; min-width: 0; }
.hot-label { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; font-size: var(--text-meta); font-weight: 600; color: #b57730; }
.hot-label .icon { width: 15px; height: 15px; }
.hot-author { font-size: var(--text-meta); color: #8b8290; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hot-likes { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: #b69b79; font-size: var(--text-meta); flex-shrink: 0; }
.hot-likes .icon { width: 13px; height: 13px; }
.hot-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #787078; font-size: var(--text-label); line-height: 1.85; }
.rank-badge { display: inline-flex; align-items: center; width: max-content; max-width: 100%; white-space: nowrap; border-radius: 5px; font-size: var(--text-meta); line-height: 1.4; padding: 4px 6px; background: #f2f0f5; color: #a092aa; }
button.rank-badge { min-height: 28px; }
.rank-2 { background: #fdf3e3; color: #b38b4e; }
.rank-3 { background: #fff0d3; color: #ba8932; }
.rank-4 { background: #eeebfd; color: #8c73b1; }
.rank-5 { background: #ffe9ee; color: #c66480; }
.comment-author { display: inline-flex; align-items: center; gap: 9px; padding: 0; text-align: left; }
.comment>.author { gap: 8px; }
.comment-honors { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0 0 9px 45px; }
.military-winner { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-meta); font-weight: 600; color: #b58234; background: #fff5df; border-radius: 6px; padding: 4px 7px; }
.military-winner .icon { width: 15px; height: 15px; }
.winning-comment { border-top-color: #efdfc5; }
.military-card { margin-top: 22px; padding: 17px 16px; border: 1px solid #eedec1; border-radius: 17px; background: linear-gradient(125deg,#fff9ef,#fdf2df); }
.military-title { display: flex; align-items: center; gap: 10px; }
.military-title small { font-size: var(--text-meta); color: #b49871; }
.military-title h3 { font-size: var(--text-body); color: #856338; margin-top: 2px; line-height: 1.5; }
.military-medal { display: grid; place-items: center; width: 38px; height: 42px; border-radius: 12px; color: #bf965c; background: #fffdf9; box-shadow: 0 3px 9px #b4966520; }
.military-medal .icon { width: 26px; height: 26px; }
.military-rule-btn { font-size: var(--text-meta); color: #a58b66; white-space: nowrap; padding: 8px 0; }
.military-progress { height: 5px; margin: 18px 0 9px; background: #eddfc7; border-radius: 5px; overflow: hidden; }
.military-progress i { display: block; height: 100%; min-width: 2px; background: linear-gradient(90deg,#d8b47d,#bd8b45); border-radius: 5px; }
.military-card>.row:last-child span,.military-card>.row:last-child small { font-size: var(--text-meta); color: #a68a66; }
.level-list { display: grid; gap: 13px; margin: 0 0 22px; }
.level-list>div { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid #f1edf3; }
.level-list b { font-size: var(--text-label); font-weight: 500; color: #8c8394; }
.military-rule-note { font-size: var(--text-label); line-height: 1.9; }
.military-records { padding: 18px 20px; }
.military-record { width: 100%; display: block; text-align: left; padding: 17px 15px; margin-bottom: 13px; border: 1px solid #f1e7d7; border-radius: 13px; background: #fffcf7; }
.military-record h3 { font-size: var(--text-label); margin: 12px 0 7px; }
.military-record p { color: #8a7d72; font-size: var(--text-label); line-height: 1.9; }
.barrage-section { margin: 3px -20px 23px; }
.barrage-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 20px 10px; color: #8294b2; font-size: var(--text-meta); }
.barrage-heading small { font-size: var(--text-meta); color: #a3b0c7; margin-left: 5px; }
.barrage-heading button { color: #7e96bb; font-size: var(--text-meta); min-height: 32px; }
.barrage-window { overflow: hidden; width: 100%; display: grid; gap: 9px; padding: 3px 0; mask-image: linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent); -webkit-mask-image: linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent); }
.barrage-track { display: flex; width: max-content; animation: sea-messages 32s linear infinite; will-change: transform; }
.barrage-track.track-1 { animation-duration: 38s; animation-delay: -15s; }
.barrage-track.track-2 { animation-duration: 35s; animation-delay: -8s; }
.barrage-group { display: flex; gap: 10px; padding-right: 10px; flex-shrink: 0; }
.barrage-chip { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 9px 12px; border: 1px solid #e0e9f7; border-radius: 25px; font-size: var(--text-meta); color: #8194b4; background: #ffffffd6; box-shadow: 0 2px 6px #6482ba05; }
.barrage-dot { width: 5px; height: 5px; border-radius: 50%; background: #c2c7e4; }
.barrage-dot.dot-1 { background: #edc3d4; }
.barrage-dot.dot-2 { background: #b5d6d6; }
.barrage-window.paused .barrage-track { animation-play-state: paused; }
@keyframes sea-messages { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media(prefers-reduced-motion:reduce) { .barrage-track { animation: none; } .barrage-window { overflow-x: auto; } .barrage-group[aria-hidden=true] { display: none; } }

/* v0.6: current mood and an identity-scoped private notebook. */
.mood-status { margin-top: 20px; padding: 15px; background: #ffffffdf; border: 1px solid #ffffff; border-radius: 17px; }
.mood-heading { gap: 8px; }
.mood-heading b { font-size: var(--text-label); color: #8a7085; }
.mood-heading button { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0; font-size: var(--text-label); color: #94728b; }
.mood-heading .icon { width: 16px; height: 16px; }
.mood-current { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 0 6px; text-align: left; }
.mood-emoji { display: grid; place-items: center; flex-shrink: 0; width: 45px; height: 45px; background: #fff5e5; border-radius: 14px; font-size: var(--text-title); }
.mood-current>span:nth-child(2) { flex: 1; min-width: 0; }
.mood-current strong { display: block; margin-bottom: 4px; font-size: var(--text-body); }
.mood-current>span:nth-child(2)>span { display: block; font-size: var(--text-label); line-height: 1.7; color: #8b7b8e; overflow-wrap: anywhere; }
.mood-current>.icon { width: 17px; height: 17px; color: #ac92a5; }
.mood-bottom { margin-top: 10px; border-top: 1px solid #f4edf2; padding-top: 7px; }
.mood-bottom>span { font-size: var(--text-meta); color: #988799; }
.mood-bottom button { padding: 5px 0; min-height: 36px; font-size: var(--text-label); color: #ba567e; }
.mood-options { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.mood-options legend { font-size: var(--text-label); color: #82768a; margin-bottom: 12px; }
.mood-options label { position: relative; cursor: pointer; }
.mood-options input[type=radio] { position: absolute; width: 1px; height: 1px; opacity: 0; padding: 0; }
.mood-options label>span { display: grid; justify-items: center; gap: 5px; padding: 12px 6px; border: 1px solid #ece8f0; background: #faf8fc; border-radius: 12px; font-size: var(--text-label); font-weight: 400; }
.mood-choice-emoji { font-size: var(--text-title); }
.mood-options input:checked+span { background: #fff0f5; border-color: #d66288; color: #ae436c; box-shadow: 0 0 0 1px #d66288; }
.mood-options input:focus-visible+span { outline: 3px solid #e5446770; outline-offset: 2px; }
.form .mood-visibility { margin: 0; font-size: var(--text-label); line-height: 1.75; }
.mood-history { display: grid; gap: 12px; margin-bottom: 18px; }
.mood-history-item { padding: 15px; border: 1px solid #eee6ed; border-radius: 13px; background: #fdfafd; }
.mood-history-item>div { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.mood-history-item>div>span { font-size: var(--text-title); }
.mood-history-item p { color: #726574; font-size: var(--text-label); margin: 0 0 7px; white-space: pre-wrap; overflow-wrap: anywhere; }
.mood-history-empty { padding: 30px 0; color: #998c9d; text-align: center; font-size: var(--text-label); }
.modalbody .mood-demo-note { font-size: var(--text-meta); line-height: 1.7; margin: 16px 0; }
.mood-detail { padding: 10px 0 20px; text-align: center; }
.mood-detail-emoji { display: block; font-size: var(--text-title); margin-bottom: 14px; }
.mood-detail p { margin: 15px 0; color: #706172; font-size: var(--text-body); white-space: pre-wrap; overflow-wrap: anywhere; }

.feed-photos { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.feed-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
.feed-photos img:only-child { grid-column: 1/-1; aspect-ratio: 3/2; }
.rich-post figure { margin: 20px 0; }
.rich-post figure button { display: block; width: 100%; padding: 0; }
.rich-post img { display: block; width: 100%; height: auto; border-radius: 13px; }
.lightbox-image { display: block; width: 100%; height: auto; border-radius: 12px; }
.story-reading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 10px 12px; background: #faf6fa; border-radius: 12px; scroll-margin-top: 105px; }
.story-reading>span { font-size: var(--text-label); color: #89788c; }
.story-reading button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 38px; padding: 7px 12px; border: 1px solid #e9dce8; border-radius: 9px; font-size: var(--text-label); background: white; }
.story-reading button.on { border-color: #e6a6ba; background: #fff0f5; }
.story-reading .icon { width: 17px; height: 17px; }
.author-mark { display: inline-flex; color: #be6282; background: #fff0f5; font-size: var(--text-meta); padding: 3px 6px; border-radius: 5px; }
#comments-section { scroll-margin-top: 100px; }
.editor-label { font-size: var(--text-label); font-weight: 600; line-height: 1.7; }
.editor-label .meta { display: block; margin-top: 5px; font-weight: 400; }
.editor-blocks { display: grid; gap: 15px; }
.editor-text-block { border: 1px solid #e9e7ee; border-radius: 13px; overflow: hidden; background: #faf9fc; }
.form .editor-text-block textarea { display: block; border: 0; border-radius: 0; min-height: 115px; resize: vertical; }
.insert-image { display: flex; align-items: center; gap: 6px; padding: 11px 13px; font-size: var(--text-label); color: #9b6c89; min-height: 44px; }
.insert-image .icon { width: 20px; height: 20px; }
.editor-image { margin: 0; position: relative; }
.editor-image img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: contain; border-radius: 12px; background: #f5f3f7; }
.editor-image button { position: absolute; right: 8px; top: 8px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: white; background: #403747b3; }

/* v0.7: personal posts / followed titles / drafts, H5-only scope. */
.profile-bio { margin-top: 8px; }
.profile-shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px 20px; }
.profile-shortcuts button { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 8px; min-height: 46px; border-radius: 12px; background: #f8f5fa; font-size: var(--text-label); color: #7e6586; }
.profile-shortcuts .icon { width: 20px; height: 20px; }
.profile-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.profile-tabs button { text-align: center; font-size: var(--text-body); }
.profile-tabs button small { margin-left: 5px; font-size: var(--text-meta); }
.profile-section-heading { padding: 20px; font-weight: 600; font-size: var(--text-body); }
.military-record-link { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 12px; padding: 10px 0 0; border-top: 1px solid #eee0d6; min-height: 42px; font-size: var(--text-label); color: #9d774b; }
.military-record-link .icon { width: 17px; height: 17px; }
.folder-list { padding: 4px 20px 20px; }
.folder-note { margin: 12px 0 8px; font-size: var(--text-meta); color: #8c7e90; }
.folder-row { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #f1edf3; }
.folder-title { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; padding: 17px 0; min-height: 58px; text-align: left; font-size: var(--text-label); }
.folder-title>span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.folder-title .icon { width: 16px; height: 16px; color: #a89aaa; }
.folder-unread { width: 6px; height: 6px; flex-shrink: 0; background: var(--pink); border-radius: 50%; }
.folder-unfollow { min-height: 44px; padding: 8px 5px; color: #a77991; font-size: var(--text-meta); flex-shrink: 0; }
.draft-list { padding: 14px 20px; }
.draft-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.draft-heading>span { font-size: var(--text-label); color: #8b7b90; }
.draft-card { padding: 16px; border: 1px solid #f0eaf2; border-radius: 17px; margin-bottom: 14px; background: #fdfbfe; }
.draft-open { width: 100%; text-align: left; padding: 0; }
.draft-open h3 { margin: 10px 0 6px; font-size: var(--text-body); }
.draft-open p { color: #85748b; font-size: var(--text-label); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.draft-card .row { margin-top: 8px; }
.draft-delete { font-size: var(--text-label); min-height: 44px; padding: 8px 0 8px 10px; color: #9e7d92; }
.draft-empty { text-align: center; padding: 40px 15px; font-size: var(--text-label); color: #9c8da3; line-height: 1.9; }
.tracking-card { scroll-margin-top: 150px; }
.tracking-card .rich-post .body-text { font-size: var(--text-body); }
.track-waiting { color: #95849d; font-size: var(--text-label); margin: 16px 0; }
.nav-label { font-size: var(--text-label); }
.prototype,.author-name small,.tag,.unread-label { font-size: var(--text-meta); }
.backlabel span { min-width: 0; line-height: 1.5; }
.idpill { font-size: var(--text-meta); }
.comment .author { align-items: flex-start; }
.comment-author { min-width: 0; max-width: 100%; }
.comment-author .author-name { overflow-wrap: anywhere; }
@media(max-width:359px) { .idpill { font-size: var(--text-meta); }.profile-shortcuts,.folder-list,.draft-list { padding-left: 16px; padding-right: 16px; }.backlabel { font-size: var(--text-body); } }

/* v0.8: shared mobile alignment, clearer navigation, and long-form mood writing. */
header { padding-left: var(--page-gutter); padding-right: var(--page-gutter); background: #fff7faee; border-bottom: 1px solid #f2dfe7; box-shadow: 0 3px 16px #71304b05; }
.header-title h1 { color: #42283b; font-size: var(--text-title); font-weight: 800; letter-spacing: .3px; }
header .sub { color: #a37588; font-size: var(--text-meta); letter-spacing: 1px; }
.head-actions .iconbtn { background: #fff; border: 1px solid #f1dfe7; color: #98637c; }
.idpill { background: #fff; color: #a64668; border: 1px solid #f1d6e1; }
.tabs { gap: 8px; align-items: center; padding: 10px var(--page-gutter); border-bottom: 1px solid #f3eaf0; }
.tabs button { padding: 10px 15px; min-height: 44px; border-radius: 12px; color: #8d7d89; font-size: var(--text-label); }
.tabs button.active { color: #b23561; background: #fceaf1; box-shadow: inset 0 0 0 1px #f4d3e0; }
.tabs .active:after { display: none; }
.nav { padding-top: 10px; background: #fffffffa; border-top-color: #eedce5; box-shadow: 0 -7px 28px #692b4709; }
.nav button { min-height: 59px; gap: 4px; color: #9d8c99; }
.nav-icon { width: 45px; height: 32px; border-radius: 12px; }
.nav .selected .nav-icon { background: #fce7ef; color: #c53862; }
.nav button.selected .nav-label { color: #b9315b; font-weight: 600; }
.nav .nav-add { width: 50px; height: 50px; margin-top: -21px; border: 4px solid #fff; border-radius: 18px; background: linear-gradient(140deg,#f77391,#d73969); box-shadow: 0 5px 15px #d4487229; }
.nav .nav-add svg { width: 25px; height: 25px; }
.nav .publish-tab .nav-label { color: #c03c65; font-weight: 600; }
.profile-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.profile-tabs button { width: 100%; min-width: 0; padding-left: 4px; padding-right: 4px; text-align: center; }
.profile-top .mood-status,.profile-top .military-card { margin: 0; padding: 16px; border-radius: 18px; }
.profile-top .row { min-width: 0; flex-wrap: wrap; }
.profile-top .row>* { min-width: 0; max-width: 100%; }
.profile-top .smallbtn { white-space: normal; text-align: center; }
.profile-bio { line-height: 1.75; overflow-wrap: anywhere; }
.military-title { flex: 1 1 180px; min-width: 0; }
.military-title>div { min-width: 0; }
.military-medal { flex-shrink: 0; }
.military-rule-btn { font-size: var(--text-label); min-height: 44px; }
.military-record-link { min-height: 44px; }
.mood-heading b { font-size: var(--text-label); color: #80516e; }
.mood-current>span:nth-child(2)>span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mood-current strong { overflow-wrap: anywhere; }
.mood-bottom { align-items: center; }
.mood-form textarea { min-height: 220px; line-height: 1.9; }
.mood-form>label { min-width: 0; }
.mood-form input[type=hidden] { display: none; }
.mood-word-count { text-align: right; color: #9a8192; font-size: var(--text-meta); font-weight: 400; }
.form .mood-sync { align-items: flex-start; padding: 15px; border: 1px solid #f0d9e4; border-radius: 14px; background: #fff5f9; font-size: var(--text-label); }
.mood-sync>span { min-width: 0; }
.mood-sync strong,.mood-sync>span>span { display: block; }
.mood-sync>span>span { margin-top: 4px; color: #9b7489; font-size: var(--text-label); line-height: 1.7; }
.mood-sync input[type=checkbox] { width: 20px; height: 20px; margin: 2px 0 0; padding: 0; }
.mood-history-open { display: block; width: 100%; padding: 0; text-align: left; min-width: 0; }
.mood-history-title { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.mood-history-title>span { font-size: var(--text-title); flex-shrink: 0; }
.mood-history-title b { min-width: 0; font-size: var(--text-body); line-height: 1.6; overflow-wrap: anywhere; }
.mood-history-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: #7c6275; font-size: var(--text-body); line-height: 1.8; white-space: pre-wrap; margin-bottom: 10px; }
.mood-post-link { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; margin-top: 10px; padding: 10px 0 0; border-top: 1px solid #f0e2eb; color: #b24570; font-size: var(--text-label); }
.mood-post-link .icon { width: 17px; height: 17px; }
.modalbody .mood-detail p { text-align: left; color: #674d60; font-size: var(--text-body); line-height: 1.95; }
@media(max-width:359px) { :root { --page-gutter: 16px; }.profile-top { gap: 12px; }.profile-intro,.profile-top .mood-status,.profile-top .military-card { padding: 14px; }.header-title h1 { font-size: var(--text-title); }.stats { padding-left: 4px; padding-right: 4px; }.stats b { font-size: var(--text-title); }.tabs button { padding-left: 12px; padding-right: 12px; }.profile-tabs button { padding-left: 2px; padding-right: 2px; } }

/* v0.9: author-only mode is one complete reading flow, without excerpt cards. */
.author-reader { padding-left: var(--page-gutter); padding-right: var(--page-gutter); }
.author-reader .author>div { min-width: 0; }
.author-reader h2 { font-size: var(--text-title); line-height: 1.65; }
.author-reader .story-reading { flex-wrap: wrap; margin-bottom: 24px; }
.story-continuous { display: block; min-width: 0; width: 100%; }
.story-continuous .body-text { display: block; margin: 0 0 1.4em; font-size: var(--text-body); line-height: 2; color: #514451; white-space: pre-wrap; overflow-wrap: anywhere; overflow: visible; max-height: none; -webkit-line-clamp: unset; }
.story-continuous figure { margin: 24px 0; }
.story-continuous img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; }
.story-continuation { margin: 28px 0 0; padding: 0; background: none; border: 0; border-radius: 0; }
.story-continuation-meta { margin-bottom: 12px; color: #a78999; font-size: var(--text-meta); line-height: 1.7; }
.story-chat { margin: 22px 0; }
.story-chat>small { display: block; margin-bottom: 12px; }
.story-reader-footer { margin-top: 30px; padding-top: 18px; border-top: 1px solid #f1e6ed; }
.reader-end { font-size: var(--text-label); color: #a5909f; text-align: center; }
.reader-share { flex-wrap: wrap; margin: 12px 0 20px; }

/* v0.10: readable feeds, clear writing states and mobile interaction surfaces. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.avatar-link { padding: 0; flex-shrink: 0; min-width: 40px; min-height: 44px; display: inline-grid; place-items: center; }
.card { padding-top: 22px; padding-bottom: 16px; }
.card>.author { gap: 10px; }
.card>.author>div,.tracking-card>.author>div,.detail>.author>div { min-width: 0; }
.card .author-name { font-size: var(--text-label); overflow-wrap: anywhere; }
.card .author .tag { flex-shrink: 0; }
.card-title h3 { font-size: var(--text-heading); line-height: 1.65; font-weight: 600; color: #3f303c; }
.excerpt { font-size: var(--text-body); color: #827481; line-height: 1.85; -webkit-line-clamp: 3; }
.hot-preview { padding: 13px 14px; border: 1px solid #f0eaf0; background: #faf7fa; }
.hot-text { font-size: var(--text-label); line-height: 1.8; color: #786372; }
.actions { gap: 20px; padding-top: 2px; }
.actions button { min-height: 44px; font-size: var(--text-label); }
.actions button svg { width: 21px; height: 21px; }
.actions .follow { min-height: 40px; min-width: 54px; font-size: var(--text-label); }
.actions .comment-action { font-size: var(--text-label); }
.update-note { display: flex; align-items: center; gap: 5px; color: #bb5e7d; }
.update-note .icon { width: 16px; height: 16px; }
.debate-state { display: inline-flex; margin-bottom: 10px; padding: 3px 8px; border-radius: 6px; background: #eee9f9; color: #8265a8; font-size: var(--text-meta); }
.debate-state.ended { color: #948695; background: #edeaf0; }
.eyebrow { display: block; font-size: var(--text-meta); font-weight: 600; color: #ba6485; margin-bottom: 8px; letter-spacing: 1px; }
.jury-intro p { font-size: var(--text-body); line-height: 1.85; }
.jury-intro { margin-bottom: 8px; }
.smallbtn { min-height: 44px; font-size: var(--text-label); }
.writing-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; color: #9a8393; font-size: var(--text-meta); line-height: 1.7; }
.writing-meta>span:first-child { min-width: 0; }
.writing-meta>span:last-child { white-space: nowrap; flex-shrink: 0; }
.over-limit { color: #c73b5d; font-weight: 600; }
.composer-guide { padding: 13px 15px; border-left: 3px solid #eab5ca; background: #fff8fb; border-radius: 3px 11px 11px 3px; font-size: var(--text-label); line-height: 1.9; color: #956880; }
.editor-text-block { background: #fff; }
.form .editor-text-block textarea { background: transparent; min-height: 130px; line-height: 1.95; resize: vertical; }
.insert-image { width: 100%; border-top: 1px solid #f1e8ef; color: #a66686; }
.form input:focus-visible,.form textarea:focus-visible,.form select:focus-visible { outline: 2px solid #e9a1bc; outline-offset: 2px; }
.types { gap: 10px; }
.types button { min-height: 48px; border: 1px solid transparent; }
.types .active { border-color: #efbfd1; background: #ffedf4; }
.comment-sort { display: flex; gap: 4px; margin: -10px 0 16px; }
.comment-sort button { min-width: 56px; min-height: 40px; padding: 7px 12px; color: #a08d9c; font-size: var(--text-label); border-radius: 10px; }
.comment-sort .active { color: #ae3f69; background: #fff0f6; font-weight: 600; }
.comment-entry { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 12px 14px; margin-bottom: 15px; text-align: left; background: #fbf7fa; border: 1px solid #eddfE8; border-radius: 14px; }
.comment-entry>span { color: #a28a9b; flex: 1; min-width: 0; font-size: var(--text-label); }
.comment-entry>b { color: #bd456f; font-size: var(--text-label); flex-shrink: 0; }
.comment-entry>.icon { width: 20px; height: 20px; color: #bf859f; }
.comment p { font-size: var(--text-body); line-height: 1.9; }
.reply { font-size: var(--text-label); line-height: 1.85; }
.comment-actions button { min-height: 40px; font-size: var(--text-label); }
.reader-entry { display: flex; align-items: center; gap: 5px; min-height: 44px; margin-top: 8px; padding: 0; color: #b05b80; font-size: var(--text-label); }
.reader-entry .icon { width: 16px; height: 16px; }
.tracking-read-label { margin-left: auto; flex-shrink: 0; }
.tracking-read-end { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 10px 0; margin-top: 15px; color: #ad98a8; font-size: var(--text-meta); border-top: 1px dashed #ecE0e9; }
.tracking-read-end button { min-height: 44px; color: #bd5b81; font-size: var(--text-label); }
.notification-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px var(--page-gutter); color: #ad8b9f; font-size: var(--text-label); }
.notification { align-items: flex-start; gap: 12px; padding-left: var(--page-gutter); padding-right: var(--page-gutter); }
.notification>span:nth-child(2) { flex: 1; min-width: 0; }
.notification b { font-size: var(--text-body); line-height: 1.7; color: #68445c; }
.notification p { font-size: var(--text-label); line-height: 1.85; }
.notification-dot { flex-shrink: 0; width: 6px; height: 6px; background: #db628f; border-radius: 50%; margin-top: 10px; }
.bottle-record { min-height: 0; padding: 20px; }
.bottle-record .row { flex-wrap: wrap; }
.bottle-original { margin-top: 16px; padding: 12px; background: #f4f6fd; border-radius: 10px; color: #8998b9; font-size: var(--text-label); line-height: 1.8; white-space: pre-wrap; }
.mood-export { margin-bottom: 12px; }
.export-text { width: 100%; min-height: 320px; font-size: var(--text-body); line-height: 1.9; }
.image-unavailable { display: grid; place-items: center; min-height: 150px; width: 100%; padding: 20px; border-radius: 12px; background: #f4f1f5; color: #b0a0ac; font-size: var(--text-label); }
.storage-notice { padding: 14px var(--page-gutter); background: #fff3e7; color: #a76727; font-size: var(--text-label); line-height: 1.8; }
.share-label { display: grid; gap: 10px; font-size: var(--text-label); color: #9e7b91; }
dialog { overscroll-behavior: contain; }
.modalhead { position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 1px solid #f6edf3; padding-top: 14px; padding-bottom: 12px; }
.modalhead h3 { min-width: 0; overflow-wrap: anywhere; }
.modalhead .iconbtn { min-width: 44px; width: 44px; height: 44px; }
.modalbody { padding-top: 20px; }
.modalbody>p { font-size: var(--text-label); line-height: 1.85; }
.form textarea { scroll-margin-top: 90px; }
.keyboard-open .nav { display: none; }
.keyboard-open .phone { padding-bottom: 24px; }
.keyboard-open dialog { max-height: 96dvh; }
@media(max-width:359px) { .actions { gap: 12px; }.card-title h3 { font-size: var(--text-body); }.actions .follow { min-width: 48px; }.comment p,.comment-actions,.reply { margin-left: 0; }.military-record h3 { font-size: var(--text-body); }.modalhead,.modalbody { padding-left: 16px; padding-right: 16px; } }
.muted,.excerpt { color: #796877; }
.tag { color: #776675; }
.tag.pink { color: #ae3b61; }
.tag.blue { color: #5066a6; }
.writing-meta,.tracking-read-end { color: #886779; }
.comment-entry>span { color: #86647b; }
.nav button { color: #806779; }
.form .mood-visibility { color: #7f6477; }
.image-unavailable { color: #7b6275; }

/* v0.11: calm reading paper, clear controls, and stable mobile geometry. */
[hidden] { display: none !important; }
:root { --ink: #392b38; --soft-ink: #756471; --paper-line: #eee5eb; }
body { text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
header { padding-top: calc(14px + env(safe-area-inset-top)); padding-bottom: 12px; box-shadow: none; }
.header-title h1 { font-size: var(--text-title); letter-spacing: .02em; }
.header-title .sub { letter-spacing: .02em; color: #876575; }
.head-actions { gap: 6px; }
.idpill { min-height: 40px; }
.phone>.tabs { position: sticky; top: var(--header-height, 90px); z-index: 9; box-shadow: 0 4px 12px #38253604; }
.tabs { padding-top: 8px; padding-bottom: 8px; }
.tabs button { border-radius: 999px; font-size: var(--text-label); }
.tabs button.active { color: #a72d54; background: #fceaf0; box-shadow: inset 0 0 0 1px #f1cddb; }
.prototype { margin: 10px var(--page-gutter) 12px; color: #806f7c; font-size: var(--text-meta); }
.card { border-bottom: 8px solid #f7f4f7; padding: 22px var(--page-gutter) 14px; }
.card-title h3 { font-size: var(--text-heading); line-height: 1.65; color: var(--ink); }
.excerpt { font-size: var(--text-body); line-height: 1.85; color: var(--soft-ink); }
.feed-photos { background: #f5f1f5; border-radius: 14px; overflow: hidden; }
.feed-photos img { aspect-ratio: 3 / 2; object-fit: cover; height: auto; min-width: 0; }
.hot-preview { border: 0; border-left: 2px solid #e7d4de; border-radius: 0 10px 10px 0; background: #fbf8fa; }
.hot-preview-head { gap: 8px; }
.hot-author { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-text { font-size: var(--text-label); color: #725b6b; }
.actions { gap: 14px; }
.actions button { min-height: 44px; border-radius: 10px; font-size: var(--text-label); }
.actions [data-like-count],.comment-actions [data-like-count] { min-width: 1.5em; font-variant-numeric: tabular-nums; }
.actions .follow { min-width: 60px; min-height: 44px; justify-content: center; border: 1px solid #ead7e1; background: #fffafd; color: #a93c63; font-size: var(--text-label); }
.actions .follow.on { background: #fbeaf1; border-color: #ebc7d6; }
.actions button:active,.comment-actions button:active { background-color: #fae9f1; }
.detail>h2,.author-reader h2 { color: var(--ink); font-size: var(--text-title); line-height: 1.65; }
.detail .body-text { font-size: var(--text-body); line-height: 1.95; color: #514351; }
.story-continuous .body-text { font-size: var(--text-body); line-height: 2; }
.story-reading { border: 1px solid var(--paper-line); background: #fcfafc; padding: 12px; }
.story-reading>span { line-height: 1.7; }
.story-continuation-meta { color: #806777; font-size: var(--text-label); }
.story-continuation { padding-top: 16px; border-top: 1px solid #f0e8ee; }
.reader-end { color: #826879; }
.reader-entry { color: #a33863; gap: 8px; }
.reader-entry .icon { margin-left: auto; }
.tracking-cancel-note { color: #826f7c; font-size: var(--text-label); line-height: 1.75; margin-top: 10px; }
.tracking-card .tracking-read-end { flex-wrap: wrap; }
.folder-row.unfollowed .folder-title { opacity: .6; }
.folder-unfollow { min-width: 48px; font-size: var(--text-label); }
.folder-note { font-size: var(--text-label); line-height: 1.8; }
.comment { scroll-margin-top: 170px; }
.comment .author { flex-wrap: wrap; gap: 8px; align-items: center; }
.comment-author { flex: 1 1 125px; }
.comment .rank-badge { flex-shrink: 0; }
.comment p { font-size: var(--text-body); line-height: 1.9; }
.comment-actions { gap: 14px; flex-wrap: wrap; }
.comment-actions button { min-height: 44px; font-size: var(--text-label); gap: 6px; }
.comment-honors-slot:empty { display: none; }
.reply { margin-left: 16px; padding: 10px 12px; border-radius: 0 10px 10px 0; border-left: 2px solid #e5d7e0; background: #faf7fa; font-size: var(--text-label); }
.just-posted { animation: comment-arrival 2s ease-out; }
@keyframes comment-arrival { from { background-color: #fff0f5; } to { background-color: transparent; } }
.discussion-ended,.discussion-empty { padding: 18px 0; color: #826b7c; font-size: var(--text-label); line-height: 1.8; }
.comment-sort { margin-top: 0; }
.comment-sort button { min-height: 44px; }
.debate-score .scoreline { font-size: var(--text-label); line-height: 1.7; }
.debate-score .scoreline b { font-size: var(--text-heading); color: #8f4067; font-variant-numeric: tabular-nums; }
.debate-score .scoreline span:last-child b { color: #455f9c; }
.debate-score .progress { height: 7px; background: #d6e1f9; }
.debate-score .progress i { background: #cb688f; transition: width .2s ease-out; }
.side-choice { min-width: 0; }
.side-choice b { font-size: var(--text-body); line-height: 1.7; }
.side-choice small { font-size: var(--text-label); line-height: 1.7; }
.side-choice:disabled { opacity: .65; }
.discovery-card { box-shadow: none; border-radius: 20px; }
.discovery-jury { border-color: #ecd5e0; }
.discovery-bottle { border-color: #dce5f4; }
.discovery-follow { border-color: #e8d9e4; }
.discovery-preview { color: #5f4659; font-size: var(--text-body); line-height: 1.8; }
.discovery-bottle .discovery-preview { color: #415b84; }
.discovery-foot { font-size: var(--text-label); line-height: 1.8; flex-wrap: wrap; gap: 8px; }
.bottle-screen>h2 { font-size: var(--text-title); }
.letter>p { font-size: var(--text-body); line-height: 1.95; }
.bottle-original { color: #52658d; border-left: 2px solid #becdea; border-radius: 0 10px 10px 0; }
.profile-intro { background: white; box-shadow: none; }
.profile-name { font-size: var(--text-title); }
.stats small { font-size: var(--text-label); color: #776271; }
.stats b { color: #493440; font-variant-numeric: tabular-nums; }
.profile-shortcuts { padding-left: var(--page-gutter); padding-right: var(--page-gutter); }
.profile-shortcuts button { text-align: left; justify-content: flex-start; padding: 14px; border: 1px solid #eee2ea; background: #fffafd; }
.profile-shortcuts small { display: block; margin-top: 4px; font-size: var(--text-meta); }
.visitor-empty { text-align: center; padding: 40px var(--page-gutter); }
.visitor-empty p { font-size: var(--text-label); color: var(--muted); margin-top: 8px; }
.form input,.form textarea,.form select { font-size: var(--text-body); }
.form label,.editor-label { font-size: var(--text-label); }
.compose-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.compose-tools .smallbtn { display: inline-flex; align-items: center; gap: 6px; color: #925070; }
.compose-submit { min-height: 52px; border-radius: 14px; }
.post-preview { min-width: 0; }
.post-preview h2 { margin: 16px 0; font-size: var(--text-title); line-height: 1.7; }
.post-preview .body-text { color: #4c3d49; font-size: var(--text-body); line-height: 1.95; }
.preview-note { font-size: var(--text-label); margin: 20px 0 16px; color: #866678; }
.preview-sides { border: 1px solid #eee0e8; padding: 12px; border-radius: 12px; }
.preview-sides p { font-size: var(--text-label); line-height: 1.9; }
.reply-context { margin: 0 0 16px; padding: 12px 14px; border-left: 2px solid #ddbacc; background: #faf5f8; color: #866779; font-size: var(--text-label); line-height: 1.8; white-space: pre-wrap; }
.dialog-feedback { margin: 0 0 16px; padding: 11px 14px; color: #9c3657; background: #fff0f4; border-radius: 10px; font-size: var(--text-label); line-height: 1.8; }

/* v0.12 — One bottom interaction bar; clear sides and directly tappable threads. */
.detail-page { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
.detail-dock { position: fixed; z-index: 15; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--app-width); display: grid; grid-template-columns: minmax(0,1fr) repeat(3,48px); align-items: center; gap: 4px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid #f0e9ed; background: #fffffff5; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.dock-write { min-width: 0; min-height: 44px; padding: 10px 13px; background: #f6f3f5; border-radius: 24px; color: #857681; text-align: left; font-size: var(--text-label); }
.dock-write span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-action { min-height: 48px; padding: 2px; display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; color: #675b65; }
.dock-action .icon { width: 23px; height: 23px; stroke-width: 1.7; }
.dock-action span { font-size: var(--text-meta); line-height: 1.2; font-variant-numeric: tabular-nums; }
.dock-follow { min-height: 48px; font-size: var(--text-title); font-weight: 600; color: #74606d; padding: 0; }
.dock-follow.on { font-size: var(--text-label); }
.detail-dock .on,.comment-like.on { color: var(--pink); }
.detail-dock .on .icon-fill,.comment-like.on .icon-fill { fill: currentColor; }
.detail-dock button:active { background-color: #fae9f1; border-radius: 20px; }
.discussion-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 30px 0 12px; }
.discussion-heading .section-title { margin: 0; font-size: var(--text-heading); }
.discussion-heading .section-title small { margin-left: 7px; font-weight: 400; white-space: nowrap; }
.discussion-heading .comment-sort { flex-shrink: 0; margin: 0; gap: 0; }
.discussion-heading .comment-sort button { padding: 5px 8px; min-width: 44px; font-size: var(--text-label); }
.opinion-filters { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.opinion-filter { min-height: 46px; padding: 8px 4px; border: 1px solid #ede6ec; border-radius: 13px; font-size: var(--text-label); color: #83717e; background: #fcfafb; }
.opinion-filter>span { display: block; font-weight: 600; }
.opinion-filter small { font-size: var(--text-meta); color: inherit; font-weight: 400; }
.opinion-filter em { display: block; font-size: var(--text-meta); font-weight: 500; font-style: normal; margin-top: 2px; }
.opinion-filter.active.side-all { border-color: #9a718d; background: #f3eaf0; color: #704c64; }
.side-a { --side-color: #af395f; --side-bg: #fff1f6; --side-border: #e9a1b9; }
.side-b { --side-color: #3f65ad; --side-bg: #eff5ff; --side-border: #a7bfe8; }
.opinion-filter.side-a,.opinion-filter.side-b { color: var(--side-color); background: var(--side-bg); }
.opinion-filter.active:not(.side-all) { border-color: var(--side-color); box-shadow: inset 0 0 0 1px var(--side-color); }
.opinion-tag { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 6px; color: var(--side-color); background: var(--side-bg); font-size: var(--text-meta); line-height: 1.5; flex-shrink: 0; }
.comment-list .comment { margin: 0; padding: 20px 0; border-top: 1px solid #f0eaee; border-radius: 0; }
.comment-grid { display: grid; grid-template-columns: minmax(0,1fr) 44px; align-items: start; gap: 6px; }
.comment-main { min-width: 0; }
.comment .author { margin: 0 0 7px; gap: 6px; }
.comment .comment-author { max-width: 100%; min-width: 0; gap: 8px; min-height: 36px; }
.comment .comment-author .avatar { width: 30px; height: 30px; font-size: var(--text-label); border-radius: 11px; }
.comment .comment-author .author-name { font-size: var(--text-label); overflow-wrap: anywhere; line-height: 1.4; }
.comment .rank-badge { font-size: var(--text-meta); }
.comment-copy { display: block; width: 100%; padding: 0 0 0 38px; min-height: 44px; text-align: left; font-size: var(--text-body); line-height: 1.85; color: #40333c; }
.comment-copy>span { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-like { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 44px; min-height: 52px; padding: 5px 0; color: #a08e9a; border-radius: 12px; }
.comment-like .icon { width: 20px; height: 20px; }
.comment-like span { font-size: var(--text-meta); font-variant-numeric: tabular-nums; }
.comment-like:active { background: #fff0f6; }
.comment-meta { display: flex; gap: 12px; align-items: center; min-height: 25px; margin: 3px 0 0 38px; }
.comment-meta small { color: #a18e9a; font-size: var(--text-meta); }
.comment-meta button { color: var(--pink); min-height: 44px; padding: 0; font-size: var(--text-meta); }
.comment .comment-honors { margin-left: 38px; margin-top: 8px; }
.comment-side-a .comment-copy>span { border-left: 2px solid #e9a1b9; padding: 7px 10px; background: #fff6f9; border-radius: 0 8px 8px 0; }
.comment-side-b .comment-copy>span { border-left: 2px solid #a7bfe8; padding: 7px 10px; background: #f4f8ff; border-radius: 0 8px 8px 0; }
.comment-side-a .comment-author .author-name { color: #a74061; }
.comment-side-b .comment-author .author-name { color: #4166a6; }

.reply-preview { margin: 10px 0 0 38px; padding: 5px 11px; border-radius: 10px; background: #f8f6f8; }
.reply-line { width: 100%; display: block; padding: 7px 0; min-height: 44px; text-align: left; line-height: 1.8; font-size: var(--text-label); color: #685763; overflow-wrap: anywhere; }
.reply-author { color: #846176; font-weight: 600; margin-right: 6px; }
.reply-author small { margin-left: 4px; color: var(--pink); font-size: var(--text-meta); }
.reply-author .opinion-tag { margin-left: 5px; }
.reply-to { margin-right: 6px; color: #a18495; font-size: var(--text-meta); }
.reply-text { white-space: pre-wrap; }
.thread-more { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0; font-size: var(--text-meta); color: #9b567b; }
.thread-more svg { width: 14px; height: 14px; }
.score-rules p { margin: 0 0 16px; color: #735e6c; font-size: var(--text-label); }
dialog.thread-sheet[open] { display: flex; flex-direction: column; height: 66vh; height: min(66dvh, var(--dialog-viewport-height, 66dvh)); max-height: var(--dialog-viewport-height, 88dvh); overflow: hidden; }
.thread-sheet:before { flex-shrink: 0; }
.thread-sheet .modalhead { flex-shrink: 0; padding-top: 9px; padding-bottom: 9px; }
.thread-sheet .modalhead h3 { font-size: var(--text-body); }
.thread-sheet .modalbody { min-height: 0; flex: 1; display: flex; flex-direction: column; padding: 0; }
.thread-sheet .dialog-feedback { flex-shrink: 0; margin: 0 16px 8px; padding: 8px 12px; }
.thread-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 20px 14px; }
.thread-scroll>.comment { border: 0; padding: 10px 0 18px; }
.thread-replies { border-top: 1px solid #f0e8ee; padding-top: 12px; }
.thread-replies h4 { font-size: var(--text-label); font-weight: 600; margin: 0 0 8px; color: #8f7888; }
.sheet-reply { padding: 13px 0; border-bottom: 1px solid #f5eff3; }
.sheet-reply .reply-author { display: block; margin-bottom: 5px; }
.sheet-reply .reply-time { display: block; font-size: var(--text-meta); color: #a28c9a; margin-top: 5px; }
.thread-sheet .thread-empty { font-size: var(--text-label); color: #a28b9c; padding: 16px 0; margin: 0; }
.thread-composer { flex-shrink: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid #efe6ec; gap: 7px; background: #fff; }
.thread-composer .thread-recipient { display: flex; align-items: center; gap: 5px; font-size: var(--text-label); color: #8d7885; }
.thread-recipient b { max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #905671; }
.thread-recipient small { margin-left: auto; font-size: var(--text-meta); }
.thread-input-row { display: flex; align-items: flex-end; gap: 8px; }
.thread-composer textarea { min-height: 52px; max-height: 100px; height: 56px; padding: 10px 12px; border: 1px solid #eee3ea; border-radius: 14px; background: #faf7f9; font-size: var(--text-body); line-height: 1.6; resize: none; flex: 1; min-width: 0; }
.thread-input-row .primary { min-height: 44px; width: 58px; padding: 8px; flex-shrink: 0; border-radius: 13px; font-size: var(--text-label); }
.thread-composer .writing-meta { margin: 0; font-size: var(--text-meta); }
.thread-composer .reply-context { margin: 0; padding: 4px 8px; font-size: var(--text-meta); max-height: 44px; overflow-y: auto; }
.thread-closed { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid #eee5eb; background: #faf7f9; font-size: var(--text-label); color: #92798a; }
.keyboard-open .detail-dock { display: none; }
.keyboard-open dialog.thread-sheet { height: var(--dialog-viewport-height, 96dvh); max-height: var(--dialog-viewport-height, 96dvh); }
@media(max-width:359px) { .detail-dock { grid-template-columns: minmax(0,1fr) repeat(3,44px); padding-left: 10px; padding-right: 10px; gap: 2px; }.dock-write { font-size: var(--text-label); padding-left: 10px; }.comment-copy { padding-left: 0; }.comment-meta,.reply-preview,.comment .comment-honors { margin-left: 0; }.discussion-heading .section-title { font-size: var(--text-body); }.thread-scroll { padding-left: 16px; padding-right: 16px; } }
.modalhead h3 { font-size: var(--text-heading); line-height: 1.65; }
.modalbody { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
@media(max-width:359px) {
  .header-title h1 { font-size: var(--text-title); }
  .head-actions { gap: 4px; }.idpill { padding-left: 8px; padding-right: 8px; }
  .card-title h3 { font-size: var(--text-body); }.actions { gap: 10px; }
  .actions .follow { min-width: 52px; }.actions .comment-action { gap: 4px; }
  .profile-shortcuts { gap: 8px; }.profile-shortcuts button { padding: 12px 9px; gap: 5px; }
  .comment-author { flex-basis: 110px; }.reply { margin-left: 8px; }
  .discovery-top { gap: 10px; }.discovery-copy strong { font-size: var(--text-heading); }
}
@media(prefers-reduced-motion:reduce) { .just-posted { animation: none; }.debate-score .progress i { transition: none; } }

.image-import-status { color: #905572; background: #fcf1f6; padding: 10px 12px; border-radius: 10px; font-size: var(--text-label); line-height: 1.8; }

.comment-time { margin-left: auto; font-size: var(--text-meta); color: #826f7b; align-self: center; }

/* v0.13 — One author badge and one interaction scale, on every surface. */
:root { --interaction-color: #786a79; --interaction-size: 21px; }
.author-mark { display: inline-flex; align-items: center; vertical-align: middle; flex: 0 0 auto; padding: 2px 6px; border-radius: 5px; background: #fff0f5; color: #b83e64; font-size: var(--text-meta); font-weight: 500; line-height: 18px; white-space: nowrap; }
.reply-author .author-mark { margin-left: 6px; }
.comment-grid { display: block; }
.comment-meta { flex-wrap: wrap; gap: 8px; }
.interaction-pair { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-left: auto; }
.actions { justify-content: flex-end; gap: 8px; }
.actions .follow { margin-left: 0; }
.interaction-action, .actions .interaction-action, .comment-meta .interaction-action { display: inline-flex; flex-direction: row; align-items: center; justify-content: center; flex-shrink: 0; gap: 6px; width: auto; min-width: 44px; min-height: 44px; padding: 0 4px; border-radius: 10px; color: var(--interaction-color); font-size: var(--text-label); line-height: 20px; }
.interaction-action .icon, .actions .interaction-action .icon { width: var(--interaction-size); height: var(--interaction-size); flex: 0 0 var(--interaction-size); stroke-width: 1.75; }
.interaction-action span, .comment-like span { font-size: var(--text-label); line-height: 20px; font-weight: 400; font-variant-numeric: tabular-nums; }
.interaction-action.on, .actions .interaction-action.on, .comment-meta .interaction-action.on { color: var(--pink); }
.interaction-action.on .icon-heart .icon-fill { fill: currentColor; }

.detail-dock { grid-template-columns: minmax(0,1fr) auto auto auto; gap: 8px; }
.actions .follow, .detail-dock .dock-follow { min-width: 48px; min-height: 44px; padding: 0 8px; border: 1px solid #ead7e1; border-radius: 10px; background: #fffafd; color: #a93c63; font-size: var(--text-label); font-weight: 600; }
.actions .follow.on, .detail-dock .dock-follow.on { background: #fbeaf1; border-color: #ebc7d6; font-size: var(--text-label); }
.hot-preview-copy { width: 100%; padding: 0; text-align: left; }
.hot-preview>.interaction-pair { margin-top: 4px; }
.hot-preview-head { flex-wrap: wrap; }
@media(max-width:359px) { .detail-dock { grid-template-columns: minmax(0,1fr) auto auto auto; gap: 4px; }.actions { gap: 8px; }.comment-meta { margin-left: 0; } }

/* Invisible pointer hit targets; retain a keyboard-only focus indicator. */
.interaction-action:active, .actions .interaction-action:active, .comment-meta .interaction-action:active, .detail-dock .interaction-action:active, .hot-preview .interaction-action:active { background: transparent; box-shadow: none; }
.interaction-action:focus:not(:focus-visible) { outline: none; }
/* A continuous writing surface with movable images. */
.compose-page { padding-top: 16px; }
.compose-page .types { gap: 8px; margin-bottom: 22px; }
.compose-page .types button { border-radius: 20px; font-size: var(--text-label); min-height: 40px; }
.writing-form { gap: 16px; }
.compose-identity { display: flex; align-items: center; gap: 10px; font-size: var(--text-label); }
.compose-identity .avatar { width: 34px; height: 34px; font-size: var(--text-label); }
.compose-identity small { display: block; margin-top: 2px; color: var(--muted); font-size: var(--text-meta); }
.writing-form .compose-title input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; font-size: var(--text-title); font-weight: 600; padding: 14px 0; box-shadow: none; }
.compose-page .composer-guide { padding: 0; border: 0; background: none; color: var(--muted); font-size: var(--text-label); }
.compose-page .editor-label { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.compose-page .editor-label .meta { display: inline; margin: 0; font-size: var(--text-meta); }
.editor-blocks { display: flex; flex-direction: column; gap: 0; }
.editor-text-block { border: 0; border-radius: 0; background: transparent; overflow: visible; }
.form .editor-text-block textarea { padding: 8px 0; background: transparent; min-height: 76px; font-size: var(--text-body); line-height: 1.9; resize: none; box-shadow: none; }
.editor-text-block:first-of-type textarea { min-height: 150px; }
.paragraph-tools { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.paragraph-tools button { color: var(--muted); min-height: 44px; font-size: var(--text-label); padding: 0; }
.paragraph-tools .insert-image { gap: 6px; }
.editor-image { margin: 6px 0; overflow: hidden; border: 1px solid #eee5eb; border-radius: 12px; }
.editor-image img { border-radius: 0; max-height: 360px; }
.image-edit-tools { display: flex; align-items: center; justify-content: space-between; background: #faf7fa; padding: 0 6px; gap: 4px; }
.editor-image .image-edit-tools button { position: static; width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 8px; background: transparent; color: #786a79; font-size: var(--text-heading); }
.editor-image .image-drag-handle { display: flex; width: auto; padding: 0 6px; gap: 6px; touch-action: none; cursor: grab; user-select: none; }
.image-drag-handle span { font-size: var(--text-label); }
.image-order-tools { display: flex; }
.image-order-tools svg { width: 18px; height: 18px; }
.editor-drop-slot { position: relative; height: 8px; flex-shrink: 0; }
.editor-drop-slot span { display: none; }
.editor-is-dragging .editor-drop-slot { background: #fcf7fa; border-radius: 5px; }
.editor-is-dragging .editor-drop-slot.drop-active { background: var(--pink); }
.editor-is-dragging .drop-active span { display: block; position: absolute; z-index: 2; right: 0; top: -10px; padding: 2px 8px; color: #fff; background: var(--pink); border-radius: 6px; font-size: var(--text-meta); }
.editor-image.drag-source { opacity: .3; }
.editor-drag-ghost { position: fixed; z-index: 100; pointer-events: none; width: 90px; height: 90px; object-fit: cover; border-radius: 12px; box-shadow: 0 8px 24px #40333c35; opacity: .9; }
/* v0.14 — Keyboard-adjacent tools, compact galleries and replies waiting nearby. */
.compose-phone { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
.keyboard-open .compose-phone { padding-bottom: 90px; }
.composer-toolbar { position: fixed; z-index: 20; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: var(--app-width); display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 16px calc(6px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #ede5eb; }
.composer-media-tools { display: flex; gap: 16px; }
.composer-toolbar button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; gap: 7px; padding: 0 4px; color: #77546a; font-size: var(--text-label); }
.composer-toolbar .icon { width: 22px; height: 22px; }
.composer-toolbar .toolbar-done { color: #8a7a86; font-size: var(--text-label); }
.composer-toolbar .composer-media-tools { gap: 4px; }
.composer-media-tools > button { flex-direction: column; gap: 2px; font-size: 11px; line-height: 14px; }
.composer-publish-tools { display: flex; align-items: center; gap: 8px; }
.composer-toolbar .compose-submit { min-width: 68px; min-height: 40px; padding: 0 14px; border-radius: 20px; background: var(--pink); color: #fff; font-size: 14px; white-space: nowrap; }
.composer-toolbar .compose-submit:disabled { opacity: .45; }
.keyboard-open .composer-toolbar { padding-bottom: 6px; }
.form .editor-text-block textarea { min-height: 60px; padding: 6px 0; }
.editor-text-block:has(textarea:placeholder-shown) textarea { min-height: 52px; }
.editor-blocks>.editor-text-block:first-of-type:only-of-type textarea { min-height: 170px; }
.editor-blocks { gap: 0; }
.media-gallery { margin-top: 14px; overflow: hidden; border: 1px solid #eee7ec; border-radius: 14px; background: #faf8fa; }
.gallery-strip { display: flex; width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gallery-strip::-webkit-scrollbar, .waiting-strip::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; min-width: 0; height: 224px; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; }
.gallery-image-button { display: block; width: 100%; height: 100%; padding: 0; overflow: hidden; }
.gallery-image-button img { display: block; width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: top; }
.gallery-footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 36px; padding: 0 10px; background: #fff; color: #8b7b85; font-size: var(--text-meta); }
.gallery-controls { display: flex; align-items: center; flex-shrink: 0; }
.gallery-controls button { width: 36px; min-height: 40px; padding: 0; font-size: var(--text-title); }
.gallery-count { min-width: 32px; text-align: center; font-variant-numeric: tabular-nums; }
.gallery-full { margin: 0; border: 0; border-radius: 0; }
.gallery-full .gallery-slide { height: 58vh; overflow-y: auto; }
.gallery-full .gallery-slide>img { display: block; width: 100%; height: auto; }
.gallery-full .gallery-footer { position: sticky; bottom: 0; }
.local-video { position: relative; width: 100%; background: #201b22; color: #fff; }
.local-video video { display: block; width: 100%; max-height: 360px; }
.video-status { display: block; padding: 12px; font-size: var(--text-label); line-height: 1.6; }
.video-status[hidden] { display: none; }
.gallery-slide .local-video, .gallery-slide video { height: 100%; }
.gallery-full .local-video video { max-height: none; }
.editor-drag-ghost:not(img) { display: grid; place-items: center; color: white; background: #40333c; }
.waiting-replies { padding: 17px 0 12px; border-bottom: 1px solid #f2e8ee; background: linear-gradient(180deg,#fff8fc 0%,#fff 100%); }
.waiting-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 var(--page-gutter); margin-bottom: 12px; }
.waiting-heading h2 { font-size: var(--text-heading); line-height: 1.4; font-weight: 600; color: #583b4c; }
.waiting-heading>span { color: #b83e64; font-size: var(--text-meta); background: #ffeef5; padding: 4px 8px; border-radius: 20px; }
.waiting-strip { display: flex; align-items: stretch; gap: 12px; padding: 0 var(--page-gutter); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-left: var(--page-gutter); }
.waiting-card { flex: 0 0 86%; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px; text-align: left; border-radius: 14px; border: 1px solid #edd8e4; background: #fff; scroll-snap-align: start; }
.waiting-card:only-child { flex-basis: 100%; }
.waiting-author { display: flex; align-items: center; gap: 7px; min-width: 0; color: #8e7585; font-size: var(--text-meta); }
.waiting-author .avatar { width: 25px; height: 25px; font-size: var(--text-meta); border-radius: 9px; flex-shrink: 0; }
.waiting-author>span:not(.avatar) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.waiting-author small { margin-left: auto; flex-shrink: 0; font-size: var(--text-meta); }
.waiting-card>strong { font-size: var(--text-body); line-height: 1.6; color: #463240; }
.waiting-card>strong, .waiting-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.waiting-excerpt { color: #8a7683; font-size: var(--text-label); line-height: 1.7; }
.waiting-bottom { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 4px; }
.waiting-bottom small { font-size: var(--text-meta); color: #9d8292; }
.waiting-bottom>span { display: inline-flex; align-items: center; gap: 4px; color: #b83e64; font-size: var(--text-label); }
.waiting-bottom .icon { width: 16px; height: 16px; }
.waiting-hint { padding: 10px var(--page-gutter) 0; font-size: var(--text-meta); color: #a28b99; }

.compose-phone textarea { scroll-margin-bottom: 100px; }
/* v0.15 — Compact jury entry; private jars with readable labels. */
.jury-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px var(--page-gutter) 8px; background: #fff; }
.jury-toolbar p { font-size: var(--text-label); color: #66525f; line-height: 1.5; }
.jury-rules-link { display: inline-flex; align-items: center; gap: 4px; padding: 0; min-height: 36px; font-size: var(--text-meta); color: #98828f; }
.jury-rules-link .icon { width: 13px; height: 13px; }
.jury-toolbar .jury-create { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; min-height: 42px; padding: 8px 12px; border-radius: 22px; font-size: var(--text-label); }
.jury-create .icon { width: 17px; height: 17px; }
.discovery-capsule { --discovery-bg: #fff8f3; --discovery-border: #eddacb; --discovery-color: #93604b; }
.capsule-symbol { background: transparent; }
.capsule-symbol img { width: 52px; height: 52px; object-fit: contain; }
.capsule-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 20px; }
.capsule-toolbar h2 { font-size: var(--text-heading); line-height: 1.5; }
.capsule-toolbar p { color: #96818e; font-size: var(--text-meta); margin-top: 5px; }
.capsule-toolbar .primary { display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; padding: 9px 13px; border-radius: 22px; }
.capsule-toolbar .icon { width: 17px; height: 17px; }
.capsule-ready { padding: 11px 14px; border-radius: 12px; color: #b03e62; background: #fff0f6; font-size: var(--text-label); margin-bottom: 16px; }
.capsule-ready[hidden] { display: none; }
.capsule-shelf { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.capsule-card { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 12px 10px 16px; background: #fffaf7; border: 1px solid #f0e3dc; border-radius: 18px; text-align: center; }
.capsule-state { display: inline-block; padding: 3px 9px; color: #a86853; background: #f7eae2; border-radius: 20px; font-size: var(--text-meta); line-height: 1.6; }
.capsule-jar { display: block; width: 100%; height: 142px; object-fit: contain; margin: 4px 0; }
.capsule-card strong { width: 100%; font-size: var(--text-label); line-height: 1.65; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.capsule-card small { font-size: var(--text-meta); color: #a2887c; margin-top: 8px; }
.capsule-card-date { font-size: var(--text-meta); color: #aa6c58; margin-top: 5px; }
.capsule-card.is-open { background: #fff; }
.capsule-card.is-open .capsule-state { color: #827080; background: #f4edf2; }
.capsule-empty { text-align: center; padding: 12px 4px 28px; }
.capsule-empty img { width: 190px; height: 190px; object-fit: contain; }
.capsule-empty h3 { font-size: var(--text-heading); margin: 8px 0; }
.capsule-empty p { font-size: var(--text-label); line-height: 1.8; color: #96818e; margin-bottom: 22px; }
.capsule-seal-note { padding: 12px 14px; border-radius: 12px; background: #fff7f3; color: #966853; line-height: 1.8; font-size: var(--text-label); }
.capsule-seal-note small { font-size: var(--text-meta); }
.capsule-sealed { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.capsule-sealed img { width: 170px; height: 170px; object-fit: contain; }
.capsule-sealed p { font-size: var(--text-label); line-height: 1.85; color: #967766; }
.capsule-sealed small { font-size: var(--text-meta); line-height: 1.8; color: #9e8a94; }
.capsule-letter { padding: 18px; background: #fffaf3; border: 1px solid #f2e4d4; border-radius: 12px; margin-bottom: 22px; }
.capsule-letter small { color: #ac8765; font-size: var(--text-meta); }
.capsule-letter p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--text-body); line-height: 1.9; margin-top: 12px; }
@media(max-width:359px) { .jury-toolbar { gap: 8px; }.jury-toolbar p { font-size: var(--text-label); }.jury-toolbar .jury-create { padding: 8px 10px; }.capsule-shelf { gap: 10px; }.capsule-jar { height: 120px; } }
/* Compact shared title bars; keep 44px touch targets. */
header { padding-top: calc(5px + env(safe-area-inset-top)); padding-bottom: 5px; gap: 8px; }
.header-title h1 { font-size: var(--text-title); line-height: 26px; letter-spacing: 0; font-weight: 600; }
.header-title .sub { margin-top: 0; font-size: var(--text-meta); line-height: 16px; letter-spacing: 0; }
header .backlabel { min-height: 44px; font-size: var(--text-heading); gap: 4px; }
header .backlabel span { line-height: 1.35; }
header .head-actions { gap: 3px; }
header .head-actions .iconbtn { width: 44px; min-width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; }
header .head-actions .iconbtn .icon { width: 21px; height: 21px; }
header .idpill { min-height: 44px; padding: 5px 8px; border: 0; background: transparent; font-size: var(--text-meta); }
header .dot { top: 9px; right: 9px; }
.phone>.tabs { top: var(--header-height, 54px); }
@media(max-width:359px) { header .backlabel { font-size: var(--text-body); }.header-title h1 { font-size: var(--text-title); } }

/* v0.16: a matching family of tangible discovery objects. */
.discovery-object,.discovery-symbol.capsule-symbol { width: 56px; height: 56px; border-radius: 0; background: transparent; }
.discovery-object img,.discovery-symbol.capsule-symbol img { display: block; width: 56px; height: 56px; object-fit: contain; }
.form input.capsule-datetime { min-width: 0; max-width: 100%; width: 100%; min-height: 46px; font-size: var(--text-body); }
.capsule-card-date { line-height: 1.6; }

/* v0.17: semantic typography; same role, same size across routes. */
body { font-size: var(--text-body); line-height: 1.6; font-weight: 400; }
b, strong, h1, h2, h3 { font-weight: 600; }
.header-title h1, header .backlabel { font-size: var(--text-title); line-height: 1.4; letter-spacing: 0; }
.card-title h3, .waiting-card>strong, .waiting-heading h2,
.discovery-copy strong, .capsule-toolbar h2, .section-title,
.discussion-heading .section-title, .modalhead h3 { font-size: var(--text-heading); line-height: 1.5; font-weight: 600; }
.detail>h2, .author-reader h2, .post-preview h2,
.writing-form .compose-title input { font-size: var(--text-title); line-height: 1.5; font-weight: 600; }
.excerpt, .detail .body-text, .story-continuous .body-text,
.post-preview .body-text, .comment p, .comment-copy, .thread-copy,
.letter>p, .capsule-letter p, .form .editor-text-block textarea { font-size: var(--text-body); line-height: 1.8; }
.primary, .secondary, .smallbtn, .tabs button, .author-name,
header .idpill, .discovery-foot, .discovery-foot>span, .jury-rules-link,
.capsule-card-date, .capsule-state { font-size: var(--text-label); line-height: 1.5; }
.meta, .comment-time, .writing-meta, .gallery-footer { font-size: var(--text-meta); line-height: 1.5; }
.header-title, .discovery-copy { min-width: 0; }
.header-title h1, header .backlabel { overflow-wrap: anywhere; }

/* v0.19: restore warm palette; compact inline comment previews. */
.hot-preview, .hot-preview.military-hot, .debate-comment-row { display: flex; align-items: center; gap: 8px; padding: 4px 10px; margin-top: 10px; border: 0; background: #faf7fa; border-radius: 9px; min-width: 0; }
.hot-preview-copy { display: flex; align-items: center; gap: 7px; flex: 1; width: auto; min-width: 0; min-height: 44px; padding: 0; text-align: left; }
.hot-preview-copy .avatar { width: 24px; height: 24px; min-width: 24px; border-radius: 50%; font-size: var(--text-meta); }
.hot-preview-copy .hot-text { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 1.5; font-size: var(--text-label); color: #746371; }
.hot-preview-copy .hot-author { color: #63515f; font-size: inherit; }
.hot-preview>.interaction-action, .debate-comment-row>.interaction-action { margin: 0; flex-shrink: 0; min-height: 44px; padding: 0; }
.debate-comments { margin-top: 10px; padding: 4px 10px; border-radius: 10px; background: #faf7fa; }
.debate-comment-row { margin: 0; padding: 0; border-radius: 0; background: transparent; }
.debate-comment-row+.debate-comment-row { border-top: 1px solid #f0e8ee; }
.debate-comment-row .opinion-tag { flex-shrink: 0; }
.support-note { margin-top: 6px; font-size: var(--text-meta); color: var(--muted); }

/* v0.20: one circular avatar shape; anonymous identities share one neutral portrait. */
#app .avatar, #modal .avatar { border-radius: 50%; overflow: hidden; }
#app .avatar-anonymous, #modal .avatar-anonymous { background: #f3eaf1; color: #ad819d; box-shadow: none; border: 1px solid #ffffff80; }
.avatar-anonymous .icon { width: 62%; height: 62%; }
.avatar-anonymous .icon-fill { fill: currentColor; stroke: none; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.support-result { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--paper-line); font-size: var(--text-label); color: #85536f; line-height: 1.6; }

/* v0.21: a quiet composer; reserve status text for failed saves. */
.writing-form #post-word-count { margin-left: auto; }
.writing-form #draft-save-state:not([hidden]) { color: #b63859; }

/* v0.22: private capsule follow-ups remain separate, dated entries. */
.capsule-followups { margin: 22px 0; }
.capsule-followups h3 { display: flex; align-items: baseline; gap: 7px; font-size: var(--text-heading); margin-bottom: 4px; }
.capsule-followups ol { padding: 0; margin: 0; list-style: none; }
.capsule-followups li { padding: 14px 0; border-bottom: 1px solid var(--paper-line); scroll-margin: 80px 0 24px; }
.capsule-followups time { display: block; color: var(--muted); font-size: var(--text-meta); line-height: 1.5; }
.capsule-followups p { margin: 6px 0 0; color: #514351; font-size: var(--text-body); line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.capsule-reflection .writing-meta { justify-content: flex-end; }

/* v0.23: quiet archive pocket and support entry. */
.profile-feedback { display: flex; align-items: center; gap: 10px; width: calc(100% - 2 * var(--page-gutter)); margin: 0 var(--page-gutter) 16px; min-height: 48px; padding: 12px 14px; border: 1px solid #eee2ea; border-radius: 12px; background: #fffafd; color: #7e6586; font-size: var(--text-label); text-align: left; }
.profile-feedback .icon { width: 20px; height: 20px; }
.profile-feedback .icon:last-child { margin-left: auto; width: 16px; color: #bda7b5; }
.support-form textarea { min-height: 148px; }
.support-form button:disabled { opacity: .65; }
.legacy-page .phone { min-height: 100dvh; padding-bottom: 32px; }
.legacy-page header { justify-content: flex-start; }
.legacy-page header h1 { font-size: var(--text-heading); }
.legacy-back { display: grid; place-items: center; width: 44px; height: 44px; color: #71515f; text-decoration: none; font-size: var(--text-title); }
.legacy-readonly { margin-left: auto; color: #a58b98; font-size: var(--text-meta); }
.legacy-empty { text-align: center; padding: 64px 12px; color: #967d8d; font-size: var(--text-label); }
.legacy-empty button { margin-top: 16px; }
.legacy-post { padding: 20px 0; border-bottom: 1px solid #f0e6ec; }
.legacy-post small { color: #99808f; font-size: var(--text-meta); }
.legacy-post h2 { margin: 12px 0; font-size: var(--text-heading); }
.legacy-post p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--text-body); line-height: 1.8; }
.legacy-post img { display: block; max-width: 100%; border-radius: 10px; margin: 12px 0; }
.legacy-post summary { min-height: 44px; padding-top: 12px; color: #a25977; font-size: var(--text-label); cursor: pointer; }
.legacy-comment { padding: 12px; margin: 8px 0; border-radius: 10px; background: #fff8fb; }
.legacy-comment b,.legacy-comment p { font-size: var(--text-label); }
@media(max-width:359px) { header .head-actions { gap: 0; } header .idpill { padding-left: 0; padding-right: 0; } }

/* v0.24: follower counts and a focused first-visit guide. */
.actions .follow,.detail-dock .dock-follow,.folder-unfollow { display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; }
[data-follow-label] { font-weight: 600; }
[data-follow-count] { font-size: var(--text-label); font-weight: 400; font-variant-numeric: tabular-nums; line-height: 1; }
.folder-unfollow { min-width: 64px; }
.legacy-entry { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; padding: 0; background: transparent; border: 0; color: #985972; }
.legacy-pocket-mark { position: relative; display: block; width: 29px; height: 31px; }
.legacy-pocket-mark svg { display: block; width: 100%; height: 100%; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.pocket-paper { fill: #fffdfd; stroke: #c7a1b0; }
.pocket-body { fill: #f6e8ee; stroke: #c59aa9; }
.pocket-seam { stroke: #dfbdcb; }
.legacy-pocket-mark>span { position: absolute; top: 12px; left: 0; width: 100%; color: #985972; text-align: center; font-size: var(--text-meta); line-height: 14px; font-weight: 500; }
.legacy-entry:active .pocket-body { fill: #eed5e0; }
#legacy-guide { position: fixed; inset: 0; margin: 0; width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; padding: 0; border: 0; border-radius: 0; background: transparent; color: #fff; box-shadow: none; overflow: auto; overscroll-behavior: contain; }
#legacy-guide::before { display: none; }
#legacy-guide::backdrop { background: rgba(40,39,43,.67); backdrop-filter: none; -webkit-backdrop-filter: none; }
#legacy-guide[open] { display: block; }
#legacy-guide .legacy-guide-target { position: absolute; left: var(--guide-x); top: var(--guide-y); transform: translate(-50%,-50%); width: 56px; height: 56px; border-radius: 18px; background: #fff9fb; box-shadow: 0 0 0 6px #ffffff1a; outline: 1.5px solid #ffffffe6; outline-offset: 3px; }
.legacy-guide-target .legacy-pocket-mark { width: 30px; height: 32px; }
.legacy-guide-gesture { position: absolute; left: calc(var(--guide-x) - 100px); top: calc(var(--guide-y) + 41px); width: 132px; height: 130px; pointer-events: none; color: #fff; }
.guide-hand { position: absolute; top: 0; left: 80px; width: 42px; height: 42px; transform: rotate(-6deg); }
.guide-arrow { position: absolute; top: 26px; left: 0; width: 116px; height: 100px; }
.legacy-guide-copy { position: absolute; left: var(--guide-copy-left); top: var(--guide-copy-top); width: var(--guide-copy-width); padding-bottom: 24px; text-align: center; }
.legacy-guide-copy h2 { margin: 0; color: #fff; font-size: var(--text-heading); font-weight: 500; line-height: 1.65; letter-spacing: .02em; }
.legacy-guide-copy p { margin: 8px 0 0; color: #ffffffe0; font-size: var(--text-label); line-height: 1.7; }
.legacy-guide-copy button { min-height: 44px; min-width: 116px; padding: 9px 28px; margin-top: 24px; border: 1px solid #ffffffb3; border-radius: 24px; background: transparent; color: #fff; font-size: var(--text-body); font-weight: 400; }
.legacy-guide-copy button:focus:not(:focus-visible) { outline: none; }
.legacy-guide-copy button:focus-visible { outline: 2px solid white; outline-offset: 4px; }
.guide-compact .guide-arrow { display: none; }
.guide-compact .legacy-guide-gesture { top: calc(var(--guide-y) + 34px); }
.guide-compact .guide-hand { width: 30px; height: 30px; left: 86px; }
.guide-compact .legacy-guide-copy button { margin-top: 14px; }
@media(max-width:359px) { .actions .follow,.detail-dock .dock-follow { padding-left: 7px; padding-right: 7px; } }

/* v0.25: 懂哥 stays in the discussion's pinned area; no oversized promo card. */
.ai-review-slot[hidden] { display: none; }
.ai-review { display: flex; gap: 10px; margin: 22px 0 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ai-review-avatar { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; }
.ai-review-content { flex: 1; min-width: 0; }
.ai-review-author { display: flex; align-items: center; gap: 6px; min-height: 22px; }
.ai-review-author strong { font-size: var(--text-label); font-weight: 600; }
.ai-review-badge { padding: 1px 5px; border-radius: 5px; color: #aa3859; background: #fbeaf0; font-size: var(--text-meta); line-height: 1.4; font-weight: 500; }
.ai-review-pin { margin-left: auto; color: var(--muted); font-size: var(--text-meta); }
.ai-review-content p { margin: 5px 0 5px; font-size: var(--text-body); line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; }
.ai-review-scope { color: var(--muted); font-size: var(--text-meta); line-height: 1.5; }

/* Anonymous name confirmation and private Beta marker. */
.anonymous-name-intro { display: flex; align-items: center; gap: 12px; margin: 2px 0 10px; }
.anonymous-name-intro .avatar { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; }
.anonymous-name-intro p { margin: 0; color: var(--muted); font-size: var(--text-label); line-height: 1.65; }
.anonymous-name-form { gap: 10px; }
.anonymous-name-form input[aria-invalid="true"] { border-color: #c73560; }
.anonymous-name-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; min-height: 20px; font-size: var(--text-meta); line-height: 1.6; }
#anonymous-name-count { margin-left: auto; flex-shrink: 0; color: var(--muted); }
#anonymous-name-error, #anonymous-name-count.over-limit { color: #b22d52; }
.anonymous-name-note { margin: 2px 0 10px; padding: 12px 14px; border-radius: 12px; background: #fff2f6; color: #815667; font-size: var(--text-label); line-height: 1.7; }
.anonymous-name-back { padding: 8px; color: var(--muted); font-size: var(--text-label); }
.header-title.has-beta { position: relative; padding-left: 39px; }
.beta-tag { position: absolute; left: 0; top: 50%; transform: translateY(-50%); padding: 3px 5px; border: 1px solid #edc7d5; border-radius: 5px; color: #a23b61; background: #fff2f6; font-size: 10px; font-weight: 600; line-height: 1.2; }

/* Verified public account photos share the existing circular avatar sizes. */
.avatar-public{position:relative}
.avatar-public img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
