/* Typecho integration, extending the supplied Weiwan design. */
.pending-notice{font-size:13px;color:var(--accent);background:var(--accent-bg);border-radius:6px;padding:11px 14px;margin-bottom:20px}.comment-fields label>.field-label{display:block}.field-label em{font-style:normal;color:var(--accent);margin-left:2px}
textarea,select{font:inherit;color:inherit}textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button:disabled{cursor:wait;opacity:.55}body{min-height:100vh}.profile-stats>span{display:flex;align-items:baseline;gap:4px}.profile-stats>span>span{font-size:12px;color:var(--muted)}.profile-card .handle,.profile-card h2,.profile-intro,.sidebar-note,.article-title,.article-page>h1{overflow-wrap:anywhere}.avatar{object-fit:cover}.station-symbol{display:grid;place-items:center;flex-shrink:0;width:28px;height:28px;border-radius:7px;color:var(--card);background:var(--ink);font-weight:600}.filter-bar{scroll-margin-top:24px}.home-filter-bar .filters{flex:1 1 0%;flex-wrap:wrap;min-width:0;overflow:visible;gap:0 23px}.home-filter-bar .filter{flex-shrink:0;min-height:49px}.home-filter-bar .filter.active:after{bottom:0}.home-filter-bar .filter:focus-visible{outline-offset:-2px}.home-filter-bar>.section-count{flex:0 0 auto;align-self:center;margin-left:12px}.feed-photo img{aspect-ratio:2.1}.archive-heading{align-items:baseline}.archive-heading h1{font-size:20px;overflow-wrap:anywhere}.archive-heading .text-link{flex-shrink:0;margin:0}.widget-empty{font-size:13px;line-height:1.9;color:var(--muted)}.comment-date{font-size:11px;color:var(--muted)}.article-page>.author{padding-bottom:23px;border-bottom:1px solid var(--border);margin-bottom:26px}.post-content{font-size:16px;line-height:2;color:var(--ink);overflow-wrap:anywhere}.post-content>:first-child{margin-top:0}.post-content p{margin:0 0 20px}.post-content h1,.post-content h2,.post-content h3,.post-content h4{line-height:1.6;margin:30px 0 14px;font-weight:600;scroll-margin-top:26px}.post-content h1{font-size:26px}.post-content h2{font-size:22px}.post-content h3{font-size:19px}.post-content h4{font-size:17px}.post-content a{color:var(--accent);text-decoration:underline;text-underline-offset:4px}.post-content img{height:auto;border-radius:8px;margin:22px auto;max-width:100%}.post-content figure{margin:22px 0}.post-content figcaption{font-size:13px;color:var(--muted);text-align:center}.post-content blockquote{border-left:3px solid #b7c6d3;background:var(--soft);margin:24px 0;padding:14px 20px;border-radius:0 7px 7px 0;color:var(--text)}.post-content blockquote>:last-child{margin-bottom:0}.post-content ul,.post-content ol{padding-left:1.5em;margin:16px 0 22px}.post-content li+li{margin-top:5px}.post-content li>p{margin:0}.post-content hr{height:1px;border:0;background:var(--border);margin:30px 0}.post-content code{font:13px/1.8 Consolas,"SFMono-Regular",monospace;background:var(--accent-bg);padding:3px 6px;border-radius:4px}.post-content pre{position:relative;max-width:100%;overflow:auto;background:var(--soft);border:1px solid var(--border);padding:20px;border-radius:8px;margin:22px 0;tab-size:4}.post-content pre code{padding:0;background:transparent;white-space:pre;overflow-wrap:normal}.code-wrap{position:relative}.copy-code{position:absolute;right:8px;top:8px;z-index:1;font-size:11px;background:var(--card);border:1px solid var(--border);border-radius:4px;padding:2px 8px;color:var(--text)}.code-wrap pre{padding-top:36px}.table-scroll{max-width:100%;overflow:auto;margin:22px 0;border:1px solid var(--border);border-radius:7px}.post-content table{border-collapse:collapse;width:100%;font-size:14px;text-align:left}.post-content th,.post-content td{border-bottom:1px solid var(--border);padding:11px 14px;min-width:100px}.post-content th{background:var(--soft);font-weight:550}.post-content tr:last-child td{border-bottom:0}.post-content video,.post-content iframe{max-width:100%}.post-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:26px}.post-tags:empty{display:none}.post-tags a{font-size:12px;background:var(--accent-bg);color:var(--accent);padding:3px 10px;border-radius:5px}.post-tags a:before{content:'#';margin-right:4px}.article-neighbors>div{flex:1;min-width:0;background:var(--card);border:1px solid var(--border);padding:16px 18px;border-radius:10px;font-size:13px;color:var(--muted);overflow-wrap:anywhere}.article-neighbors>div:last-child{text-align:right}.article-neighbors a{font-size:15px;color:var(--ink);display:block}.article-neighbors a:hover{color:var(--accent)}.toc-list a{font-size:13px}.toc-list .toc-child{padding-left:12px}.toc-list a.active{color:var(--accent);font-weight:550}.page-navigator{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:8px;padding:0;margin:28px 0 0;font-size:13px}.page-navigator a,.page-navigator span{display:grid;place-items:center;min-height:38px;min-width:38px;padding:5px 12px;background:var(--card);border:1px solid var(--border);border-radius:7px}.page-navigator .current a{background:var(--accent-bg);color:var(--accent);border-color:var(--site-border)}.empty-state h2{font-size:19px;font-weight:550;color:var(--ink)}.empty-state p{font-size:14px;margin:10px 0 20px}.error-page{padding-top:65px;padding-bottom:65px}.error-code{font-size:64px;line-height:1.2;color:var(--accent);letter-spacing:6px}.error-page h1{font-size:24px;margin:20px 0 10px}.comment-list{list-style:none;margin:0;padding:0}.comment-item{scroll-margin-top:26px}.comment-main{min-width:0}.comment-children{padding-left:28px}.comment-children .comment-children{padding-left:14px}.comment-full .comment-meta{flex-wrap:wrap;gap:6px 10px}.comment-full .comment-meta strong{overflow-wrap:anywhere}.comment-date{margin-left:auto}.comment-content{overflow-wrap:anywhere;font-size:15px;color:var(--text);line-height:1.95}.comment-content p{margin-top:10px}.comment-content pre{white-space:pre-wrap}.comment-content img{max-height:240px;width:auto}.comment-content a{color:var(--accent)}.comment-content blockquote{margin:10px 0;border-left:2px solid var(--border);padding-left:12px}.author-badge{font-size:10px;background:var(--accent-bg);color:var(--accent);padding:1px 6px;border-radius:4px}.comment-reply{font-size:12px;margin-top:9px;color:var(--muted)}.comment-reply a{display:inline-flex;min-height:28px;align-items:center}.comment-item:target>.comment-full{background:var(--accent-bg);box-shadow:0 0 0 9px var(--accent-bg);border-radius:5px}.comment-waiting{color:var(--accent)!important;font-size:12px!important}.respond{border-top:1px solid var(--border);margin-top:20px;padding-top:24px;scroll-margin-top:24px}.respond-heading{display:flex;gap:15px;align-items:center;justify-content:space-between;margin-bottom:18px}.respond-heading h3{font-size:17px;font-weight:550}.respond-heading>a{font-size:12px;color:var(--accent)}.comment-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}.comment-fields label{min-width:0;display:grid;gap:6px;color:var(--text);font-size:12px}.comment-fields label>span{display:none}.comment-fields input,.respond textarea,.protected input{width:100%;min-width:0;border:1px solid var(--border);background:var(--soft);border-radius:7px;padding:11px 12px;font-size:13px}.respond textarea{resize:vertical;min-height:145px;font-size:14px;line-height:1.9;display:block}.comment-fields input::placeholder,.respond textarea::placeholder{color:var(--muted)}.comment-form-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:15px}.comment-form-footer>span,.comment-signed-in,.comment-hint{font-size:12px;color:var(--muted)}.comment-signed-in{margin-bottom:16px}.comment-signed-in a{color:var(--accent)}.submit-comment{flex-shrink:0;display:flex;align-items:center;justify-content:center;gap:10px;background:var(--accent);color:var(--card);border-radius:7px;padding:10px 17px;font-size:13px;min-height:42px}.submit-comment:hover{color:var(--card);opacity:.9}.submit-comment .icon{height:15px;width:15px}.comments-closed{font-size:13px;color:var(--muted);margin-top:22px}.comment-item>.respond{margin:10px 0 25px 30px;background:var(--soft);padding:18px;border:1px solid var(--border);border-radius:8px}.search-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:18px}.search-footer .search-help{margin:0}.protected p{display:flex;flex-direction:column;gap:12px}.protected input[type=submit]{width:auto;align-self:flex-start;background:var(--accent-bg);color:var(--accent);cursor:pointer}.no-js-search{max-width:550px;margin:20px auto;padding:0 20px}.no-js-search button{padding:8px}.site-footer nav>span{margin:0}html[data-theme=dark] .submit-comment{color:#1f2a3b}
@media(min-width:681px) and (max-width:1000px){.layout{grid-template-columns:190px minmax(0,1fr)}.right-sidebar{display:none}}
@media(max-width:680px){.layout{display:block;margin-top:0;padding:19px 15px 0}.mobile-nav button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:59px;font-size:12px;color:var(--muted)}.mobile-nav button .icon{width:14px;height:14px}.mobile-top .brand-name{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-filter-bar .filters{gap:22px}.home-filter-bar>.section-count{display:none}.content-panel.article-page{padding:25px 22px}.post-content{font-size:15px;line-height:2}.post-content h2{font-size:20px}.post-content h3{font-size:18px}.post-content pre{padding:16px}.code-wrap pre{padding-top:37px}.post-content blockquote{padding:13px 16px}.article-neighbors a{font-size:14px}.article-neighbors>div{padding:13px}.article-comments{padding:24px 20px}.comment-fields{grid-template-columns:1fr 1fr;gap:12px}.comment-fields label:last-child{grid-column:1/-1}.comment-fields input,.respond textarea{font-size:16px}.comment-form-footer{align-items:flex-start;flex-direction:column;gap:13px}.submit-comment{align-self:flex-end}.comment-full{grid-template-columns:30px minmax(0,1fr);gap:10px}.comment-full .comment-avatar{width:30px;height:30px;font-size:15px}.comment-full .comment-meta{gap:4px 8px}.comment-full .comment-meta time{font-size:10px}.comment-children{padding-left:15px}.comment-children .comment-children{padding-left:8px}.comment-item>.respond{margin-left:0;padding:14px}.comment-item .comment-fields{grid-template-columns:1fr}.comment-item .comment-fields label:last-child{grid-column:auto}.comment-date{margin-left:0}.search-footer{flex-wrap:wrap}.site-footer{padding-bottom:26px}.error-page{padding-top:40px;padding-bottom:40px}.post-content img{margin:20px auto}}
@media(max-width:370px){.layout{padding-left:12px;padding-right:12px}.content-panel.article-page{padding:22px 18px}.comment-fields{grid-template-columns:1fr}.article-neighbors{flex-direction:column}.article-neighbors>div:last-child{text-align:left}.article-title{font-size:20px}.comment-children{padding-left:8px}}

.layout { padding-bottom:32px; }
.feed-loader { display:flex; align-items:center; justify-content:center; gap:12px; min-height:1px; margin-top:20px; color:var(--muted); font-size:13px; }
.feed-loader a { padding:7px 15px; border:1px solid var(--border); border-radius:7px; background:var(--card); color:var(--accent); }

/* Keep the original avatar dimensions and initials behind remote images. */
.avatar-image { position:relative; overflow:hidden; }
.avatar-image>img { position:absolute; inset:0; display:block; width:100%; height:100%; max-width:none; object-fit:cover; border-radius:inherit; }
.avatar-image>img[hidden] { display:none; }

/* Keep compact sidebar text on one line without widening either column. */
.profile-intro {
  min-width:0;
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.comment-source { min-width:0; align-items:center; }
.comment-source>.icon { flex:0 0 14px; margin-top:0; }
.comment-source>span {
  display:block;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  overflow-wrap:normal;
  -webkit-line-clamp:unset;
  -webkit-box-orient:initial;
}

/* One card per conversation; the post owner speaks from the right. */
.content-panel.chat-comments { padding:0; border:0; background:transparent; box-shadow:none; }
.chat-comments>.comments-heading { margin:0 2px 18px; }
.chat-comments>.comment-list { display:grid; gap:16px; }
.chat-comments>.comment-list>.comment-item,
.chat-comments>.respond,
.chat-comments>.no-comments { padding:26px; background:var(--card); border:1px solid var(--border); border-radius:18px; box-shadow:0 3px 14px rgba(35,53,80,.025); }
.chat-comments .comment-full { display:flex; align-items:flex-start; gap:12px; padding:0; border:0; }
.chat-comments .comment-full>.comment-avatar { width:40px; height:40px; margin-top:2px; border-radius:9px; font-size:18px; box-shadow:0 4px 12px rgba(69,89,122,.1); }
.chat-comments .comment-main { display:flex; flex:0 1 auto; flex-direction:column; align-items:flex-start; min-width:0; max-width:min(82%,520px); }
.chat-comments .comment-full .comment-meta { justify-content:flex-start; gap:4px 7px; margin-bottom:7px; line-height:1.65; }
.chat-comments .comment-meta strong { min-width:0; font-size:14px; font-weight:550; }
.chat-comments .author-badge,.chat-comments .comment-badge { flex-shrink:0; padding:0 5px; border:1px solid var(--site-border); border-radius:4px; font-size:10px; line-height:1.5; }
.chat-comments .friend-badge { color:#51846f; background:#eef6f1; border-color:#d5e7dd; }
.chat-comments .lost-friend-badge { color:#8a7860; background:#f6f2eb; border-color:#e7ddce; }
.chat-comments .circle-badge { color:#8071a2; background:#f3eff9; border-color:#e2d9ef; }
html[data-theme="dark"] .chat-comments .friend-badge { color:#a1c8b5; background:#293b35; border-color:#3e574c; }
html[data-theme="dark"] .chat-comments .lost-friend-badge { color:#c5b497; background:#3a352d; border-color:#544a3d; }
html[data-theme="dark"] .chat-comments .circle-badge { color:#bdb0d8; background:#352f42; border-color:#4f435f; }
.chat-comments .comment-recipient { min-width:0; color:var(--muted); font-size:12px; overflow-wrap:anywhere; }
.chat-comments .comment-recipient a { color:inherit; }
.chat-comments .comment-recipient a:hover { color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.chat-comments .comment-content { width:fit-content; max-width:100%; min-width:0; padding:11px 15px; border-radius:4px 16px 16px; background:var(--soft); color:var(--text); font-size:15px; line-height:1.9; overflow-wrap:anywhere; }
.chat-comments .comment-content p { margin:0 0 10px; font-size:inherit; line-height:inherit; color:inherit; }
.chat-comments .comment-content>:first-child { margin-top:0; }
.chat-comments .comment-content>:last-child { margin-bottom:0; }
.chat-comments .comment-content pre { max-width:100%; overflow:auto; white-space:pre; padding:10px; border-radius:6px; background:var(--card); font-size:12px; }
.chat-comments .comment-content code { font-family:Consolas,"SFMono-Regular",monospace; }
.chat-comments .comment-content img { display:block; max-width:100%; height:auto; border-radius:6px; }
.chat-comments .comment-content ul,.chat-comments .comment-content ol { padding-left:1.4em; }
.chat-comments .comment-actions { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; max-width:100%; margin-top:5px; }
.chat-comments .comment-actions .comment-date { flex-basis:auto; margin:0; color:var(--muted); font-size:11px; }
.chat-comments .comment-date time { font-size:inherit; }
.chat-comments .comment-date:hover { color:var(--accent); }
.chat-comments .comment-location { display:inline-flex; align-items:center; gap:4px; min-width:0; max-width:100%; color:var(--muted); font-size:11px; line-height:1.6; }
.chat-comments .comment-location-text { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.chat-comments .comment-location .icon { flex:0 0 12px; width:12px; height:12px; }
.chat-comments .comment-reply { margin:0; }
.chat-comments .comment-reply a { min-height:28px; gap:4px; padding:2px 0; border:0; background:transparent; color:var(--muted); font-size:11px; }
.chat-comments .comment-reply a:hover { color:var(--accent); }
.chat-comments .comment-reply .icon { width:12px; height:12px; }
.chat-comments .comment-by-author>.comment-full { flex-direction:row-reverse; }
.chat-comments .comment-by-author>.comment-full>.comment-main { align-items:flex-end; }
.chat-comments .comment-by-author>.comment-full .comment-meta,
.chat-comments .comment-by-author>.comment-full .comment-actions { justify-content:flex-end; }
.chat-comments .comment-by-author>.comment-full .comment-content { background:var(--accent-bg); border-radius:16px 4px 16px 16px; }
.chat-comments .comment-children { margin:22px 0 0; padding:0; border:0; background:transparent; }
.chat-comments .comment-children .comment-list { display:grid; gap:22px; }
.chat-comments .comment-item:target>.comment-full,
.chat-comments .comment-item.comment-is-replying>.comment-full { background:transparent; box-shadow:none; }
.chat-comments .comment-item:target>.comment-full .comment-content,
.chat-comments .comment-item.comment-is-replying>.comment-full .comment-content { box-shadow:0 0 0 2px var(--site-border); }
.chat-comments .comment-item>.respond { margin:20px 0 0; padding:18px; border:1px solid var(--border); border-radius:12px; background:var(--soft); }
.chat-comments>.respond { margin:0 0 26px; }
.chat-comments .comment-waiting { margin:6px 0 0; }
.chat-comments .comment-item .comment-fields { grid-template-columns:1fr; }
.comment-reply:empty { display:none; }
.respond-heading { align-items:flex-start; }
.respond-heading h3 { min-width:0; overflow-wrap:anywhere; }
.respond-heading>a { flex-shrink:0; padding:3px 0; }
.respond.is-replying .respond-heading h3 { color:var(--accent); }
/* The composer is above the conversation list; the picker travels with native replies. */
.chat-comments .respond-heading { margin-bottom:16px; }
.chat-comments .respond-heading h3 { color:var(--ink); font-size:18px; font-weight:600; }
.chat-comments .comment-editor { min-width:0; overflow:hidden; border:1px solid var(--border); border-radius:12px; background:var(--soft); transition:border-color .18s ease,box-shadow .18s ease; }
.chat-comments .comment-editor:focus-within { border-color:var(--site-border); box-shadow:0 0 0 3px var(--accent-bg); }
.chat-comments .comment-editor textarea { min-height:140px; padding:15px 16px; border:0; border-radius:0; background:transparent; font-size:14px; line-height:1.9; }
.chat-comments .comment-editor textarea:focus-visible { outline:0; }
.comment-editor-tools { display:flex; align-items:center; gap:10px; min-height:44px; padding:5px 12px; border-top:1px solid var(--border); background:var(--card); }
.expression-toggle { display:inline-flex; align-items:center; gap:6px; min-height:32px; padding:3px 8px; border-radius:7px; color:var(--text); font-size:12px; }
.expression-toggle>span { font-size:21px; line-height:1; color:var(--accent); }
.expression-toggle:hover,.expression-toggle[aria-expanded="true"] { color:var(--accent); background:var(--accent-bg); }
.comment-expressions { padding:12px; border-top:1px solid var(--border); background:var(--card); }
.expression-tabs { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px; }
.expression-tabs button { min-height:34px; padding:5px 12px; border-radius:7px; font-size:12px; color:var(--muted); }
.expression-tabs [aria-selected="true"] { color:var(--accent); background:var(--accent-bg); font-weight:550; }
.expression-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(42px,1fr)); gap:6px; max-height:210px; overflow:auto; overscroll-behavior:contain; padding:3px; }
.expression-item { display:flex; align-items:center; justify-content:center; min-width:0; min-height:42px; padding:5px; border:1px solid transparent; border-radius:9px; font-family:"Segoe UI Emoji","Apple Color Emoji",sans-serif; font-size:25px; line-height:1.3; }
.expression-item:hover { background:var(--soft); border-color:var(--border); }
.expression-item:focus-visible,.expression-tabs button:focus-visible,.expression-toggle:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
.expression-grid-kaomoji { grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); }
.expression-grid-kaomoji .expression-item { font-family:inherit; font-size:13px; line-height:1.6; white-space:nowrap; color:var(--text); background:var(--soft); }
.comment-expressions .expression-hint { margin:10px 3px 0; font-size:11px; color:var(--muted); line-height:1.7; }
.ww-emoticon { display:inline-block; width:1.75em; height:1.75em; vertical-align:-.4em; line-height:1; }
.ww-emoticon>svg { display:block; width:100%; height:100%; }
.expression-item .ww-emoticon { width:32px; height:32px; }
.chat-comments .comment-content .ww-emoticon { margin:0 2px; }
.comment-editor-tools[hidden],.comment-expressions[hidden],.expression-grid[hidden] { display:none; }
.chat-comments .comment-form-footer { flex-direction:row; flex-wrap:wrap; margin-top:16px; gap:12px; }
.chat-comments .comment-form-footer>span { flex:1 1 150px; }
.chat-comments .submit-comment { margin-left:auto; border-radius:9px; padding:10px 18px; }
@media (max-width:680px) {
  .chat-comments>.comment-list { gap:12px; }
  .chat-comments>.comment-list>.comment-item,.chat-comments>.respond,.chat-comments>.no-comments { padding:18px 14px; border-radius:14px; }
  .chat-comments .comment-full { gap:9px; }
  .chat-comments .comment-full>.comment-avatar { width:32px; height:32px; border-radius:8px; font-size:15px; }
  .chat-comments .comment-main { max-width:calc(100% - 41px); }
  .chat-comments .comment-full .comment-meta { gap:3px 5px; }
  .chat-comments .comment-meta strong { font-size:13px; }
  .chat-comments .comment-content { padding:9px 12px; font-size:14px; }
  .chat-comments .comment-actions { gap:0 9px; }
  .chat-comments .comment-reply a { min-height:36px; }
  .chat-comments .comment-item>.respond { padding:14px 12px; }
  .chat-comments>.respond { margin-bottom:22px; }
  .chat-comments .comment-editor textarea { padding:12px; }
  .comment-expressions { padding:9px; }
  .expression-grid { gap:4px; grid-template-columns:repeat(auto-fill,minmax(38px,1fr)); }
  .expression-grid-kaomoji { grid-template-columns:repeat(auto-fill,minmax(112px,1fr)); }
  .expression-grid-kaomoji .expression-item { font-size:12px; }
  .chat-comments .comment-form-footer { align-items:flex-end; }
  .chat-comments .comment-form-footer>span { font-size:11px; line-height:1.7; }
}

/* Keep mobile categories scrollable without introducing a vertical scrollbar. */
@media (max-width:680px) {
  .home-filter-bar .filters {
    flex-wrap:nowrap;
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:none;
    overscroll-behavior-x:contain;
  }
  .home-filter-bar .filters::-webkit-scrollbar { display:none; }
}
@media(max-width:680px){.mobile-nav.ww-mobile-has-links{grid-template-columns:repeat(5,minmax(0,1fr))}}

/* Compact site card: identity, elapsed time, then an editable footer. */
.station-card { padding:24px 20px 20px; border-radius:17px; box-shadow:none; }
html[data-theme="dark"] .station-card { box-shadow:none; }
.station-heading { gap:10px; margin-bottom:12px; }
.station-heading>.station-icon { width:20px; height:20px; border-radius:50%; object-fit:cover; }
.station-heading h2 { font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.station-heading p { margin-top:0; font-size:12px; line-height:1.5; }
.station-runtime { min-height:64px; gap:10px; padding:10px 12px; border-radius:16px; }
.runtime-ring { width:44px; height:44px; }
.runtime-days strong { font-size:11px; letter-spacing:1px; }
.runtime-copy>span,.runtime-copy>p { font-size:12px; line-height:1.4; }
.station-footer {
  margin:12px -8px 0;
  font-size:11px;
  line-height:1.7;
  color:var(--muted);
  white-space:nowrap;
  overflow-wrap:normal;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Three-level navigation uses native disclosures, including without JavaScript. */
.ww-menu { margin:21px 0 23px; min-width:0; }
.ww-menu-list { list-style:none; margin:0; padding:0; display:grid; gap:6px; }
.ww-menu-list .ww-menu-list { gap:3px; margin:5px 0 7px 13px; padding-left:8px; border-left:1px solid var(--border); }
.ww-menu-item { min-width:0; }
.ww-menu-link { display:flex; align-items:center; gap:10px; min-width:0; min-height:48px; padding:11px 10px; font-size:14px; color:var(--text); border-radius:7px; }
.ww-menu-text { min-width:0; flex:1; overflow-wrap:anywhere; line-height:1.6; }
.ww-menu-link .icon { width:17px; height:17px; }
.ww-menu-custom-icon { display:inline-grid; place-items:center; flex:0 0 18px; width:18px; height:18px; object-fit:contain; }
.ww-menu-symbol { font-size:16px; line-height:1; overflow:hidden; }
.ww-menu-symbol-wide { font-size:10px; letter-spacing:-.5px; }
.ww-menu .nav-count { margin-left:auto; flex-shrink:0; font-size:12px; color:var(--muted); }
.ww-menu-link.active { color:var(--accent); font-weight:600; background:var(--accent-bg); box-shadow:inset 3px 0 0 var(--accent); }
.ww-menu a:hover,.ww-menu summary:hover { background:var(--soft); }
.ww-menu summary { display:flex; align-items:center; list-style:none; cursor:pointer; border-radius:7px; }
.ww-menu summary::-webkit-details-marker,.ww-mobile-custom-nav>summary::-webkit-details-marker { display:none; }
.ww-menu summary>.ww-menu-link { flex:1; }
.ww-menu summary>.ww-menu-link.active { background:none; box-shadow:none; }
.ww-menu-item.is-active>details>summary { background:var(--accent-bg); color:var(--accent); }
.ww-menu-item.is-active>details>summary>.ww-menu-link { color:var(--accent); }
.ww-menu summary:focus-visible,.ww-mobile-custom-nav>summary:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.ww-menu-caret { display:flex; align-items:center; justify-content:center; width:28px; min-height:40px; flex-shrink:0; color:var(--muted); }
.ww-menu-caret .icon { width:14px; height:14px; }
details[open]>summary>.ww-menu-caret .icon { transform:rotate(90deg); }
.ww-menu-level-2 .ww-menu-link { min-height:40px; padding:8px 6px; font-size:13px; gap:7px; }
.ww-menu-level-3 .ww-menu-link { font-size:12px; }
.ww-menu-level-3 .ww-menu-link .icon { width:14px; height:14px; }
.ww-menu-level-3 .ww-menu-custom-icon { flex-basis:16px; width:16px; height:16px; }
.ww-menu-level-3 .ww-menu-symbol-wide { font-size:9px; }
.ww-mobile-custom-nav { display:none; }
@media (max-width:680px) {
  .ww-mobile-custom-nav { display:block; margin:0 18px 12px; border:1px solid var(--border); border-radius:9px; background:var(--card); }
  .ww-mobile-custom-nav>summary { display:flex; align-items:center; gap:8px; padding:0 12px; list-style:none; cursor:pointer; font-size:13px; }
  .ww-mobile-custom-nav>summary>.ww-menu-caret { margin-left:auto; }
  .ww-mobile-custom-nav>.ww-menu { margin:0; padding:0 10px 10px; max-height:55vh; overflow-y:auto; overscroll-behavior:contain; }
}

/* Soft borders, restrained highlights and legible metadata across both themes. */
.right-sidebar {
  --sidebar-edge:#e7ecf2;
  --sidebar-row:#f8fafc;
  --sidebar-row-edge:#edf1f6;
  --sidebar-text:#6d7d95;
  --sidebar-meta:#8391a5;
  --sidebar-hover:#d4dfef;
  --sidebar-badge:#ffffffd9;
  --sidebar-shadow:0 4px 18px #34495e05,0 1px 3px #34495e04;
  --sidebar-highlight:inset 0 1px 0 #ffffffe6;
}
.right-sidebar>.widget,.right-sidebar>.station-card { border-color:var(--sidebar-edge); border-radius:17px; box-shadow:var(--sidebar-shadow); }
.popular-widget,.comments-widget { padding:19px 16px 17px; }
.popular-widget .widget-heading,.comments-widget .widget-heading { margin-bottom:13px; padding:0 2px; }
.popular-widget .widget-heading h2,.comments-widget .widget-heading h2 { gap:8px; font-size:14px; font-weight:600; letter-spacing:.2px; }
.popular-widget .widget-heading .icon,.comments-widget .widget-heading .icon { width:15px; height:15px; color:var(--accent); stroke-width:1.6; }
.popular-widget .latest-list { gap:7px; }
.popular-widget .popular-item { display:flex; align-items:center; gap:7px; min-width:0; min-height:42px; padding:7px 8px; border:1px solid var(--sidebar-row-edge); border-radius:12px; background:var(--sidebar-row); box-shadow:var(--sidebar-highlight); transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.popular-widget .popular-item h3 { flex:1; min-width:0; margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; line-height:1.65; font-weight:400; }
.popular-item .popular-rank { position:relative; display:grid; place-items:center; width:22px; height:26px; flex:0 0 22px; color:var(--sidebar-meta); font-size:13px; font-weight:600; font-variant-numeric:tabular-nums; }
.popular-rank>svg { position:absolute; inset:0; width:22px; height:26px; filter:drop-shadow(0 1px 1px #34495e12); }
.popular-rank>svg+span { position:relative; font-size:8px; line-height:1; padding-top:9px; color:#aa7e3c; }
.popular-item .medal-ribbon { fill:#b1c7e6; }
.popular-item .medal-face { fill:#f3d092; stroke:#ffffffa6; stroke-width:1.2; }
.popular-widget .popular-rank-1 { border-color:#f1e2bf; background:linear-gradient(110deg,#fff8e9,var(--sidebar-row) 85%); }
.popular-widget .popular-rank-2 { border-color:#e3e6f0; background:linear-gradient(110deg,#f3f4fc,var(--sidebar-row) 85%); }
.popular-rank-2 .medal-face { fill:#d9d9ee; }
.popular-rank-2 .popular-rank>svg+span { color:#8585ac; }
.popular-widget .popular-rank-3 { border-color:#eddfd4; background:linear-gradient(110deg,#fcf2ea,var(--sidebar-row) 85%); }
.popular-rank-3 .medal-face { fill:#dfb99f; }
.popular-rank-3 .popular-rank>svg+span { color:#996f55; }
.popular-metrics { display:flex; align-items:center; gap:4px; flex-shrink:0; }
.popular-stat { display:inline-flex; align-items:center; justify-content:center; gap:2px; min-height:18px; padding:0 4px; border:1px solid var(--sidebar-row-edge); border-radius:5px; background:var(--sidebar-badge); color:var(--sidebar-text); font-size:10px; font-weight:500; line-height:1.5; white-space:nowrap; font-variant-numeric:tabular-nums; }
.popular-stat .icon { width:10px; height:10px; color:#d9b879; stroke-width:1.6; }
.popular-item:hover h3 { color:var(--accent); }
.comments-widget .recent-comments { gap:8px; }
.comments-widget .comment-preview,.comments-widget .comment-preview:last-child { grid-template-columns:32px minmax(0,1fr); align-items:center; gap:10px; min-height:76px; padding:10px 11px; border:1px solid var(--sidebar-row-edge); border-radius:13px; background:var(--sidebar-row); box-shadow:var(--sidebar-highlight); transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.comments-widget .comment-avatar { width:32px; height:32px; border-radius:50%; border:2px solid var(--card); box-shadow:0 0 0 1px var(--sidebar-edge),0 2px 5px #34495e0a; }
.comments-widget .comment-meta { gap:6px; line-height:1.45; }
.comments-widget .comment-meta strong { min-width:0; font-size:13px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.comments-widget .comment-date { flex-shrink:0; margin-left:auto; font-size:10px; color:var(--sidebar-meta); font-variant-numeric:tabular-nums; }
.comments-widget .comment-summary>p { display:block; margin:2px 0 0; color:var(--sidebar-text); font-size:12px; line-height:1.5; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.comments-widget .comment-source { display:flex; width:100%; min-height:17px; margin-top:4px; padding:0 6px; border:1px solid var(--sidebar-row-edge); font-size:10px; font-weight:400; line-height:1.5; border-radius:5px; background:var(--sidebar-badge); color:var(--sidebar-meta); }
.right-sidebar .station-runtime { border:1px solid var(--sidebar-row-edge); background:var(--sidebar-row); box-shadow:var(--sidebar-highlight); }
.popular-widget .popular-item:focus-visible,.comments-widget .comment-preview:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
@media (hover:hover) {
  .popular-widget .popular-item:hover,.comments-widget .comment-preview:hover { border-color:var(--sidebar-hover); box-shadow:var(--sidebar-highlight),0 4px 12px #607ab312; transform:translateY(-1px); }
}
html[data-theme="dark"] .right-sidebar {
  --sidebar-edge:var(--border);
  --sidebar-row:var(--soft);
  --sidebar-row-edge:#344257;
  --sidebar-text:#b1bfd2;
  --sidebar-meta:#95a7be;
  --sidebar-hover:#526b90;
  --sidebar-badge:#ffffff08;
  --sidebar-shadow:0 4px 18px #00000014;
  --sidebar-highlight:inset 0 1px 0 #ffffff08;
}
html[data-theme="dark"] .popular-widget .popular-rank-1 { border-color:#574d36; background:linear-gradient(110deg,#333027,var(--sidebar-row) 85%); }
html[data-theme="dark"] .popular-widget .popular-rank-2 { border-color:#434a62; background:linear-gradient(110deg,#2d3041,var(--sidebar-row) 85%); }
html[data-theme="dark"] .popular-widget .popular-rank-3 { border-color:#58463c; background:linear-gradient(110deg,#352d2a,var(--sidebar-row) 85%); }
@media (prefers-reduced-motion:reduce) {
  .popular-widget .popular-item:hover,.comments-widget .comment-preview:hover { transform:none; }
}

/* A compact title badge gives archive pages a clear starting point. */
.content-heading.archive-heading { align-items:center; flex-wrap:wrap; gap:12px; min-height:0; margin:0 0 16px; padding:0; }
.archive-title-group { display:flex; align-items:center; gap:11px; flex:0 1 auto; min-width:0; max-width:100%; padding:10px 16px 10px 10px; border:1px solid var(--border); border-radius:12px; background:linear-gradient(110deg,var(--accent-bg),var(--card) 80%); box-shadow:0 2px 8px #34495e05; }
.archive-title-icon { display:grid; place-items:center; flex:0 0 32px; width:32px; height:32px; border:1px solid var(--border); border-radius:9px; background:var(--card); color:var(--accent); }
.archive-title-icon .icon { width:18px; height:18px; stroke-width:1.7; }
.archive-heading .archive-title-group h1 { min-width:0; margin:0; color:var(--ink); font-size:20px; font-weight:600; line-height:1.5; letter-spacing:.3px; overflow-wrap:anywhere; }
.archive-heading>.text-link { flex-shrink:0; gap:7px; min-height:34px; margin:0 0 0 auto; padding:6px 10px; border:1px solid var(--border); border-radius:8px; background:var(--card); color:var(--text); font-size:12px; line-height:1.5; white-space:nowrap; transition:color .18s ease,background .18s ease,border-color .18s ease; }
.archive-heading>.text-link .icon { width:14px; height:14px; color:var(--accent); }
.archive-heading>.text-link:hover { color:var(--accent); background:var(--accent-bg); border-color:var(--site-border,var(--border)); }
html[data-theme="dark"] .archive-title-group { box-shadow:0 2px 8px #00000012; }
@media (max-width:680px) {
  .content-heading.archive-heading { flex-wrap:nowrap; gap:9px; margin-bottom:14px; }
  .archive-title-group { flex:1 1 auto; gap:8px; padding:8px 10px 8px 8px; border-radius:10px; }
  .archive-title-icon { flex-basis:28px; width:28px; height:28px; border-radius:8px; }
  .archive-title-icon .icon { width:16px; height:16px; }
  .archive-heading .archive-title-group h1 { font-size:17px; letter-spacing:0; }
  .archive-heading>.text-link { min-height:34px; gap:4px; padding:6px 8px; font-size:11px; }
}
/* Archive entry shares the mobile navigation's available columns. */
@media(max-width:680px){.mobile-nav.ww-mobile-has-archives{grid-template-columns:repeat(5,minmax(0,1fr))}.mobile-nav.ww-mobile-has-archives.ww-mobile-has-links{grid-template-columns:repeat(6,minmax(0,1fr))}.mobile-nav.ww-mobile-has-archives a,.mobile-nav.ww-mobile-has-archives button{gap:4px;font-size:12px}}

/* Identity and level are independent badges, including nested replies. */
.chat-comments .comment-identity { display:inline-flex; align-items:center; gap:6px; max-width:100%; min-width:0; }
.chat-comments .comment-identity>strong { flex:0 1 auto; min-width:0; overflow-wrap:anywhere; }
.chat-comments .comment-identity>:is(.author-badge,.comment-badge,.ww-level-badge) { flex:none; }
.chat-comments .comment-badges { display:inline-flex; align-items:center; gap:3px; flex:none; white-space:nowrap; }
.ww-level-badge { display:inline-flex; align-items:center; gap:3px; flex:none; padding:0 5px; border:1px solid var(--site-border); border-radius:4px; font-size:10px; font-weight:400; line-height:1.6; color:var(--accent); background:var(--accent-bg); white-space:nowrap; text-decoration:none; }
.ww-level-badge>span { font-weight:600; font-variant-numeric:tabular-nums; }
.ww-level-0 { color:var(--text); background:var(--soft); border-color:var(--border); }
.ww-level-5,.ww-level-6 { color:#8b7043; background:#faf3e5; border-color:#ebdfc5; }
.ww-level-7,.ww-level-8 { color:#8b668a; background:#f7edf6; border-color:#e8d6e6; }
html[data-theme="dark"] :is(.ww-level-5,.ww-level-6) { color:#d7bd8e; background:#3b3428; border-color:#594c35; }
html[data-theme="dark"] :is(.ww-level-7,.ww-level-8) { color:#cfadce; background:#3c2e3c; border-color:#594359; }
.ww-community-badges :is(.author-badge,.comment-badge),.ww-recent-badges :is(.author-badge,.comment-badge) { flex:none; padding:0 5px; border:1px solid var(--site-border); border-radius:4px; font-size:10px; line-height:1.6; }
:is(.ww-community-badges,.ww-recent-badges) .friend-badge { color:#51846f; background:#eef6f1; border-color:#d5e7dd; }
:is(.ww-community-badges,.ww-recent-badges) .lost-friend-badge { color:#8a7860; background:#f6f2eb; border-color:#e7ddce; }
:is(.ww-community-badges,.ww-recent-badges) .circle-badge { color:#8071a2; background:#f3eff9; border-color:#e2d9ef; }
html[data-theme="dark"] :is(.ww-community-badges,.ww-recent-badges) .friend-badge { color:#a1c8b5; background:#293b35; border-color:#3e574c; }
html[data-theme="dark"] :is(.ww-community-badges,.ww-recent-badges) .lost-friend-badge { color:#c5b497; background:#3a352d; border-color:#544a3d; }
html[data-theme="dark"] :is(.ww-community-badges,.ww-recent-badges) .circle-badge { color:#bdb0d8; background:#352f42; border-color:#4f435f; }
.ww-recent-badges { display:flex; flex-wrap:wrap; gap:4px; margin-top:4px; }
@media(max-width:680px){.mobile-nav.ww-mobile-has-community{display:flex;overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain;gap:0}.mobile-nav.ww-mobile-has-community::-webkit-scrollbar{display:none}.mobile-nav.ww-mobile-has-community>*{flex:1 0 55px;gap:4px;font-size:11px;min-height:59px}.mobile-nav.ww-mobile-has-community a.active:after{left:7px;right:7px}}

@media(max-width:680px){.mobile-nav.ww-mobile-has-visitors{display:flex;overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain;gap:0}.mobile-nav.ww-mobile-has-visitors::-webkit-scrollbar{display:none}.mobile-nav.ww-mobile-has-visitors>*{flex:1 0 55px;gap:4px;font-size:11px;min-height:59px}.mobile-nav.ww-mobile-has-visitors a.active:after{left:7px;right:7px}}

/* Article navigation provides a clear return path and a separate category tag. */
.content-heading.article-navigation { display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:66px; margin:0 0 16px; padding:10px 16px 10px 12px; border:1px solid var(--site-border); border-radius:15px; background:linear-gradient(110deg,var(--site-tint),var(--card) 72%); box-shadow:0 3px 14px #34495e04; }
.article-navigation .back-link { flex-shrink:0; gap:10px; min-height:44px; font-size:13px; font-weight:500; color:var(--text); border-radius:10px; }
.article-back-icon { display:grid; place-items:center; width:34px; height:34px; border:1px solid var(--border); border-radius:11px; color:var(--accent); background:var(--card); transition:background .18s ease; }
.article-back-icon .icon { width:16px; height:16px; }
.article-navigation .back-link:hover { color:var(--accent); }
.article-navigation .back-link:hover .article-back-icon { background:var(--accent-bg); }
.article-navigation-categories { display:flex; align-items:center; justify-content:flex-end; gap:8px; min-width:0; color:var(--muted); }
.article-navigation-categories>.icon { width:14px; height:14px; }
.article-navigation-categories>div { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:6px; min-width:0; font-size:12px; }
.article-navigation-categories a { display:inline-flex; align-items:center; min-height:40px; max-width:100%; padding:6px 13px; border:1px solid var(--border); border-radius:11px; background:var(--card); color:var(--text); overflow-wrap:anywhere; }
.article-navigation-categories a:hover { color:var(--accent); border-color:var(--site-border); background:var(--accent-bg); }
@media (max-width:680px) {
  .content-heading.article-navigation { gap:8px; min-height:62px; padding:8px 10px; margin-bottom:14px; border-radius:14px; }
  .article-navigation .back-link { gap:7px; font-size:12px; }
  .article-back-icon { width:30px; height:30px; border-radius:9px; }
  .article-navigation-categories { gap:5px; }
  .article-navigation-categories>.icon { display:none; }
  .article-navigation-categories a { min-height:44px; padding:6px 10px; font-size:11px; }
}
