@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;700&display=swap");
:root{--ink:#2f3337;--muted:#879099;--line:#e8ebed;--green:#2da44e;--card:#fff;--paper:#faf9f5;--yellow:#fffed5;--shadow:0 4px 18px rgba(38,45,50,.10);--font-sans:"Inter","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--font-mono:"JetBrains Mono","SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font:14px/1.5 var(--font-sans);background-color:var(--paper);background-image:linear-gradient(#e8e5dd 1px,transparent 1px),linear-gradient(90deg,#e8e5dd 1px,transparent 1px);background-size:32px 32px}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}.node-header{height:54px;background:rgba(255,255,255,.95);border-bottom:1px solid #e6e6e6;position:sticky;top:0;z-index:10}.node-header-inner{max-width:1120px;height:54px;margin:auto;display:flex;align-items:center;gap:24px;padding:0 14px}.node-brand{font-size:27px;font-weight:800;display:flex;align-items:center;gap:7px;white-space:nowrap}.brand-mark{font-size:30px;line-height:1}.node-brand small{font-size:9px;color:#aaa;font-weight:400;align-self:flex-start;margin-top:7px}.node-nav{display:flex;gap:21px;color:#525960;white-space:nowrap}.node-nav a:hover,.node-nav a.active{color:var(--green)}.node-search{margin-left:auto;border:1px solid #dfe3e5;border-radius:6px;height:34px;width:190px;display:flex;background:#fff}.node-search input{border:0;outline:0;width:100%;padding:0 10px;color:#555}.node-search button,.theme-button,.mobile-menu{border:0;background:transparent;color:#70777c;font-size:20px}.header-login{color:var(--green)}.header-avatar{width:30px;height:30px;background:#f0cb78;border-radius:8px;display:grid;place-items:center;font-weight:700}.theme-button{cursor:pointer}.mobile-menu{display:none}.node-shell{max-width:1120px;margin:24px auto 30px;padding:0 0}.node-layout{display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:22px}.node-main{min-width:0}.feed-card,.detail-card,.message-card{background:var(--card);border:1px solid #e1e4e5;border-radius:14px;box-shadow:var(--shadow);overflow:hidden}.feed-tabs{height:52px;padding:0 22px;display:flex;align-items:center;gap:7px;border-bottom:1px solid var(--line);color:#9aa1a5}.feed-tabs a{padding:5px 10px;border-radius:5px}.feed-tabs a.active{background:#f2f3f3;color:#485056;font-weight:700}.feed-pages{margin-left:auto;font-size:12px}.topic-item{min-height:68px;padding:10px 18px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #f0f1f1;transition:.15s}.topic-item:hover{background:#fbfdfb}.topic-avatar{flex:0 0 39px;width:39px;height:39px;border-radius:8px;overflow:hidden;background:#96d7d4;display:grid;place-items:center;font-size:18px;font-weight:700;color:#fff}.topic-avatar img{width:100%;height:100%;object-fit:cover}.topic-content{min-width:0;flex:1}.topic-title{display:block;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topic-title:hover{color:var(--green)}.pin{font-size:11px;color:#df8a45;background:#fff2e3;border-radius:3px;padding:2px 4px;margin-right:6px}.topic-meta{display:flex;gap:12px;color:#a0a6aa;font-size:11px;margin-top:3px;white-space:nowrap}.topic-category{color:#8b9296;border:1px solid #e5e8e8;border-radius:4px;font-size:11px;padding:2px 6px;white-space:nowrap}.empty-state{padding:60px 20px;text-align:center;color:#9da4a8}.pager{padding:18px;text-align:center}.node-sidebar{position:sticky;top:78px;align-self:start}.user-card,.side-card{background:#fff;border:1px solid #e4e6e6;border-radius:8px;box-shadow:0 2px 9px rgba(40,45,48,.06);margin-bottom:12px;padding:14px}.user-head{display:flex;gap:12px;align-items:center}.profile-avatar{width:50px;height:50px;border-radius:10px;background:#f0cb78;display:grid;place-items:center;font-size:22px;font-weight:700}.user-head strong{display:block;font-size:17px}.user-head small{color:#9ba1a4}.stats{margin-top:13px;background:var(--yellow);padding:10px;display:grid;grid-template-columns:1fr 1fr;gap:6px;color:#62686c;font-size:12px}.stats b{color:#4e5659}.publish-button,.primary-button{display:block;text-align:center;background:var(--green);color:#fff;border-radius:5px;padding:8px;font-weight:700;margin-bottom:12px}.publish-button:hover{background:#23863e}.side-card h3{font-size:14px;margin:0 0 6px}.side-card>a{display:block;padding:5px 0;color:#737a7f;border-top:1px solid #f0f1f1}.side-card>a:hover{color:var(--green)}.welcome p{color:#9aa0a4}.new-users{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;text-align:center;color:#7c8387;font-size:10px}.new-users span{display:grid;gap:3px;justify-items:center}.new-users i{font-style:normal;width:32px;height:32px;border-radius:8px;background:#62c9ce;color:#fff;display:grid;place-items:center;font-weight:700;font-size:15px}.new-users span:nth-child(2n) i{background:#f47d76}.new-users span:nth-child(3n) i{background:#a9d754}.node-footer{background:#303030;color:#aaa;padding:24px max(calc((100% - 1020px)/2),24px) 12px;margin-top:40px}.node-footer>div{display:grid;grid-template-columns:repeat(5,1fr);gap:28px}.node-footer strong{display:block;color:#e3bd6b;margin-bottom:7px}.node-footer a{display:block;margin:3px 0;font-size:12px}.node-footer a:hover{color:#fff}.node-footer small{display:block;text-align:center;border-top:1px solid #4a4a4a;margin-top:18px;padding-top:8px}.back-top{position:fixed;right:18px;bottom:20px;border:1px solid #e1e1e1;border-radius:8px;background:#fff;color:#888;width:38px;height:38px;cursor:pointer}.detail-card{padding:26px}.message-card{padding:36px}.message-card h1{margin-top:0}.node-main>.article{background:#fff;border:1px solid #e1e4e5;border-radius:14px;box-shadow:var(--shadow);padding:26px}.node-main>.article h1{font-size:25px;margin:0 0 10px}.node-main>.article .article-body{font-size:15px;line-height:1.8}.node-main>.article img{max-width:100%;border-radius:8px}.node-main>.article .summary{color:#778086}.node-main>.article a{color:#278846}.node-main>.article pre{background:#f5f7f8;padding:14px;border-radius:7px;overflow:auto}.node-main>.article .detail-hero{border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:20px}@media(max-width:900px){.node-header-inner,.node-shell{max-width:100%;padding-left:16px;padding-right:16px}.node-nav{gap:12px}.node-layout{grid-template-columns:minmax(0,1fr) 250px}.node-search{width:160px}}@media(max-width:720px){.node-header-inner{gap:12px}.node-brand{font-size:21px}.mobile-menu{display:block;order:1}.node-nav{display:none;position:absolute;left:12px;right:12px;top:50px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:8px;padding:10px;flex-wrap:wrap}.node-nav.is-open{display:flex}.node-search{width:130px}.node-layout{display:block}.node-sidebar{position:static;margin-top:16px}.node-footer>div{grid-template-columns:repeat(2,1fr)}.feed-pages{display:none}.topic-item{padding:10px 12px}.topic-category{display:none}}@media(max-width:420px){.node-search{width:34px;border:0}.node-search input{display:none}.header-login{display:none}.node-footer{padding-left:18px;padding-right:18px}.node-footer>div{grid-template-columns:1fr 1fr}.node-main>.article{padding:16px}}
[data-theme=dark]{--ink:#e5e7e9;--muted:#a2a8ad;--card:#202326;--paper:#17191b;--line:#353a3e;--yellow:#42401c}html:has([data-theme=dark]) body{background-image:linear-gradient(#24282b 1px,transparent 1px),linear-gradient(90deg,#24282b 1px,transparent 1px)}html:has([data-theme=dark]) .node-header,html:has([data-theme=dark]) .feed-card,html:has([data-theme=dark]) .user-card,html:has([data-theme=dark]) .side-card,html:has([data-theme=dark]) .node-search,html:has([data-theme=dark]) .back-top,html:has([data-theme=dark]) .node-main>.article{background:#202326;border-color:#353a3e}
[data-theme=dark] .reply-box{border-color:#353a3e}
.detail-actions{display:flex;justify-content:flex-end;gap:14px;border-top:1px solid var(--line);padding:12px 0;color:#8b9397}.detail-actions button{border:0;background:transparent;color:inherit;cursor:pointer}.detail-actions button:hover{color:var(--green)}.post-signature{border-top:1px dashed var(--line);padding-top:12px;color:#a1a7aa;margin-top:22px}.reply-box{border:1px solid #dfe3e5;border-radius:8px;overflow:hidden;margin-top:24px}.reply-tabs{height:42px;display:flex;align-items:center;gap:18px;padding:0 14px;border-bottom:1px solid var(--line);color:#9aa0a4}.reply-tabs b{color:var(--ink);border-bottom:2px solid var(--ink);height:42px;padding-top:11px}.reply-tabs small{margin-left:auto}.reply-box textarea{display:block;width:100%;height:180px;border:0;resize:vertical;padding:14px;outline:0;color:var(--ink);background:transparent}.reply-toolbar{border-top:1px solid var(--line);padding:10px 14px;color:#737b80}.reply-toolbar .primary-button{display:inline-block;float:right;border:0;padding:6px 18px;margin:0;cursor:pointer}

/* Node theme fixes: reliable dark mode, member center and editor components */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;700&display=swap');

:root{
  --bg-primary:#faf9f5;--bg-secondary:#fff;--bg-tertiary:#f4f6f7;
  --text-primary:#2f3337;--text-secondary:#747d84;--border:#e1e5e7;
  --accent-color:#2da44e;--accent-soft:#eaf7ee;--radius-lg:12px;
}

/* Article hyperlinks: lift on hover and reveal an expanding underline. */
.node-main > .article .article-body a:not(.md-button):not(.md-download-action):not(.article-tag-chip):not(.post-nav-card),
.node-main > .article .markdown-content a:not(.md-button):not(.md-download-action):not(.article-tag-chip):not(.post-nav-card){
  color:#278846;
  position:relative;
  display:inline-block;
  text-decoration:none;
  background:transparent!important;
  transition:transform .18s ease,color .18s ease;
}
.node-main > .article .article-body a:not(.md-button):not(.md-download-action):not(.article-tag-chip):not(.post-nav-card)::after,
.node-main > .article .markdown-content a:not(.md-button):not(.md-download-action):not(.article-tag-chip):not(.post-nav-card)::after{
  content:"";
  position:absolute;
  left:0;
  right:100%;
  bottom:-2px;
  height:1px;
  background:currentColor;
  transition:right .22s ease;
}
.node-main > .article .article-body a:not(.md-button):not(.md-download-action):not(.article-tag-chip):not(.post-nav-card):hover,
.node-main > .article .markdown-content a:not(.md-button):not(.md-download-action):not(.article-tag-chip):not(.post-nav-card):focus-visible{
  transform:translateY(-2px);
}
.node-main > .article .article-body a:not(.md-button):not(.md-download-action):not(.article-tag-chip):not(.post-nav-card):hover::after,
.node-main > .article .markdown-content a:not(.md-button):not(.md-download-action):not(.article-tag-chip):not(.post-nav-card):focus-visible::after{
  right:0;
}
html[data-theme="dark"]{
  color-scheme:dark;
  --ink:#e7eaed;--muted:#a8b0b7;--card:#202428;--paper:#15181b;--line:#363c42;--yellow:#3c3b22;--shadow:0 5px 22px rgba(0,0,0,.28);
  --bg-primary:#15181b;--bg-secondary:#202428;--bg-tertiary:#292e33;
  --text-primary:#edf0f2;--text-secondary:#a8b0b7;--border:#373d43;
  --accent-color:#43b663;--accent-soft:rgba(67,182,99,.14);
}
html[data-theme="dark"] body{background-color:var(--paper);background-image:linear-gradient(#252a2f 1px,transparent 1px),linear-gradient(90deg,#252a2f 1px,transparent 1px)}
html[data-theme="dark"] .node-header,
html[data-theme="dark"] .feed-card,
html[data-theme="dark"] .detail-card,
html[data-theme="dark"] .message-card,
html[data-theme="dark"] .user-card,
html[data-theme="dark"] .side-card,
html[data-theme="dark"] .node-search,
html[data-theme="dark"] .back-top,
html[data-theme="dark"] .node-main>.article,
html[data-theme="dark"] .node-nav{background:var(--card);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .node-search input,
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select{background:#191d20;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .topic-item{border-color:#2d3237}
html[data-theme="dark"] .topic-item:hover{background:#252a2e}
html[data-theme="dark"] .feed-tabs a.active{background:#2b3035;color:#edf0f2}
html[data-theme="dark"] .topic-category{border-color:#40474d;color:#b6bdc3}
html[data-theme="dark"] .stats{background:var(--yellow)}
html[data-theme="dark"] .reply-box{border-color:var(--line)}
html[data-theme="dark"] .node-footer{background:#101214}
html[data-theme="dark"] .theme-button{color:#f0c95d}

.node-shell:has(.member-center),.node-shell:has(.member-auth-page),.node-shell:has(.member-download-page){max-width:1120px}
.node-layout:has(.member-center),.node-layout:has(.member-auth-page),.node-layout:has(.member-download-page){display:block}
.node-layout:has(.member-center)>.node-sidebar,.node-layout:has(.member-auth-page)>.node-sidebar,.node-layout:has(.member-download-page)>.node-sidebar{display:none}

.member-auth-page{min-height:68vh;display:grid;place-items:center;padding:36px 16px}
.member-auth-card{width:min(100%,460px);background:var(--bg-secondary);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);padding:30px}
.member-auth-heading span{font-size:11px;letter-spacing:.14em;color:var(--accent-color);font-weight:800}
.member-auth-heading h1{margin:8px 0 5px;font-size:30px}
.member-auth-heading p{margin:0 0 22px;color:var(--text-secondary)}
.member-auth-form{display:grid;gap:16px}
.member-auth-form label{display:grid;gap:7px;font-weight:700;color:var(--text-secondary)}
.member-auth-form input{height:46px;border:1px solid var(--border);border-radius:9px;padding:0 13px;background:var(--bg-primary);color:var(--text-primary);outline:none}
.member-auth-form input:focus{border-color:var(--accent-color);box-shadow:0 0 0 3px var(--accent-soft)}
.member-auth-form button{height:46px;border:0;border-radius:9px;background:var(--accent-color);color:#fff;font-weight:800;cursor:pointer}
.member-auth-switch{text-align:center;color:var(--text-secondary);margin:20px 0 0}.member-auth-switch a{color:var(--accent-color);font-weight:800}
.member-center,
.member-auth-page,
.member-download-page,
.member-paywall,
.member-assets {
    --member-surface: var(--bg-secondary);
    --member-surface-soft: var(--bg-primary);
    --member-surface-muted: var(--bg-tertiary);
    --member-text: var(--text-primary);
    --member-muted: var(--text-secondary);
    --member-border: var(--border);
    --member-accent: var(--accent-color);
    --member-accent-soft: var(--accent-soft);
    color: var(--member-text);
}

.member-center {
    width: min(100%, 980px);
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
    margin: 0 auto;
    padding: 24px 18px 56px;
}

.member-sidebar,
.member-panel,
.member-dashboard-hero,
.member-stat-grid > div,
.vip-plan-card,
.member-paywall,
.member-assets,
.member-download-ready,
.member-download-box,
.member-settings-card {
    border: 1px solid var(--member-border);
    border-radius: var(--radius-lg);
    background: var(--member-surface);
    color: var(--member-text);
}

.member-sidebar {
    align-self: start;
    position: sticky;
    top: 24px;
    overflow: hidden;
}

.member-profile {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-bottom: 1px solid var(--member-border);
}

.member-avatar,
.member-avatar-preview {
    width: 56px;
    height: 56px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--member-surface-muted);
    color: var(--member-accent);
    font-size: 20px;
    font-weight: 800;
}

.member-avatar img,
.member-avatar-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.member-profile strong,
.member-section-head h2,
.member-download-source,
.member-download-meta strong {
    color: var(--member-text);
    font-weight: 700;
}

.member-profile span,
.member-profile small,
.member-section-head span,
.member-section-head a,
.member-download-note,
.member-download-meta span,
.member-download-link-preview,
.member-download-code-wrap label {
    color: var(--member-muted);
}

.member-profile b {
    color: var(--member-accent);
    font-size: 24px;
}

.member-profile form {
    margin: 6px 0 0;
}

.member-profile button,
.member-button,
.member-paywall button,
.member-assets button,
.vip-plan-card button,
.member-settings-card button,
.recharge-method-card button,
.recharge-alipay-box button,
.recharge-copy-line button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 14px;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--member-accent);
    color: var(--bg-primary);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.member-button.secondary,
.member-download-actions .member-button.secondary,
.member-access-actions .member-button.secondary,
.recharge-copy-line button {
    border: 1px solid var(--member-border);
    background: var(--member-surface-muted);
    color: var(--member-text);
}

.member-button.disabled,
.member-profile button:disabled,
.recharge-method-card button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.member-menu {
    display: grid;
    gap: 4px;
    padding: 10px;
}

.member-menu a,
.member-menu .member-menu-logout {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--member-muted);
    font-size: 13px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.member-menu a:hover,
.member-menu a.is-active,
.member-menu .member-menu-logout:hover {
    background: var(--member-accent-soft);
    color: var(--member-accent);
}

.member-logout-form {
    margin: 0;
}

.member-main {
    min-width: 0;
    display: grid;
    gap: 16px;
}

.member-flash {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
}

.member-flash.success {
    border: 1px solid rgba(22, 163, 74, .25);
    background: rgba(22, 163, 74, .1);
    color: #16a34a;
}

.member-flash.error {
    border: 1px solid rgba(220, 38, 38, .25);
    background: rgba(220, 38, 38, .1);
    color: #dc2626;
}

.member-dashboard-hero {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 22px;
}

.member-dashboard-hero span {
    color: var(--member-muted);
    font-size: 12px;
}

.member-dashboard-hero h1 {
    margin: 4px 0 8px;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.1;
}

.member-dashboard-hero p {
    max-width: 520px;
    margin: 0;
    color: var(--member-muted);
    line-height: 1.7;
}

.member-dashboard-status {
    min-width: 180px;
    align-self: center;
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--member-accent-soft);
}

.member-dashboard-status b {
    color: var(--member-accent);
}

.member-dashboard-status small {
    color: var(--member-muted);
    line-height: 1.5;
}

.member-stat-grid,
.vip-plan-grid,
.member-settings-grid,
.recharge-method-grid,
.recharge-order-summary,
.member-dual-grid {
    display: grid;
    gap: 12px;
}

.member-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.member-stat-grid > div {
    padding: 16px;
}

.member-stat-grid strong {
    display: block;
    color: var(--member-text);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
}

.member-stat-grid span {
    display: block;
    margin-top: 8px;
    color: var(--member-muted);
    font-size: 12px;
}

.member-panel {
    padding: 18px;
}

.member-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.member-section-head h2 {
    margin: 0;
    font-size: 18px;
}

.member-section-head a {
    font-size: 13px;
}

.vip-plan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vip-plan-card {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.vip-plan-card h3,
.vip-plan-card strong,
.vip-plan-card p,
.vip-plan-card form {
    margin: 0;
}

.vip-plan-card strong {
    color: var(--member-accent);
    font-size: 26px;
}

.vip-plan-card strong span,
.vip-plan-card em {
    color: var(--member-muted);
    font-size: 12px;
    font-style: normal;
}

.vip-plan-card p {
    color: var(--member-muted);
    line-height: 1.6;
}

.member-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--member-border);
    border-radius: var(--radius-md);
}

.member-table-wrap table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
}

.member-table-wrap th,
.member-table-wrap td {
    padding: 12px;
    border-bottom: 1px solid var(--member-border);
    color: var(--member-text);
    font-size: 13px;
    text-align: left;
    white-space: nowrap;
}

.member-table-wrap th {
    background: var(--member-surface-soft);
    color: var(--member-muted);
    font-weight: 600;
}

.member-table-wrap tr:last-child td {
    border-bottom: 0;
}

.member-table-wrap a,
.member-table-wrap .positive {
    color: var(--member-accent);
}

.member-table-wrap .negative {
    color: #dc2626;
}

.member-filter-bar {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(120px, .55fr)) auto;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid var(--member-border);
    border-radius: var(--radius-md);
    background: var(--member-surface-soft);
}

.member-filter-bar label,
.member-settings-card label,
.recharge-method-card label {
    display: grid;
    gap: 6px;
    color: var(--member-muted);
    font-size: 12px;
}

.member-filter-bar input,
.member-filter-bar select,
.member-settings-card input,
.member-reply-form textarea,
.recharge-method-card input,
.recharge-copy-line input {
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid var(--member-border);
    border-radius: var(--radius-md);
    background: var(--member-surface);
    color: var(--member-text);
    outline: 0;
}

.member-reply-form textarea {
    min-height: 110px;
    padding: 10px;
    resize: vertical;
}

.member-filter-actions {
    display: flex;
    align-items: end;
    gap: 8px;
}

.member-filter-actions button,
.member-filter-actions a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
}

.member-filter-actions button {
    border: 0;
    background: var(--member-accent);
    color: var(--bg-primary);
}

.member-filter-actions a {
    border: 1px solid var(--member-border);
    color: var(--member-muted);
}

.member-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.member-page-link {
    min-width: 34px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid var(--member-border);
    border-radius: var(--radius-md);
    background: var(--member-surface);
    color: var(--member-text);
    font-size: 13px;
}

.member-page-link.is-active {
    border-color: var(--member-accent);
    background: var(--member-accent);
    color: var(--bg-primary);
}

.member-page-link.is-disabled,
.member-page-link.is-ellipsis {
    opacity: .6;
}

.member-dual-grid,
.member-settings-grid,
.recharge-method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-settings-card {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.member-vip-faq details {
    padding: 12px 0;
    border-bottom: 1px solid var(--member-border);
}

.member-vip-faq details:last-child {
    border-bottom: 0;
}

.member-vip-faq summary {
    color: var(--member-text);
    font-weight: 700;
    cursor: pointer;
}

.member-vip-faq p {
    margin: 10px 0 0;
    color: var(--member-muted);
    line-height: 1.7;
}

.member-download-page {
    width: min(100%, 820px);
    margin: 0 auto;
    padding: 36px 18px 64px;
}

.member-download-ready {
    padding: 20px;
}

.member-download-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.member-download-header h1 {
    margin: 0 0 8px;
    font-size: 28px;
}

.member-download-header p {
    margin: 0;
    color: var(--member-muted);
    line-height: 1.7;
}

.member-download-badge,
.member-access-badge {
    display: inline-flex;
    align-items: center;
    align-self: start;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--member-accent-soft);
    color: var(--member-accent);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.member-download-box {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.member-download-meta,
.member-download-price-line,
.member-download-actions,
.member-access-actions,
.member-download-badges,
.member-access-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.member-download-link-preview,
.member-download-code-wrap {
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--member-surface-muted);
}

.member-download-code-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.member-download-code-wrap code,
.member-download-code {
    color: var(--member-accent);
    font-family: var(--font-mono);
}

.member-assets-panel {
    margin: 28px 0;
    padding: 0;
}

.member-asset-stack {
    display: grid;
    gap: 10px;
    padding: 10px 0;
}

.member-download-box--asset {
    background: var(--member-surface);
}

.member-download-offer,
.member-access-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.member-download-copy,
.member-access-copy,
.member-download-side,
.member-access-tools {
    min-width: 0;
}

.member-download-label {
    color: var(--member-muted);
    font-size: 12px;
}

.member-download-price {
    color: var(--member-accent);
    font-style: normal;
}

.member-download-price b {
    font-size: 24px;
}

.member-download-price em {
    margin-left: 4px;
    color: var(--member-muted);
    font-size: 12px;
    font-style: normal;
}

.member-reply-form {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.recharge-center .member-profile b {
    display: block;
}

.recharge-order-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.recharge-order-summary > div {
    padding: 14px;
    border: 1px solid var(--member-border);
    border-radius: var(--radius-md);
    background: var(--member-surface-soft);
}

.recharge-order-summary span {
    display: block;
    color: var(--member-muted);
    font-size: 12px;
}

.recharge-order-summary strong {
    display: block;
    margin-top: 8px;
    color: var(--member-text);
    word-break: break-word;
}

.recharge-status {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--member-surface-muted);
    color: var(--member-muted);
    font-size: 12px;
}

.recharge-status.is-paid,
.recharge-status.is-credited {
    background: rgba(22, 163, 74, .12);
    color: #16a34a;
}

.recharge-status.is-expired,
.recharge-status.is-closed,
.recharge-status.is-amount_error {
    background: rgba(220, 38, 38, .12);
    color: #dc2626;
}

.recharge-usdt-box {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.recharge-qr {
    display: grid;
    place-items: center;
    padding: 14px;
    border: 1px solid var(--member-border);
    border-radius: var(--radius-lg);
    background: #fff;
}

.recharge-qr img {
    width: 220px;
    height: 220px;
}

.recharge-usdt-info,
.recharge-alipay-box {
    display: grid;
    gap: 12px;
    color: var(--member-muted);
    line-height: 1.7;
}

.recharge-copy-line {
    display: flex;
    gap: 8px;
}

@media (max-width: 900px) {
    .member-center {
        grid-template-columns: 1fr;
    }

    .member-sidebar {
        position: static;
    }

    .member-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .member-stat-grid,
    .vip-plan-grid,
    .member-dual-grid,
    .member-settings-grid,
    .recharge-method-grid,
    .recharge-order-summary,
    .recharge-usdt-box {
        grid-template-columns: 1fr;
    }

    .member-filter-bar {
        grid-template-columns: 1fr;
    }
}

/* Frontend rendering for admin editor Markdown/snippet components */
.markdown-content{color:var(--ink);overflow-wrap:anywhere}
.markdown-content>*:first-child{margin-top:0}.markdown-content>*:last-child{margin-bottom:0}
.markdown-content h1,.markdown-content h2,.markdown-content h3,.markdown-content h4{line-height:1.35;margin:1.6em 0 .65em;color:var(--ink)}
.markdown-content h2{font-size:1.55em;border-bottom:1px solid var(--line);padding-bottom:.4em}.markdown-content h3{font-size:1.28em}
.markdown-content p,.markdown-content ul,.markdown-content ol,.markdown-content blockquote,.markdown-content table{margin:0 0 1.15em}
.markdown-content ul,.markdown-content ol{padding-left:1.6em}.markdown-content li+li{margin-top:.35em}
.markdown-content blockquote{border-left:4px solid var(--green);background:var(--bg-tertiary);padding:12px 16px;color:var(--muted);border-radius:0 8px 8px 0}
.markdown-content code{font-family:var(--font-mono);background:var(--bg-tertiary);border:1px solid var(--line);padding:.12em .38em;border-radius:4px;font-size:.9em}
.markdown-content pre{position:relative;background:#f4f6f8!important;border:1px solid #dfe4e8;color:#24292e;padding:16px!important;border-radius:8px;overflow:auto;line-height:1.65}
.markdown-content pre code{background:transparent;border:0;padding:0;color:inherit}
.markdown-content hr{border:0;border-top:1px solid var(--line);margin:28px 0}
.md-table-wrap{overflow:auto;margin:0 0 1.2em}.md-table{width:100%;border-collapse:collapse}.md-table th,.md-table td{border:1px solid var(--line);padding:9px 11px}.md-table th{background:var(--bg-tertiary);text-align:left}
.md-panel,.md-alert,.md-collapse,.md-download,.md-highlight{margin:18px 0;border:1px solid var(--line);border-radius:10px;background:var(--bg-secondary);overflow:hidden}
.md-panel>h3{margin:0;padding:11px 15px;background:#edf6ff;color:#155b91;font-size:15px}.md-panel>div,.md-collapse>div{padding:15px}.md-panel-yellow>h3{background:#fff7d6;color:#8b6500}.md-panel-red>h3{background:#fff0f0;color:#a22d2d}.md-panel-gray>h3{background:#eef1f3;color:#4e5961}
.md-alert{padding:14px 16px;border-left-width:4px}.md-alert>strong{display:block;margin-bottom:5px}.md-alert-info{background:#eff8ff;border-color:#56a8dd}.md-alert-success{background:#effaf2;border-color:#43a95f}.md-alert-warning{background:#fff9e8;border-color:#d5a82f}.md-alert-danger{background:#fff1f1;border-color:#d95b5b}
.md-collapse summary{cursor:pointer;font-weight:800;padding:12px 15px;background:var(--bg-tertiary)}
.md-highlight{padding:14px 16px;background:#fff9c9;border-color:#ead974}
.md-download{display:flex;align-items:center;gap:14px;padding:14px 16px}.md-download-icon{width:44px;height:44px;border-radius:10px;background:var(--accent-soft);display:grid;place-items:center;font-size:22px}.md-download-main{min-width:0;flex:1;display:grid}.md-download-main span{color:var(--muted);font-size:12px}.md-download>a,.md-button{display:inline-flex;align-items:center;justify-content:center;background:var(--green);color:#fff!important;border-radius:7px;padding:8px 14px;font-weight:800;text-decoration:none!important}
html[data-theme="dark"] .markdown-content pre{background:#20252a!important;border-color:#3b4249;color:#dce3e8}
html[data-theme="dark"] .md-panel,html[data-theme="dark"] .md-alert,html[data-theme="dark"] .md-collapse,html[data-theme="dark"] .md-download{background:#202428;border-color:#3a4147}
html[data-theme="dark"] .md-panel>h3,html[data-theme="dark"] .md-collapse summary{background:#292f34;color:#edf0f2}
html[data-theme="dark"] .md-alert-info{background:#172a38}html[data-theme="dark"] .md-alert-success{background:#172d20}html[data-theme="dark"] .md-alert-warning{background:#332d18}html[data-theme="dark"] .md-alert-danger{background:#351d1d}html[data-theme="dark"] .md-highlight{background:#343018;color:#eee4a8;border-color:#665d28}
@media(max-width:720px){.md-download{align-items:flex-start;flex-wrap:wrap}.md-download>a{width:100%}.member-auth-card{padding:22px}.member-center{padding-inline:0}}

/* 2026-07 sidebar, heading and code-block refinements */
.theme-button[data-theme-toggle]{position:relative;z-index:1;display:inline-grid;place-items:center;width:34px;height:34px;padding:0;border-radius:8px}
.theme-button[data-theme-toggle]:hover{background:rgba(45,164,78,.09);color:var(--green)}

.node-sidebar-profile{display:grid;gap:14px}
.node-sidebar-profile .profile-card{margin:0;padding:18px;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:0 5px 16px rgba(35,42,47,.07)}
.side-profile-card{text-align:center;padding-top:28px!important}
.side-profile-avatar{width:92px;height:92px;margin:0 auto 12px;border-radius:14px;overflow:hidden;background:linear-gradient(135deg,#46c9c2,#2f77ea);display:grid;place-items:center;color:#fff;font-size:32px;font-weight:800}
.side-profile-avatar img{width:100%;height:100%;display:block;object-fit:cover}
.side-profile-name{display:block;font-family:Georgia,"Times New Roman",serif;font-size:19px;font-style:italic}
.side-profile-line{display:block;width:24px;height:3px;margin:7px auto 10px;border-radius:4px;background:#41c7b9}
.side-profile-card>p{margin:0;color:var(--muted);font-size:12px}
.side-profile-links{display:flex;justify-content:center;gap:8px;margin:14px 0 18px}
.side-profile-links a{width:30px;height:30px;display:grid;place-items:center;border:1px solid #6f7880;border-radius:6px;font-size:11px;font-weight:800;transition:.18s}
.side-profile-links a:hover{border-color:var(--green);background:rgba(45,164,78,.08);color:var(--green);transform:translateY(-1px)}
.side-profile-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.side-profile-stats span{display:grid;gap:5px}
.side-profile-stats b{font-size:17px;font-weight:500;color:#3d4b55}
.side-profile-stats small{font-size:11px;color:var(--muted)}
.node-sidebar-profile h3,.node-sidebar-profile h4{margin:0 0 14px;font-weight:500}.node-sidebar-profile h4{font-size:11px;color:#a0a7ad}
.side-announcement h3{font-size:15px;color:#36434d}.side-announcement h3:first-letter{color:#24c6b7}.side-announcement p{margin:0;color:#4c5962;line-height:1.8}.side-announcement img{display:block;width:100%;max-height:190px;object-fit:contain;margin-top:12px;border-radius:8px}
.side-category-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px;row-gap:4px}.side-category-list a{display:flex;align-items:center;justify-content:space-between;padding:6px 0;color:#46535d}.side-category-list a:hover{color:var(--green)}.side-category-list b{min-width:27px;padding:2px 6px;border-radius:6px;background:#55cfc4;color:#fff;text-align:center;font-size:10px}
.side-tag-cloud{display:flex;flex-wrap:wrap;gap:7px 12px}.side-tag-cloud a{color:#55616b;font-size:12px}.side-tag-cloud a:hover{color:var(--green)}.side-tag-cloud sup{margin-left:3px;color:#a2a9ae;font-size:9px}
.side-hot-card ol{list-style:none;margin:0;padding:0;display:grid;gap:10px}.side-hot-card li{display:grid;grid-template-columns:18px minmax(0,1fr);gap:7px;align-items:start}.side-hot-card li i{font-style:normal;color:#8d969d;font-size:11px}.side-hot-card li:nth-child(-n+3) i{display:grid;place-items:center;width:14px;height:14px;border-radius:3px;background:#4bc8b9;color:#fff}.side-hot-card li:nth-child(2) i{background:#e3a13b}.side-hot-card li:nth-child(3) i{background:#bd72d8}.side-hot-card li a{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#44515a;font-size:12px}.side-hot-card li a:hover{color:var(--green)}.side-empty{display:block!important;color:var(--muted)}
.side-ad-card{min-height:150px;display:grid;place-items:center;align-content:center;color:#c1c6ca}.side-ad-card span{justify-self:start;align-self:start;font-size:11px}.side-ad-card p{margin:24px 0 0}

.markdown-content h1{position:relative;margin:1.55em 0 .8em;padding:0 0 .42em;color:var(--green);font-size:1.5em;font-weight:700;line-height:1.35;border-bottom:1px solid var(--line)}
.markdown-content h1::after{content:"";position:absolute;left:0;bottom:-1px;width:3.2em;height:2px;border-radius:2px;background:var(--green)}

.markdown-content pre{padding:18px 48px 18px 18px!important;background:#f6f8fa!important;border:1px solid #d8dee4;color:#24292f;box-shadow:inset 0 1px 0 rgba(255,255,255,.55)}
.markdown-content pre code{display:block;color:#24292f;font-size:13px;line-height:1.7;tab-size:4}
.code-copy-button{position:absolute;top:9px;right:9px;width:30px;height:30px;padding:0;display:grid;place-items:center;border:1px solid #d0d7de;border-radius:6px;background:rgba(255,255,255,.94);color:#57606a;cursor:pointer;opacity:0;visibility:hidden;transform:translateY(-3px);transition:opacity .16s,visibility .16s,transform .16s,background .16s,color .16s}
.markdown-content pre:hover>.code-copy-button,.code-copy-button:focus-visible{opacity:1;visibility:visible;transform:translateY(0)}
.code-copy-button:hover{background:#fff;color:var(--green);border-color:#8cdaa1}.code-copy-button.is-copied{opacity:1;visibility:visible;color:#fff;background:var(--green);border-color:var(--green)}
.code-copy-button svg{width:16px;height:16px;fill:currentColor}
.markdown-content .hljs-comment,.markdown-content .hljs-quote,.markdown-content .token.comment,.markdown-content .token.prolog{color:#6e7781;font-style:italic}
.markdown-content .hljs-keyword,.markdown-content .hljs-selector-tag,.markdown-content .hljs-built_in,.markdown-content .token.keyword,.markdown-content .token.boolean{color:#cf222e}
.markdown-content .hljs-string,.markdown-content .hljs-attr,.markdown-content .hljs-template-tag,.markdown-content .token.string,.markdown-content .token.attr-value{color:#0a3069}
.markdown-content .hljs-title,.markdown-content .hljs-section,.markdown-content .hljs-function,.markdown-content .token.function,.markdown-content .token.class-name{color:#8250df}
.markdown-content .hljs-number,.markdown-content .hljs-literal,.markdown-content .token.number{color:#0550ae}
.markdown-content .hljs-variable,.markdown-content .hljs-name,.markdown-content .token.variable,.markdown-content .token.property{color:#953800}
.markdown-content .hljs-meta,.markdown-content .token.operator,.markdown-content .token.punctuation{color:#57606a}

html[data-theme="dark"] .node-sidebar-profile .profile-card{background:var(--card);border-color:var(--line)}
html[data-theme="dark"] .side-profile-stats b,html[data-theme="dark"] .side-announcement h3,html[data-theme="dark"] .side-announcement p,html[data-theme="dark"] .side-category-list a,html[data-theme="dark"] .side-tag-cloud a,html[data-theme="dark"] .side-hot-card li a{color:var(--ink)}
html[data-theme="dark"] .markdown-content pre{background:#161b22!important;border-color:#30363d;color:#c9d1d9}
html[data-theme="dark"] .markdown-content pre code{color:#c9d1d9}
html[data-theme="dark"] .code-copy-button{background:rgba(33,38,45,.96);border-color:#454c56;color:#b9c0c8}
html[data-theme="dark"] .markdown-content .hljs-comment,html[data-theme="dark"] .markdown-content .hljs-quote,html[data-theme="dark"] .markdown-content .token.comment{color:#8b949e}
html[data-theme="dark"] .markdown-content .hljs-keyword,html[data-theme="dark"] .markdown-content .token.keyword{color:#ff7b72}
html[data-theme="dark"] .markdown-content .hljs-string,html[data-theme="dark"] .markdown-content .token.string,html[data-theme="dark"] .markdown-content .token.attr-value{color:#a5d6ff}
html[data-theme="dark"] .markdown-content .hljs-title,html[data-theme="dark"] .markdown-content .token.function,html[data-theme="dark"] .markdown-content .token.class-name{color:#d2a8ff}
html[data-theme="dark"] .markdown-content .hljs-number,html[data-theme="dark"] .markdown-content .token.number{color:#79c0ff}
html[data-theme="dark"] .markdown-content .hljs-variable,html[data-theme="dark"] .markdown-content .token.variable,html[data-theme="dark"] .markdown-content .token.property{color:#ffa657}

@media(max-width:720px){.node-sidebar-profile{gap:12px}.side-profile-card{padding-top:22px!important}.code-copy-button{opacity:1;visibility:visible;transform:none}}

/* 2026-07-28: article H1 and landscape-cover category layout */
.markdown-content h1{
    font-size:1em;
    line-height:1.45;
}

.landscape-section{margin:0 0 22px}
.landscape-section-head{display:flex;align-items:center;justify-content:space-between;margin:0 2px 12px}
.landscape-section-head h2{margin:0;color:var(--ink);font-size:18px;line-height:1.35}
.landscape-section-head a{color:var(--muted);font-size:12px;transition:color .16s}
.landscape-section-head a:hover{color:var(--green)}
.landscape-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.landscape-card{min-width:0;overflow:hidden;background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:0 3px 14px rgba(37,45,50,.06);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.landscape-card:hover{transform:translateY(-2px);border-color:rgba(45,164,78,.35);box-shadow:0 9px 24px rgba(37,45,50,.10)}
.landscape-cover{position:relative;display:block;width:100%;aspect-ratio:1.78/1;overflow:hidden;background:linear-gradient(135deg,#3b9694,#59b7ac);color:#fff}
.landscape-cover img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .28s ease}
.landscape-card:hover .landscape-cover img{transform:scale(1.025)}
.landscape-cover>span{position:absolute;inset:0;display:grid;place-items:center;padding:20px;text-align:center;font-size:30px;font-weight:900;letter-spacing:.04em}
.landscape-card-body{padding:17px 18px 18px}
.landscape-card-meta{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}
.landscape-card-meta a{color:#ee9b2f;font-size:14px;font-weight:800}
.landscape-card-meta time{color:var(--muted);font-size:13px;white-space:nowrap}
.landscape-card h3{margin:0 0 11px;color:var(--ink);font-size:18px;line-height:1.45;font-weight:800}
.landscape-card h3 a{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.landscape-card h3 a:hover{color:var(--green)}
.landscape-card p{display:-webkit-box;overflow:hidden;margin:0 0 13px;color:var(--muted);font-size:14px;line-height:1.8;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.landscape-tags{display:flex;align-items:center;gap:12px;overflow:hidden;white-space:nowrap}
.landscape-tags a{color:#55616a;font-size:12px}
.landscape-tags a:hover{color:var(--green)}
html[data-theme="dark"] .landscape-card{background:var(--card);border-color:var(--line);box-shadow:0 4px 18px rgba(0,0,0,.22)}
html[data-theme="dark"] .landscape-tags a{color:#aeb6bd}
@media(max-width:720px){
    .landscape-card-grid{grid-template-columns:1fr;gap:14px}
    .landscape-card-body{padding:15px}
    .landscape-card h3{font-size:17px}
}

/* 2026-07-28: Minimal independent-blog visual system */
:root{
  --paper:#fbfbfa;
  --card:rgba(255,255,255,.94);
  --ink:#20242a;
  --muted:#858d96;
  --line:rgba(15,23,42,.055);
  --green:#2f9d68;
  --green-soft:rgba(47,157,104,.09);
  --shadow:0 1px 2px rgba(15,23,42,.018),0 8px 24px rgba(15,23,42,.035);
  --shadow-hover:0 4px 10px rgba(15,23,42,.035),0 18px 38px rgba(15,23,42,.065);
}
body{
  line-height:1.65;
  background-color:var(--paper);
  background-image:
    linear-gradient(rgba(15,23,42,.028) 1px,transparent 1px),
    linear-gradient(90deg,rgba(15,23,42,.028) 1px,transparent 1px);
  background-size:34px 34px;
}
.node-shell{margin-top:34px;margin-bottom:48px}
.node-layout{gap:30px}
.node-main{display:grid;gap:24px}
.node-header{background:rgba(255,255,255,.88);border-bottom-color:rgba(15,23,42,.055);backdrop-filter:saturate(140%) blur(14px);-webkit-backdrop-filter:saturate(140%) blur(14px)}
.node-header-inner{height:58px}
.node-nav{gap:24px;font-size:13px}
.node-nav a{position:relative;padding:19px 0 17px;transition:color .2s ease}
.node-nav a::after{content:"";position:absolute;left:50%;right:50%;bottom:8px;height:2px;border-radius:99px;background:var(--green);transition:left .22s ease,right .22s ease}
.node-nav a:hover::after,.node-nav a.active::after{left:12%;right:12%}
.node-search{height:36px;width:210px;border-color:rgba(15,23,42,.07);border-radius:10px;background:rgba(248,250,252,.78);box-shadow:inset 0 1px 0 rgba(255,255,255,.85);transition:border-color .2s,box-shadow .2s,background .2s}
.node-search:focus-within{background:#fff;border-color:rgba(47,157,104,.28);box-shadow:0 0 0 4px rgba(47,157,104,.08)}
.feed-card,.detail-card,.message-card,.node-main>.article,.node-sidebar-profile .profile-card{
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--card);
  box-shadow:var(--shadow);
}
.feed-card,.detail-card,.message-card,.node-main>.article{overflow:hidden}
.feed-tabs{height:56px;padding:0 24px;border-bottom-color:var(--line)}
.feed-tabs a{padding:7px 12px;border-radius:999px;font-size:13px}
.feed-tabs a.active{background:var(--green-soft);color:var(--green)}
.topic-item{min-height:78px;padding:14px 22px;gap:14px;border-bottom-color:rgba(15,23,42,.045);transition:transform .3s cubic-bezier(.4,0,.2,1),background .3s cubic-bezier(.4,0,.2,1),box-shadow .3s cubic-bezier(.4,0,.2,1)}
.topic-item:hover{position:relative;z-index:1;background:#fff;transform:translateY(-2px);box-shadow:0 10px 24px rgba(15,23,42,.045)}
.topic-avatar{width:42px;height:42px;flex-basis:42px;border-radius:11px}
.topic-title{font-size:14px;font-weight:680;letter-spacing:-.01em}
.topic-meta{margin-top:5px;gap:14px;color:var(--muted);font-size:11px}
.topic-category,.pin{border-radius:999px;border-color:rgba(15,23,42,.07);background:rgba(248,250,252,.85);padding:3px 8px}
.node-sidebar-profile{gap:16px}
.node-sidebar-profile .profile-card{padding:20px;margin:0;box-shadow:0 1px 2px rgba(15,23,42,.018),0 8px 22px rgba(15,23,42,.03);transition:transform .3s cubic-bezier(.4,0,.2,1),box-shadow .3s cubic-bezier(.4,0,.2,1),border-color .3s}
.node-sidebar-profile .profile-card:hover{transform:translateY(-3px);border-color:rgba(15,23,42,.08);box-shadow:var(--shadow-hover)}
.side-profile-card{padding-top:28px!important}
.side-profile-avatar{width:84px;height:84px;border-radius:18px;background:linear-gradient(145deg,#75b8aa,#6c8da2)}
.side-profile-name{font-family:inherit;font-size:18px;font-style:normal;font-weight:720;letter-spacing:-.015em}
.side-profile-line{height:2px;background:linear-gradient(90deg,#7ebaa9,#3c9b72)}
.side-profile-card>p{max-width:220px;margin-inline:auto;line-height:1.7}
.side-profile-links a{border-color:rgba(15,23,42,.11);border-radius:9px;background:rgba(248,250,252,.75)}
.side-profile-stats{margin-top:4px;padding-top:16px;border-top:1px solid var(--line)}
.side-profile-stats b{font-size:16px;font-weight:650;color:var(--ink)}
.side-profile-stats small,.side-card h4,.profile-card h4{color:var(--muted);font-weight:550;letter-spacing:.02em}
.side-category-list a{padding:7px 0;color:#53606b}
.side-category-list b{min-width:29px;background:rgba(47,157,104,.11);color:var(--green);border:1px solid rgba(47,157,104,.09);border-radius:999px;font-weight:650}
.side-tag-cloud{display:flex;flex-wrap:wrap;gap:8px}
.side-tag-cloud a{margin:0!important;padding:5px 9px;border:1px solid rgba(15,23,42,.055);border-radius:999px;background:rgba(248,250,252,.82);font-size:11px;line-height:1.2;transition:all .2s ease}
.side-tag-cloud a:hover{border-color:rgba(47,157,104,.18);background:var(--green-soft);color:var(--green);transform:translateY(-1px)}
.side-hot-card ol{gap:12px}
.side-hot-card li a{font-size:12.5px;color:#56616b}
.side-ad-card.is-empty{display:none}

/* Landscape categories become a restrained editorial list instead of large poster tiles. */
.landscape-section{margin:0}
.landscape-section-head{margin:0 2px 14px;padding:0 2px}
.landscape-section-head h2{font-size:16px;font-weight:720;letter-spacing:-.01em}
.landscape-card-grid{grid-template-columns:1fr;gap:12px}
.landscape-card{
  display:grid;
  grid-template-columns:184px minmax(0,1fr);
  min-height:154px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--card);
  box-shadow:var(--shadow);
  transition:transform .3s cubic-bezier(.4,0,.2,1),box-shadow .3s cubic-bezier(.4,0,.2,1),border-color .3s;
}
.landscape-card:hover{transform:translateY(-4px);border-color:rgba(47,157,104,.15);box-shadow:var(--shadow-hover)}
.landscape-cover{width:100%;height:100%;min-height:154px;aspect-ratio:auto;border-radius:0;background:linear-gradient(145deg,#9eb9af,#809e98);border-right:1px solid var(--line)}
.landscape-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(255,255,255,.09),transparent 55%);pointer-events:none}
.landscape-cover img{filter:saturate(.88) contrast(.98);transition:transform .45s cubic-bezier(.2,.8,.2,1),filter .35s}
.landscape-card:hover .landscape-cover img{transform:scale(1.035);filter:saturate(.98) contrast(1)}
.landscape-cover>span{font-size:19px;font-weight:760;letter-spacing:.025em;color:rgba(255,255,255,.96)}
.landscape-card-body{display:flex;flex-direction:column;justify-content:center;padding:22px 24px}
.landscape-card-meta{justify-content:flex-start;gap:10px;margin-bottom:9px}
.landscape-card-meta a{display:inline-flex;align-items:center;padding:4px 9px;border-radius:999px;background:var(--green-soft);color:var(--green);font-size:11px;font-weight:700}
.landscape-card-meta time{font-size:11px;color:var(--muted)}
.landscape-card h3{margin:0 0 8px;font-size:17px;line-height:1.45;font-weight:720;letter-spacing:-.015em}
.landscape-card p{margin:0 0 12px;font-size:13px;line-height:1.75;color:var(--muted);-webkit-line-clamp:2}
.landscape-tags{gap:7px;flex-wrap:wrap;white-space:normal}
.landscape-tags a{display:inline-flex;padding:4px 8px;border:1px solid rgba(15,23,42,.05);border-radius:999px;background:rgba(248,250,252,.75);color:#78818a;font-size:10.5px;line-height:1.2}
.landscape-tags a:hover{background:var(--green-soft);border-color:rgba(47,157,104,.13)}

/* Reading typography */
.node-main>.article{padding:34px 38px}
.node-main>.article h1{font-size:1em;line-height:1.5;font-weight:720;letter-spacing:-.015em}
.node-main>.article .article-body{font-size:15.5px;line-height:1.9;color:#333a42}
.node-main>.article .article-body h2{margin-top:2.2em;margin-bottom:.8em;font-size:1.45em;line-height:1.45;font-weight:720;letter-spacing:-.015em}
.node-main>.article .article-body h3{margin-top:1.9em;margin-bottom:.7em;font-size:1.18em;line-height:1.5;font-weight:700}
.node-main>.article .article-body p{margin:1.05em 0}
.node-main>.article .summary,.article-meta,.detail-meta{color:var(--muted)}

html[data-theme="dark"]{
  --paper:#111416;
  --card:rgba(28,32,35,.94);
  --ink:#edf0f2;
  --muted:#98a1aa;
  --line:rgba(255,255,255,.065);
  --green:#65c08a;
  --green-soft:rgba(101,192,138,.11);
  --shadow:0 1px 2px rgba(0,0,0,.22),0 10px 26px rgba(0,0,0,.14);
  --shadow-hover:0 6px 14px rgba(0,0,0,.22),0 20px 44px rgba(0,0,0,.22);
}
html[data-theme="dark"] body{background-image:linear-gradient(rgba(255,255,255,.026) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.026) 1px,transparent 1px)}
html[data-theme="dark"] .node-header{background:rgba(21,24,27,.86)}
html[data-theme="dark"] .node-search,html[data-theme="dark"] .side-profile-links a,html[data-theme="dark"] .side-tag-cloud a,html[data-theme="dark"] .landscape-tags a{background:rgba(255,255,255,.025);border-color:var(--line)}
html[data-theme="dark"] .topic-item:hover{background:rgba(255,255,255,.025)}
html[data-theme="dark"] .node-main>.article .article-body{color:#d4d9dd}
html[data-theme="dark"] .landscape-cover{border-right-color:var(--line)}

@media(max-width:900px){
  .node-layout{gap:20px}
  .landscape-card{grid-template-columns:150px minmax(0,1fr)}
  .landscape-card-body{padding:19px 20px}
}
@media(max-width:720px){
  .node-shell{margin-top:20px}
  .node-main{gap:16px}
  .landscape-card{grid-template-columns:116px minmax(0,1fr);min-height:132px}
  .landscape-cover{min-height:132px}
  .landscape-card-body{padding:15px 16px}
  .landscape-card p{display:none}
  .landscape-card h3{font-size:15px}
  .node-main>.article{padding:22px 20px}
  .topic-item{padding:12px 14px}
}
@media(max-width:480px){
  .landscape-card{grid-template-columns:94px minmax(0,1fr)}
  .landscape-cover{min-height:122px}
  .landscape-card-meta time,.landscape-tags{display:none}
}

/* 2026-07 detail-page refinements from review annotations */
.theme-button[data-theme-toggle],
.theme-button[data-theme-toggle]:hover,
.theme-button[data-theme-toggle]:focus,
.theme-button[data-theme-toggle]:focus-visible,
.theme-button[data-theme-toggle]:active{
  border:0!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--green);
}
.theme-button[data-theme-toggle]{width:32px;height:32px;border-radius:0}
.theme-button[data-theme-toggle] span{display:block;font-size:20px;line-height:1;transition:transform .2s ease,color .2s ease}
.theme-button[data-theme-toggle]:hover span{transform:rotate(12deg) scale(1.06)}

.node-main>.article .detail-hero .detail-title{
  margin:0 0 10px;
  color:var(--ink);
  font-size:22px;
  line-height:1.45;
  font-weight:740;
  letter-spacing:-.018em;
}

.markdown-content blockquote{
  border-left-color:#4b5563!important;
  color:#66707a;
}
html[data-theme="dark"] .markdown-content blockquote{
  border-left-color:#8b949e!important;
  color:#aeb6bd;
}

.side-tag-card{min-height:112px}
.side-tag-card h4{letter-spacing:.04em}
.side-tag-empty{margin:0;color:var(--muted);font-size:12px}

@media(max-width:720px){
  .node-main>.article .detail-hero .detail-title{font-size:20px}
}

/* 2026-07 list-page refinements from review annotations */
/* 1. Compact navbar: reduce overall height and visual weight */
.node-header{height:42px}
.node-header-inner{height:42px;gap:20px}
.node-brand{font-size:22px;gap:6px;line-height:1}
.brand-mark{font-size:24px}
.node-brand small{font-size:8px;margin-top:2px}
.node-nav{gap:18px;font-size:13px}
.node-search{height:30px;width:190px}
.node-search input{font-size:13px}
.header-avatar{width:27px;height:27px;border-radius:6px}
.theme-button[data-theme-toggle]{width:28px;height:28px}
.theme-button[data-theme-toggle] span{font-size:18px}

/* 2. Pull the content area closer to the navbar */
.node-shell{margin-top:10px}
.node-sidebar{top:56px}

/* 3. Category badges use restrained rounded squares instead of pills */
.topic-category,
.pin{
  border-radius:4px;
  padding:3px 7px;
}

/* 4. Reduce list-title darkness and weight */
.topic-title{
  color:#3f474f;
  font-weight:580;
  letter-spacing:-.005em;
}
.topic-title:hover{color:var(--green)}
html[data-theme="dark"] .topic-title{color:#d5dade}

@media(max-width:720px){
  .node-header,.node-header-inner{height:44px}
  .node-nav{top:44px}
  .node-shell{margin-top:10px}
  .node-brand{font-size:20px}
  .brand-mark{font-size:22px}
}

/* 2026-07 v7: compact code tools and mobile category popover */
/* Copy control: icon only, no surrounding box */
.code-copy-button,
.code-copy-button:hover,
.code-copy-button:focus,
.code-copy-button:focus-visible,
.code-copy-button:active,
html[data-theme="dark"] .code-copy-button,
html[data-theme="dark"] .code-copy-button:hover {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0 !important;
  border-radius: 5px;
  background: transparent !important;
  box-shadow: none !important;
  color: #737b84;
  outline: 0;
}
.code-copy-button:hover,
.code-copy-button:focus-visible {
  color: var(--green);
}
.code-copy-button.is-copied,
html[data-theme="dark"] .code-copy-button.is-copied {
  color: var(--green);
  background: transparent !important;
}
.code-copy-button svg {
  width: 17px;
  height: 17px;
}
html[data-theme="dark"] .code-copy-button {
  color: #aeb6bf;
}

/* Code-block scrollbar: slimmer, lighter and less visually dominant */
.markdown-content pre {
  scrollbar-width: thin;
  scrollbar-color: rgba(91, 101, 111, .30) transparent;
}
.markdown-content pre::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.markdown-content pre::-webkit-scrollbar-track {
  background: transparent;
}
.markdown-content pre::-webkit-scrollbar-thumb {
  min-width: 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(91, 101, 111, .28);
  background-clip: padding-box;
}
.markdown-content pre::-webkit-scrollbar-thumb:hover {
  background: rgba(91, 101, 111, .42);
  background-clip: padding-box;
}
.markdown-content pre::-webkit-scrollbar-corner {
  background: transparent;
}
html[data-theme="dark"] .markdown-content pre {
  scrollbar-color: rgba(194, 201, 209, .28) transparent;
}
html[data-theme="dark"] .markdown-content pre::-webkit-scrollbar-thumb {
  background: rgba(194, 201, 209, .24);
  background-clip: padding-box;
}
html[data-theme="dark"] .markdown-content pre::-webkit-scrollbar-thumb:hover {
  background: rgba(194, 201, 209, .38);
  background-clip: padding-box;
}

@media (max-width: 720px) {
  /* Compact category popover instead of a full-width dropdown panel */
  .node-nav {
    left: 12px;
    right: auto;
    top: 44px;
    width: max-content;
    max-width: calc(100vw - 24px);
    padding: 6px 8px;
    gap: 2px;
    border-color: rgba(15, 23, 42, .07);
    border-radius: 7px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .09);
    flex-flow: row wrap;
    align-items: center;
  }
  .node-nav a {
    padding: 6px 8px;
    font-size: 13px;
    line-height: 1.2;
  }
  .node-nav a::after {
    bottom: 2px;
  }
  html[data-theme="dark"] .node-nav {
    border-color: rgba(255, 255, 255, .08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  }
}

/* 2026-07 v8: member icon, category tabs and mobile sidebar */
.header-avatar,
.header-avatar:hover,
.header-avatar:focus-visible{
  width:30px;
  height:30px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--green);
  display:grid;
  place-items:center;
}
.header-avatar svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:transform .2s ease,color .2s ease;
}
.header-avatar:hover svg{transform:translateY(-1px);color:#208b4f}
html[data-theme="dark"] .header-avatar{color:#74d7a1}

/* Remove the numerical statistics strip from the profile card. */
.side-profile-stats{display:none!important}
.side-profile-links{margin-bottom:0!important}

/* Square category tabs with second-level category names. */
.category-tabs{
  gap:8px;
  overflow-x:auto;
  scrollbar-width:none;
}
.category-tabs::-webkit-scrollbar{display:none}
.category-tabs a{
  flex:0 0 auto;
  min-width:58px;
  padding:7px 12px;
  border:1px solid var(--line);
  border-radius:4px!important;
  background:transparent;
  color:var(--muted);
  text-align:center;
  line-height:1.15;
}
.category-tabs a:hover{
  border-color:rgba(45,164,78,.25);
  color:var(--green);
  background:var(--green-soft);
}
.category-tabs a.active{
  border-color:rgba(45,164,78,.18);
  border-radius:4px!important;
  background:var(--green-soft)!important;
  color:var(--green)!important;
  font-weight:650;
}
html[data-theme="dark"] .category-tabs a{
  border-color:rgba(255,255,255,.08);
}
html[data-theme="dark"] .category-tabs a.active{
  border-color:rgba(116,215,161,.2);
}

/* Mobile keeps only the primary content column. */
@media(max-width:720px){
  .node-sidebar{display:none!important}
  .node-layout{display:block!important}
  .node-main{width:100%}
  .header-avatar{width:28px;height:28px}
  .header-avatar svg{width:21px;height:21px}
  .category-tabs{padding-left:14px;padding-right:14px}
  .category-tabs a{min-width:52px;padding:6px 10px;font-size:12px}
}

/* 2026-07 v9: flat article flow, relaxed typography and refined code/callout system */

/* Remove the heavy article-card shell while retaining a readable content surface. */
.node-main > .article.detail-card {
  overflow: visible;
  padding: 32px 34px 42px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: rgba(255, 255, 255, .94);
}

.node-main > .article.detail-card .detail-hero {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(15, 23, 42, .07);
}

.node-main > .article.detail-card .article-body {
  max-width: 100%;
  color: #343a40;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.78;
  letter-spacing: .002em;
}

.node-main > .article.detail-card .article-body > * + * {
  margin-top: 1.15em;
}

.node-main > .article.detail-card .article-body p {
  margin: 1.15em 0;
}

.node-main > .article.detail-card .article-body h2 {
  margin-top: 2.35em;
  margin-bottom: .82em;
  color: #252b31;
  font-weight: 680;
  line-height: 1.42;
}

.node-main > .article.detail-card .article-body h3 {
  margin-top: 2em;
  margin-bottom: .72em;
  color: #30363c;
  font-weight: 650;
  line-height: 1.48;
}

.node-main > .article.detail-card .article-body ul,
.node-main > .article.detail-card .article-body ol {
  margin: 1.15em 0;
  padding-left: 1.65em;
}

.node-main > .article.detail-card .article-body li + li {
  margin-top: .42em;
}

/* More generous callout spacing and a calmer low-contrast surface. */
.markdown-content .md-alert,
.markdown-content .callout,
.markdown-content .alert,
.markdown-content [class*="callout-"] {
  margin: 24px 0;
  padding: 20px 22px;
  border-radius: 10px;
  line-height: 1.72;
}

.markdown-content .md-alert-info,
.markdown-content .callout-info,
.markdown-content .alert-info {
  border-color: rgba(67, 145, 204, .42);
  background: rgba(232, 245, 255, .72);
}

.markdown-content .md-alert > strong,
.markdown-content .callout > strong,
.markdown-content .alert > strong {
  margin-bottom: 7px;
  font-weight: 650;
}

/* Inline code: compact, quiet and consistent with the block-code palette. */
.markdown-content :not(pre) > code {
  display: inline;
  padding: .16em .42em;
  border: 1px solid rgba(15, 23, 42, .075);
  border-radius: 5px;
  background: #f3f5f7;
  color: #38424c;
  font-family: var(--font-mono);
  font-size: .88em;
  font-weight: 500;
  line-height: inherit;
  white-space: break-spaces;
}

/* Code blocks: refined border, spacing and type rhythm. */
.markdown-content pre {
  margin: 24px 0;
  padding: 19px 46px 19px 20px !important;
  border: 1px solid rgba(15, 23, 42, .08) !important;
  border-radius: 9px !important;
  background: #f6f8fa !important;
  box-shadow: none !important;
  font-family: var(--font-mono);
}

.markdown-content pre code {
  font-family: inherit;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.72;
}

/* Blockquotes: flat, editorial and less card-like. */
.markdown-content blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border: 0;
  border-left: 3px solid #737b84;
  border-radius: 0;
  background: transparent;
  color: #65707a;
  font-weight: 400;
  line-height: 1.76;
}

.markdown-content blockquote > :first-child { margin-top: 0; }
.markdown-content blockquote > :last-child { margin-bottom: 0; }

/* Keep the supporting article actions visually secondary. */
.node-main > .article.detail-card .post-signature,
.node-main > .article.detail-card .detail-actions {
  margin-top: 34px;
}

html[data-theme="dark"] .node-main > .article.detail-card {
  background: rgba(32, 35, 38, .94);
}

html[data-theme="dark"] .node-main > .article.detail-card .detail-hero {
  border-color: rgba(255, 255, 255, .075);
}

html[data-theme="dark"] .node-main > .article.detail-card .article-body {
  color: #d4d9de;
}

html[data-theme="dark"] .node-main > .article.detail-card .article-body h2,
html[data-theme="dark"] .node-main > .article.detail-card .article-body h3 {
  color: #eef1f3;
}

html[data-theme="dark"] .markdown-content :not(pre) > code {
  border-color: rgba(255, 255, 255, .09);
  background: #282d32;
  color: #d9e0e6;
}

html[data-theme="dark"] .markdown-content .md-alert-info,
html[data-theme="dark"] .markdown-content .callout-info,
html[data-theme="dark"] .markdown-content .alert-info {
  border-color: rgba(90, 160, 210, .34);
  background: rgba(25, 50, 68, .68);
}

html[data-theme="dark"] .markdown-content blockquote {
  border-left-color: #7f8992;
  background: transparent;
  color: #aeb6bd;
}

@media (max-width: 720px) {
  .node-main > .article.detail-card {
    padding: 24px 20px 34px;
  }

  .node-main > .article.detail-card .detail-hero {
    margin-bottom: 24px;
  }

  .markdown-content .md-alert,
  .markdown-content .callout,
  .markdown-content .alert,
  .markdown-content [class*="callout-"] {
    padding: 17px 18px;
  }
}

/* 2026-07 v10: compact two-row mobile header and edge-to-edge article reading */
.node-nav .nav-all{display:none}

@media (max-width:720px){
  /* The first row is intentionally compact; categories become a permanent second row. */
  .node-header{
    height:76px!important;
    overflow:visible;
  }
  .node-header-inner{
    position:relative;
    height:38px!important;
    min-height:38px;
    padding:0 10px!important;
    gap:9px!important;
  }
  .node-brand{
    font-size:18px!important;
    gap:4px!important;
    line-height:1;
  }
  .brand-mark{font-size:22px!important}
  .node-brand small{
    font-size:7px!important;
    margin-top:1px!important;
  }
  .node-search{
    width:30px!important;
    height:30px!important;
    margin-left:auto;
    border:0!important;
    background:transparent!important;
  }
  .node-search input{display:none!important}
  .node-search button{
    width:30px;
    height:30px;
    padding:0;
    font-size:18px;
  }
  .header-login{display:none!important}
  .header-avatar,.theme-button{
    width:28px!important;
    height:28px!important;
    flex:0 0 28px;
    padding:0!important;
  }
  .header-avatar svg{width:20px!important;height:20px!important}
  .theme-button{font-size:18px!important}
  .mobile-menu{display:none!important}

  .node-nav,
  .node-nav.is-open{
    display:flex!important;
    position:absolute!important;
    z-index:12;
    top:38px!important;
    left:0!important;
    right:0!important;
    width:100vw!important;
    max-width:none!important;
    height:38px;
    margin:0!important;
    padding:0 10px!important;
    gap:0!important;
    flex-flow:row nowrap!important;
    align-items:center;
    overflow-x:auto;
    overflow-y:hidden;
    border:0!important;
    border-top:1px solid rgba(15,23,42,.035)!important;
    border-bottom:1px solid rgba(15,23,42,.06)!important;
    border-radius:0!important;
    background:rgba(255,255,255,.96)!important;
    box-shadow:none!important;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .node-nav::-webkit-scrollbar{display:none}
  .node-nav .nav-all{display:block}
  .node-nav a{
    flex:0 0 auto;
    height:38px;
    padding:0 11px!important;
    display:flex;
    align-items:center;
    color:#555d64;
    font-size:13px!important;
    line-height:1!important;
    white-space:nowrap;
  }
  .node-nav a::after{display:none!important}
  .node-nav a:hover,.node-nav a.active{
    color:var(--green);
    background:transparent;
  }
  html[data-theme="dark"] .node-nav{
    border-top-color:rgba(255,255,255,.035)!important;
    border-bottom-color:rgba(255,255,255,.075)!important;
    background:rgba(29,32,35,.97)!important;
  }

  /* Keep the content almost flush with the viewport, like a native mobile reading view. */
  .node-shell,
  .node-header-inner{
    max-width:100%!important;
  }
  .node-shell{
    width:100%;
    margin:4px auto 24px!important;
    padding:0 4px!important;
  }
  .node-layout,.node-main{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  .node-main{gap:8px!important}
  .node-main > .article.detail-card,
  .node-main > .article{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:18px 12px 28px!important;
    overflow:hidden!important;
    border-left:0!important;
    border-right:0!important;
    border-radius:7px!important;
  }
  .node-main > .article.detail-card .detail-hero{
    margin-bottom:20px!important;
    padding-bottom:16px!important;
  }
  .detail-title,
  .node-main > .article .detail-hero .detail-title{
    max-width:100%;
    overflow-wrap:anywhere;
    word-break:break-word;
    font-size:20px!important;
    line-height:1.35!important;
  }
  .article-meta,.detail-meta{
    max-width:100%;
    flex-wrap:wrap;
    row-gap:5px;
  }
  .markdown-content,
  .article-body{
    width:100%;
    max-width:100%;
    min-width:0;
    overflow-wrap:anywhere;
  }
  .markdown-content img,
  .article-body img,
  .markdown-content video,
  .markdown-content iframe,
  .markdown-content table{
    max-width:100%!important;
  }
  .markdown-content pre{
    width:100%;
    max-width:100%;
    min-width:0;
    margin-left:0!important;
    margin-right:0!important;
    padding:16px 38px 16px 14px!important;
  }
  .markdown-content pre code{font-size:12.5px}
  .markdown-content table{display:block;overflow-x:auto}
}

@media (max-width:390px){
  .node-header-inner{padding-inline:8px!important;gap:7px!important}
  .node-brand{font-size:17px!important}
  .node-nav{padding-inline:5px!important}
  .node-nav a{padding-inline:9px!important;font-size:12.5px!important}
  .node-shell{padding-inline:2px!important}
  .node-main > .article.detail-card,
  .node-main > .article{padding-inline:11px!important}
}

/* 2026-07 v11: restore click-to-open mobile category menu and square code blocks */
@media (max-width:720px){
  /* Return to a single compact header row. Categories open only from the menu button. */
  .node-header{height:38px!important;overflow:visible!important}
  .node-header-inner{height:38px!important;min-height:38px!important}
  .node-brand{order:0}
  .node-search{order:1;margin-left:auto!important}
  .header-login,.header-avatar{order:2}
  .theme-button{order:3}
  .mobile-menu{
    order:4;
    display:grid!important;
    place-items:center;
    width:28px!important;
    height:28px!important;
    flex:0 0 28px;
    padding:0!important;
    color:var(--text-secondary,#667078);
    font-size:20px!important;
    line-height:1;
    cursor:pointer;
  }

  .node-nav,
  .node-nav.is-open{
    position:absolute!important;
    z-index:30!important;
    top:42px!important;
    left:auto!important;
    right:8px!important;
    width:max-content!important;
    max-width:calc(100vw - 16px)!important;
    height:auto!important;
    max-height:calc(100vh - 56px)!important;
    margin:0!important;
    padding:6px!important;
    gap:2px!important;
    flex-flow:row wrap!important;
    align-items:center!important;
    overflow:auto!important;
    border:1px solid rgba(15,23,42,.075)!important;
    border-radius:7px!important;
    background:rgba(255,255,255,.985)!important;
    box-shadow:0 10px 28px rgba(15,23,42,.11)!important;
  }
  .node-nav{display:none!important}
  .node-nav.is-open{display:flex!important}
  .node-nav .nav-all{display:block!important}
  .node-nav a{
    height:auto!important;
    padding:6px 8px!important;
    font-size:12.5px!important;
    line-height:1.2!important;
    border-radius:4px;
  }
  .node-nav a:hover,.node-nav a.active{
    color:var(--green)!important;
    background:rgba(45,164,78,.07)!important;
  }
  html[data-theme="dark"] .node-nav,
  html[data-theme="dark"] .node-nav.is-open{
    border-color:rgba(255,255,255,.08)!important;
    background:rgba(29,32,35,.985)!important;
    box-shadow:0 12px 30px rgba(0,0,0,.32)!important;
  }

  /* Mobile code surfaces use straight corners for a cleaner full-width technical-document look. */
  .markdown-content pre,
  .article-body pre,
  .node-main>.article pre,
  .markdown-content .code-block,
  .markdown-content .highlight,
  .markdown-content .md-code,
  .markdown-content [class*="language-"]{
    border-radius:0!important;
  }
  .markdown-content :not(pre)>code,
  .article-body :not(pre)>code{
    border-radius:0!important;
  }
}


/* 2026-07 v12: compact home header, native pager, fixed profile artwork and mobile refinements */
.node-layout{gap:11px}
.side-profile-avatar--fixed{overflow:hidden;background:transparent!important}
.side-profile-avatar--fixed img{display:block;width:100%;height:100%;object-fit:cover}
.side-profile-card{padding-top:22px!important}
.side-profile-card>p{margin-top:16px}
.feed-notice{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:5px 12px;
  color:var(--green);
  font-weight:700;
  letter-spacing:.01em;
  background:rgba(45,164,78,.08);
  border:1px solid rgba(45,164,78,.08);
  border-radius:4px;
}
.feed-pages{display:flex;align-items:center;justify-content:flex-end}
.feed-pages .pagination{display:flex;align-items:center;gap:3px;margin:0}
.feed-pages .pagination a,.feed-pages .pagination span{
  display:grid;
  place-items:center;
  min-width:26px;
  height:26px;
  padding:0 6px;
  border:0;
  border-radius:4px;
  color:var(--muted);
  font-size:12px;
  line-height:1;
}
.feed-pages .pagination a:hover{color:var(--green);background:rgba(45,164,78,.07)}
.feed-pages .pagination a.active{color:#fff;background:var(--green)}
html[data-theme="dark"] .feed-notice{background:rgba(45,164,78,.11);border-color:rgba(45,164,78,.12)}

@media(max-width:900px) and (min-width:721px){.node-layout{gap:8px}}

@media(max-width:720px){
  /* Feed/list containers become square on mobile. */
  .feed-card,
  .landscape-section,
  .landscape-card,
  .message-card{
    border-radius:0!important;
  }
  .feed-tabs{padding-inline:12px!important}
  .feed-notice{border-radius:0!important}

  /* The copy glyph stays hidden until the code surface is hovered, tapped or keyboard-focused. */
  .markdown-content pre>.code-copy-button,
  .article-body pre>.code-copy-button,
  .node-main>.article pre>.code-copy-button{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transform:translateY(-2px)!important;
  }
  .markdown-content pre:hover>.code-copy-button,
  .markdown-content pre:focus>.code-copy-button,
  .markdown-content pre:focus-within>.code-copy-button,
  .article-body pre:hover>.code-copy-button,
  .article-body pre:focus>.code-copy-button,
  .article-body pre:focus-within>.code-copy-button,
  .node-main>.article pre:hover>.code-copy-button,
  .node-main>.article pre:focus>.code-copy-button,
  .node-main>.article pre:focus-within>.code-copy-button,
  .code-copy-button.is-copied{
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transform:none!important;
  }
  .markdown-content pre:focus,
  .article-body pre:focus,
  .node-main>.article pre:focus{outline:none}
}

/* 2026-07 v13: mobile footer/title refinements and desktop article overflow guard */

/* Keep every desktop article child inside the main grid column. */
.node-layout,
.node-main,
.node-main > .article.detail-card,
.node-main > .article.detail-card .article-body,
.node-main > .article.detail-card .markdown-content {
  min-width: 0;
  max-width: 100%;
}

.node-main > .article.detail-card {
  overflow: hidden;
}

.node-main > .article.detail-card .article-body > *,
.node-main > .article.detail-card .markdown-content > * {
  max-width: 100%;
  min-width: 0;
}

.node-main > .article.detail-card .markdown-content blockquote,
.node-main > .article.detail-card .markdown-content p,
.node-main > .article.detail-card .markdown-content ul,
.node-main > .article.detail-card .markdown-content ol,
.node-main > .article.detail-card .markdown-content table,
.node-main > .article.detail-card .markdown-content pre {
  width: auto;
  max-width: 100%;
}

.node-main > .article.detail-card .markdown-content blockquote,
.node-main > .article.detail-card .markdown-content p,
.node-main > .article.detail-card .markdown-content li {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.node-main > .article.detail-card .markdown-content pre,
.node-main > .article.detail-card .markdown-content .md-table-wrap,
.node-main > .article.detail-card .markdown-content table {
  overflow-x: auto;
}

.node-main > .article.detail-card .markdown-content iframe,
.node-main > .article.detail-card .markdown-content video,
.node-main > .article.detail-card .markdown-content img {
  display: block;
  max-width: 100%;
  height: auto;
}

@media (max-width: 720px) {
  /* Compact, unfilled announcement strip. */
  .feed-tabs {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 12px !important;
  }

  .feed-notice {
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    line-height: 34px;
  }

  /* Show complete post titles rather than clipping them to one line. */
  .topic-item {
    align-items: flex-start;
  }

  .topic-title {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: unset;
    line-height: 1.42;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .topic-meta {
    flex-wrap: wrap;
    white-space: normal;
    row-gap: 3px;
  }

  /* Hide all footer columns on phones and retain only copyright. */
  .node-footer {
    margin-top: 16px !important;
    padding: 0 !important;
  }

  .node-footer > div {
    display: none !important;
  }

  .node-footer small {
    display: block !important;
    margin: 0 !important;
    padding: 10px 8px !important;
    border-top: 0 !important;
    font-size: 12px;
    line-height: 1.35;
  }

  /* Preserve edge-to-edge reading without letting descendants widen the viewport. */
  .node-main > .article.detail-card {
    overflow: hidden !important;
  }

  .node-main > .article.detail-card .article-body,
  .node-main > .article.detail-card .markdown-content,
  .node-main > .article.detail-card .markdown-content > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}


/* 2026-07 v14: remove duplicated home/profile chrome and tighten article utilities */

/* The home feed starts directly with content; pagination remains at the bottom. */
.feed-card--home > .topic-item:first-child {
  border-top: 0;
}
.feed-card--home .topic-item:first-child {
  padding-top: 12px;
}

/* Sidebar begins with the useful announcement module after removing the decorative profile card. */
.node-sidebar-profile > .profile-card:first-child {
  margin-top: 0;
}

/* Technical code surfaces use a crisp dark outline without making the whole block clickable. */
.markdown-content pre,
.article-body pre,
.node-main > .article pre {
  border: 1px solid #363d44 !important;
  cursor: text;
}
.markdown-content pre:focus,
.article-body pre:focus,
.node-main > .article pre:focus {
  outline: none;
}

/* Compact callouts: retain readable inner padding but remove excessive vertical height. */
.markdown-content .md-alert,
.markdown-content .callout,
.markdown-content .alert,
.markdown-content [class*="callout-"] {
  margin: 16px 0 !important;
  padding: 13px 16px !important;
  line-height: 1.65 !important;
}
.markdown-content .md-alert > :first-child,
.markdown-content .callout > :first-child,
.markdown-content .alert > :first-child,
.markdown-content [class*="callout-"] > :first-child {
  margin-top: 0 !important;
}
.markdown-content .md-alert > :last-child,
.markdown-content .callout > :last-child,
.markdown-content .alert > :last-child,
.markdown-content [class*="callout-"] > :last-child {
  margin-bottom: 0 !important;
}
.markdown-content .md-alert p,
.markdown-content .callout p,
.markdown-content .alert p,
.markdown-content [class*="callout-"] p {
  margin: .55em 0 !important;
}

html[data-theme="dark"] .markdown-content pre,
html[data-theme="dark"] .article-body pre,
html[data-theme="dark"] .node-main > .article pre {
  border-color: #69727c !important;
}

@media (max-width: 720px) {
  .feed-card--home .topic-item:first-child {
    padding-top: 10px;
  }
  .markdown-content .md-alert,
  .markdown-content .callout,
  .markdown-content .alert,
  .markdown-content [class*="callout-"] {
    margin: 13px 0 !important;
    padding: 11px 13px !important;
  }
}

/* 2026-07 v15: larger H1 and borderless square syntax-highlighted code blocks */
.markdown-content h1 {
  font-size: 1.3em !important;
}

.markdown-content pre,
.article-body pre,
.node-main > .article pre,
html[data-theme="dark"] .markdown-content pre,
html[data-theme="dark"] .article-body pre,
html[data-theme="dark"] .node-main > .article pre {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* GitHub-inspired highlight.js palette, also covering existing Prism token output. */
.markdown-content pre code.hljs {
  display: block;
  overflow-x: auto;
  padding: 0;
  background: transparent;
  color: #24292f;
}
.markdown-content .hljs-comment,
.markdown-content .hljs-quote { color: #6e7781; font-style: italic; }
.markdown-content .hljs-doctag,
.markdown-content .hljs-keyword,
.markdown-content .hljs-formula { color: #cf222e; }
.markdown-content .hljs-section,
.markdown-content .hljs-name,
.markdown-content .hljs-selector-tag,
.markdown-content .hljs-deletion,
.markdown-content .hljs-subst { color: #82071e; }
.markdown-content .hljs-literal { color: #0550ae; }
.markdown-content .hljs-string,
.markdown-content .hljs-regexp,
.markdown-content .hljs-addition,
.markdown-content .hljs-attribute,
.markdown-content .hljs-meta .hljs-string { color: #0a3069; }
.markdown-content .hljs-attr,
.markdown-content .hljs-variable,
.markdown-content .hljs-template-variable,
.markdown-content .hljs-type,
.markdown-content .hljs-selector-class,
.markdown-content .hljs-selector-attr,
.markdown-content .hljs-selector-pseudo,
.markdown-content .hljs-number { color: #953800; }
.markdown-content .hljs-symbol,
.markdown-content .hljs-bullet,
.markdown-content .hljs-link,
.markdown-content .hljs-meta,
.markdown-content .hljs-selector-id,
.markdown-content .hljs-title { color: #8250df; }
.markdown-content .hljs-built_in,
.markdown-content .hljs-title.class_,
.markdown-content .hljs-class .hljs-title { color: #953800; }
.markdown-content .hljs-emphasis { font-style: italic; }
.markdown-content .hljs-strong { font-weight: 700; }

html[data-theme="dark"] .markdown-content pre code.hljs { color: #c9d1d9; }
html[data-theme="dark"] .markdown-content .hljs-comment,
html[data-theme="dark"] .markdown-content .hljs-quote { color: #8b949e; }
html[data-theme="dark"] .markdown-content .hljs-doctag,
html[data-theme="dark"] .markdown-content .hljs-keyword,
html[data-theme="dark"] .markdown-content .hljs-formula { color: #ff7b72; }
html[data-theme="dark"] .markdown-content .hljs-section,
html[data-theme="dark"] .markdown-content .hljs-name,
html[data-theme="dark"] .markdown-content .hljs-selector-tag,
html[data-theme="dark"] .markdown-content .hljs-deletion,
html[data-theme="dark"] .markdown-content .hljs-subst { color: #ffa198; }
html[data-theme="dark"] .markdown-content .hljs-literal { color: #79c0ff; }
html[data-theme="dark"] .markdown-content .hljs-string,
html[data-theme="dark"] .markdown-content .hljs-regexp,
html[data-theme="dark"] .markdown-content .hljs-addition,
html[data-theme="dark"] .markdown-content .hljs-attribute,
html[data-theme="dark"] .markdown-content .hljs-meta .hljs-string { color: #a5d6ff; }
html[data-theme="dark"] .markdown-content .hljs-attr,
html[data-theme="dark"] .markdown-content .hljs-variable,
html[data-theme="dark"] .markdown-content .hljs-template-variable,
html[data-theme="dark"] .markdown-content .hljs-type,
html[data-theme="dark"] .markdown-content .hljs-selector-class,
html[data-theme="dark"] .markdown-content .hljs-selector-attr,
html[data-theme="dark"] .markdown-content .hljs-selector-pseudo,
html[data-theme="dark"] .markdown-content .hljs-number { color: #ffa657; }
html[data-theme="dark"] .markdown-content .hljs-symbol,
html[data-theme="dark"] .markdown-content .hljs-bullet,
html[data-theme="dark"] .markdown-content .hljs-link,
html[data-theme="dark"] .markdown-content .hljs-meta,
html[data-theme="dark"] .markdown-content .hljs-selector-id,
html[data-theme="dark"] .markdown-content .hljs-title { color: #d2a8ff; }
html[data-theme="dark"] .markdown-content .hljs-built_in,
html[data-theme="dark"] .markdown-content .hljs-title.class_,
html[data-theme="dark"] .markdown-content .hljs-class .hljs-title { color: #ffa657; }

/* 2026-07 v16: refined article heading, compact quote and unobtrusive code scrolling */
.markdown-content h1 {
  font-size: 1.15em !important;
}

/* Keep one horizontal scroller on the pre element; do not let it cover the code line. */
.markdown-content pre,
.article-body pre,
.node-main > .article pre {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 15px 18px 17px !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(108, 117, 125, .22) transparent;
}
.markdown-content pre code,
.markdown-content pre code.hljs,
.article-body pre code,
.node-main > .article pre code {
  overflow: visible !important;
  min-width: max-content;
  padding: 0 !important;
}
.markdown-content pre::-webkit-scrollbar,
.article-body pre::-webkit-scrollbar,
.node-main > .article pre::-webkit-scrollbar {
  height: 4px;
}
.markdown-content pre::-webkit-scrollbar-track,
.article-body pre::-webkit-scrollbar-track,
.node-main > .article pre::-webkit-scrollbar-track {
  background: transparent;
}
.markdown-content pre::-webkit-scrollbar-thumb,
.article-body pre::-webkit-scrollbar-thumb,
.node-main > .article pre::-webkit-scrollbar-thumb {
  background: rgba(108, 117, 125, .20);
  border-radius: 999px;
}
.markdown-content pre::-webkit-scrollbar-thumb:hover,
.article-body pre::-webkit-scrollbar-thumb:hover,
.node-main > .article pre::-webkit-scrollbar-thumb:hover {
  background: rgba(108, 117, 125, .34);
}
html[data-theme="dark"] .markdown-content pre,
html[data-theme="dark"] .article-body pre,
html[data-theme="dark"] .node-main > .article pre {
  scrollbar-color: rgba(190, 198, 207, .20) transparent;
}
html[data-theme="dark"] .markdown-content pre::-webkit-scrollbar-thumb,
html[data-theme="dark"] .article-body pre::-webkit-scrollbar-thumb,
html[data-theme="dark"] .node-main > .article pre::-webkit-scrollbar-thumb {
  background: rgba(190, 198, 207, .18);
}

/* Compact, flat NodeSeek-style quotation block. */
.markdown-content blockquote {
  margin: 14px 0 18px !important;
  padding: 8px 14px 8px 17px !important;
  border-left: 3px solid #59636e !important;
  border-radius: 0 !important;
  background: rgba(246, 248, 250, .72) !important;
  color: #66707a !important;
  line-height: 1.65 !important;
}
.markdown-content blockquote p {
  margin: .25em 0 !important;
}
.markdown-content blockquote > :first-child {
  margin-top: 0 !important;
}
.markdown-content blockquote > :last-child {
  margin-bottom: 0 !important;
}
html[data-theme="dark"] .markdown-content blockquote {
  border-left-color: #89939d !important;
  background: rgba(255, 255, 255, .035) !important;
  color: #aeb6bf !important;
}

@media (max-width: 720px) {
  .markdown-content pre,
  .article-body pre,
  .node-main > .article pre {
    padding: 13px 14px 15px !important;
  }
  .markdown-content blockquote {
    margin: 12px 0 16px !important;
    padding: 7px 11px 7px 14px !important;
  }
}

/* 2026-07 v17: refined list-page title typography */
.topic-title {
  display: block;
  margin: 0 0 6px;
  color: #1a1a1a;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.48;
  letter-spacing: -0.012em;
  text-decoration: none !important;
  transition: color .18s ease, opacity .18s ease;
}
.topic-title:visited {
  color: #1a1a1a;
}
.topic-title:hover,
.topic-title:focus-visible {
  color: #238b57;
  text-decoration: none !important;
}
.topic-title:focus-visible {
  outline: 2px solid rgba(35, 139, 87, .18);
  outline-offset: 3px;
  border-radius: 2px;
}
.topic-meta {
  margin-top: 0;
  color: #8b939b;
  line-height: 1.55;
}
html[data-theme="dark"] .topic-title,
html[data-theme="dark"] .topic-title:visited {
  color: #f0f2f4;
}
html[data-theme="dark"] .topic-title:hover,
html[data-theme="dark"] .topic-title:focus-visible {
  color: #67c991;
}
html[data-theme="dark"] .topic-meta {
  color: #8f98a1;
}

@media (max-width: 720px) {
  .topic-title {
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
  }
}

/* 2026-07 v18: quote rail, lighter list titles, visible code scroller */
.topic-title {
  color: #24272b;
  font-weight: 500;
  letter-spacing: -0.006em;
}
.topic-title:visited { color: #24272b; }
html[data-theme="dark"] .topic-title,
html[data-theme="dark"] .topic-title:visited {
  color: #e4e7ea;
  font-weight: 500;
}

/* Use a rounded vertical rail instead of a square border edge. */
.markdown-content blockquote {
  position: relative;
  border-left: 0 !important;
  padding-left: 18px !important;
}
.markdown-content blockquote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 999px;
  background: #59636e;
}
html[data-theme="dark"] .markdown-content blockquote::before {
  background: #89939d;
}

/* Restore a compact but clearly draggable horizontal scrollbar. */
.markdown-content pre,
.article-body pre,
.node-main > .article pre {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: rgba(92, 101, 110, .48) rgba(92, 101, 110, .08);
  padding-bottom: 19px !important;
}
.markdown-content pre::-webkit-scrollbar,
.article-body pre::-webkit-scrollbar,
.node-main > .article pre::-webkit-scrollbar {
  height: 7px;
}
.markdown-content pre::-webkit-scrollbar-track,
.article-body pre::-webkit-scrollbar-track,
.node-main > .article pre::-webkit-scrollbar-track {
  background: rgba(92, 101, 110, .07);
}
.markdown-content pre::-webkit-scrollbar-thumb,
.article-body pre::-webkit-scrollbar-thumb,
.node-main > .article pre::-webkit-scrollbar-thumb {
  min-width: 44px;
  background: rgba(92, 101, 110, .42);
  border: 1px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}
.markdown-content pre::-webkit-scrollbar-thumb:hover,
.article-body pre::-webkit-scrollbar-thumb:hover,
.node-main > .article pre::-webkit-scrollbar-thumb:hover {
  background: rgba(72, 81, 90, .62);
  background-clip: padding-box;
}
html[data-theme="dark"] .markdown-content pre,
html[data-theme="dark"] .article-body pre,
html[data-theme="dark"] .node-main > .article pre {
  scrollbar-color: rgba(190, 198, 207, .42) rgba(255, 255, 255, .05);
}
html[data-theme="dark"] .markdown-content pre::-webkit-scrollbar-track,
html[data-theme="dark"] .article-body pre::-webkit-scrollbar-track,
html[data-theme="dark"] .node-main > .article pre::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .045);
}
html[data-theme="dark"] .markdown-content pre::-webkit-scrollbar-thumb,
html[data-theme="dark"] .article-body pre::-webkit-scrollbar-thumb,
html[data-theme="dark"] .node-main > .article pre::-webkit-scrollbar-thumb {
  background: rgba(190, 198, 207, .36);
  background-clip: padding-box;
}

@media (max-width: 720px) {
  .topic-title { font-weight: 500; }
  .markdown-content blockquote { padding-left: 15px !important; }
  .markdown-content blockquote::before { top: 6px; bottom: 6px; }
  .markdown-content pre,
  .article-body pre,
  .node-main > .article pre { padding-bottom: 17px !important; }
}


/* Typography system: PingFang for Chinese, Inter for Latin, JetBrains Mono for code. */
html, body, button, input, textarea, select {
  font-family: var(--font-sans);
}
code, kbd, samp, pre,
.markdown-content code,
.markdown-content pre,
.markdown-content pre code,
.hljs {
  font-family: var(--font-mono) !important;
  font-variant-ligatures: none;
}

/* 2026-07 v20: compact category marker, cleaner metadata/search/footer. */
.category-tabs a.active {
  min-width: 0;
  padding: 2px 7px !important;
  border-radius: 4px !important;
  background: rgba(45, 164, 78, .09) !important;
  color: #258a4b !important;
  box-shadow: none !important;
}
.category-tabs a.active:hover {
  background: rgba(45, 164, 78, .13) !important;
}

.topic-meta-author {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.topic-meta-author svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.topic-meta time {
  font-variant-numeric: tabular-nums;
}

/* Keep the command-search outline but remove its filled panel. */
.node-search,
.node-search:focus-within,
html[data-theme="dark"] .node-search,
html[data-theme="dark"] .node-search:focus-within {
  background: transparent !important;
  box-shadow: none !important;
}
.node-search input,
html[data-theme="dark"] .node-search input {
  background: transparent !important;
}

/* Footer now contains copyright only on every viewport. */
.node-footer.node-footer-minimal {
  margin-top: 40px;
  padding: 11px 20px 12px;
  background: #303030;
  color: #aeb1b4;
}
.node-footer.node-footer-minimal small {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  text-align: center;
  line-height: 1.5;
}
html[data-theme="dark"] .node-footer.node-footer-minimal {
  background: #101214;
}

@media (max-width: 720px) {
  .category-tabs a.active {
    padding: 2px 6px !important;
  }
  .node-footer.node-footer-minimal {
    margin-top: 18px;
    padding: 9px 12px 10px;
  }
}

/* 2026-07 v21: dark-mode list refinements, icon pin and slimmer code scrollbar. */
.node-nav a,
.node-nav a:hover,
.node-nav a.active {
  background: transparent !important;
  box-shadow: none !important;
}
.node-nav a::after,
.node-nav a:hover::after,
.node-nav a.active::after {
  display: none !important;
}

.pin.pin-icon {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  margin: 0 5px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d9853d;
  vertical-align: -2px;
}
.pin.pin-icon svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

html[data-theme="dark"] .topic-category {
  border-color: rgba(255,255,255,.10) !important;
  background: rgba(255,255,255,.045) !important;
  color: #aeb7bf !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .topic-category:hover {
  border-color: rgba(76,190,125,.24) !important;
  background: rgba(47,157,104,.10) !important;
  color: #71c995 !important;
}

.markdown-content pre,
.article-body pre,
.node-main > .article pre {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(92,101,110,.30) transparent !important;
  scrollbar-gutter: auto !important;
  padding-bottom: 12px !important;
}
.markdown-content pre::-webkit-scrollbar,
.article-body pre::-webkit-scrollbar,
.node-main > .article pre::-webkit-scrollbar {
  width: 4px !important;
  height: 4px !important;
}
.markdown-content pre::-webkit-scrollbar-track,
.article-body pre::-webkit-scrollbar-track,
.node-main > .article pre::-webkit-scrollbar-track {
  background: transparent !important;
}
.markdown-content pre::-webkit-scrollbar-thumb,
.article-body pre::-webkit-scrollbar-thumb,
.node-main > .article pre::-webkit-scrollbar-thumb {
  min-width: 28px;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(92,101,110,.30) !important;
}
.markdown-content pre::-webkit-scrollbar-thumb:hover,
.article-body pre::-webkit-scrollbar-thumb:hover,
.node-main > .article pre::-webkit-scrollbar-thumb:hover {
  background: rgba(92,101,110,.46) !important;
}
html[data-theme="dark"] .markdown-content pre,
html[data-theme="dark"] .article-body pre,
html[data-theme="dark"] .node-main > .article pre {
  scrollbar-color: rgba(190,198,207,.24) transparent !important;
}
html[data-theme="dark"] .markdown-content pre::-webkit-scrollbar-thumb,
html[data-theme="dark"] .article-body pre::-webkit-scrollbar-thumb,
html[data-theme="dark"] .node-main > .article pre::-webkit-scrollbar-thumb {
  background: rgba(190,198,207,.24) !important;
}
html[data-theme="dark"] .markdown-content pre::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] .article-body pre::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] .node-main > .article pre::-webkit-scrollbar-thumb:hover {
  background: rgba(190,198,207,.38) !important;
}

@media (max-width:720px) {
  .pin.pin-icon { width:13px; height:13px; margin-right:4px; }
  .pin.pin-icon svg { width:10px; height:10px; }
  .markdown-content pre,
  .article-body pre,
  .node-main > .article pre { padding-bottom: 11px !important; }
}
/* Frontend publishing and floor-style replies */
.node-main>.article>.reply-box{display:none}
.publish-page{max-width:1120px}.publish-form{display:block}.publish-editor-card,.user-posts-page{background:var(--bg-secondary,#fff);border:1px solid var(--border,#e1e5e7);border-radius:14px;box-shadow:var(--shadow);padding:22px}.publish-heading{display:flex;align-items:end;gap:12px;margin-bottom:18px}.publish-heading span,.user-posts-head span{font-size:10px;letter-spacing:.16em;color:var(--accent-color,#2da44e);font-weight:800}.publish-heading h1,.user-posts-head h1{margin:0;font-size:25px}.publish-heading small{margin-left:auto;color:var(--text-secondary,#747d84)}.publish-meta{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 18px;margin-bottom:16px}.publish-field{display:grid;grid-template-columns:74px minmax(0,1fr);align-items:center;gap:10px;color:var(--text-secondary,#747d84);font-weight:700}.publish-field-wide{grid-column:1/-1}.publish-field>span{font-size:15px;color:var(--text-primary,#2f3337)}.publish-field input,.publish-field select{width:100%;height:42px;border:1px solid var(--border,#e1e5e7);border-radius:7px;padding:0 12px;background:var(--bg-primary,#faf9f5);color:var(--text-primary,#2f3337);outline:0;transition:border-color .15s,box-shadow .15s}.publish-field input:focus,.publish-field select:focus{border-color:var(--accent-color,#2da44e);box-shadow:0 0 0 3px rgba(45,164,78,.10)}.publish-title{font-size:18px;font-weight:700}.shared-editor textarea{width:100%;border:1px solid var(--border,#e1e5e7);border-radius:8px;padding:12px;background:var(--bg-primary,#faf9f5);color:var(--text-primary,#2f3337)}.editor-save-note{color:var(--text-secondary,#747d84);font-size:12px;margin-top:8px}.publish-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:16px;padding-top:16px;border-top:1px solid var(--border,#e1e5e7)}.publish-help{font-size:12px;color:var(--text-secondary,#747d84);background:var(--bg-tertiary);padding:10px 12px;border-radius:7px;flex:1}.publish-actions{display:flex;gap:10px;flex:0 0 auto}.publish-actions button{min-width:112px;border:0;cursor:pointer;margin:0}.secondary-button{border:1px solid var(--border)!important;background:transparent;color:var(--text-primary);border-radius:7px;padding:9px 15px}.publish-actions .primary-button{margin:0;padding:10px 18px}.EasyMDEContainer .CodeMirror{min-height:500px}.EasyMDEContainer .CodeMirror-scroll{min-height:500px}
.user-posts-page{max-width:850px;margin:0 auto}.user-posts-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.user-posts-head .primary-button{margin:0}.user-posts-list{border-top:1px solid var(--border)}.user-post-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:15px 0;border-bottom:1px solid var(--border);position:relative}.user-post-title{font-weight:800;font-size:16px}.user-post-title:hover{color:var(--accent-color)}.status-badge{font-size:12px;padding:3px 7px;border-radius:5px;background:var(--bg-tertiary)}.status-published{color:#23863e;background:#eaf7ee}.status-pending{color:#a86e00;background:#fff4cc}.status-rejected{color:#b42318;background:#ffebe9}.reject-reason{grid-column:1/-1;margin:0;color:#b42318;font-size:12px}.user-post-actions{grid-column:1/-1;display:flex;gap:12px;color:var(--text-secondary);font-size:12px}.user-post-actions button{border:0;background:transparent;color:inherit;padding:0;cursor:pointer}.comments-section{margin-top:22px;border-top:1px solid var(--line);padding-top:18px}.comments-heading{display:flex;align-items:center;justify-content:space-between}.comments-heading h2{font-size:18px}.comments-heading small{font-size:12px;color:var(--text-secondary)}.comments-heading span{font-size:12px;color:var(--text-secondary)}.comment-item{display:flex;gap:12px;padding:18px 0;border-bottom:1px solid var(--line);scroll-margin-top:80px}.comment-avatar{width:40px;height:40px;border-radius:8px;background:#83cdd0;color:#fff;display:grid;place-items:center;font-weight:800;flex:0 0 auto;overflow:hidden}.comment-avatar img{width:100%;height:100%;object-fit:cover}.comment-main{min-width:0;flex:1}.comment-main header{display:flex;gap:9px;align-items:center;font-size:12px}.comment-main header strong{font-size:14px}.comment-main header em{font-style:normal;color:var(--accent-color);background:var(--accent-soft);padding:2px 5px;border-radius:4px}.comment-main header time{color:var(--text-secondary);margin-left:auto}.comment-main header b{font-weight:500;color:var(--text-secondary)}.comment-reply-target{font-size:12px;color:var(--accent-color);margin-top:7px}.comment-body{margin:10px 0;line-height:1.75}.comment-main footer{display:flex;gap:14px;color:var(--text-secondary);font-size:12px}.comment-main footer button{border:0;background:transparent;color:inherit;cursor:pointer;padding:0}.comment-main footer button:hover,.comment-main footer a:hover{color:var(--accent-color)}.comment-form{margin-top:18px;border:1px solid var(--border);border-radius:9px;overflow:hidden}.comment-form textarea{display:block;width:100%;border:0;resize:vertical;padding:12px;background:var(--bg-primary);color:var(--text-primary);outline:0}.comment-form>div:last-child{border-top:1px solid var(--border);padding:8px 10px;color:var(--text-secondary);font-size:12px}.comment-form .primary-button{float:right;border:0;padding:6px 14px;margin:0;cursor:pointer}.replying-to{padding:7px 10px;background:var(--accent-soft);color:var(--accent-color);font-size:12px}.publish-settings.is-collapsed>*:not(.publish-settings-head){display:none}@media(max-width:720px){.publish-meta{grid-template-columns:1fr}.publish-field,.publish-field-wide{grid-column:1;grid-template-columns:1fr;gap:6px}.publish-footer{align-items:stretch;flex-direction:column}.publish-actions{justify-content:flex-end}.publish-title{font-size:17px}.comments-heading span{display:none}.comment-main header time{margin-left:0}.comment-main header{flex-wrap:wrap}.comment-main header b{margin-left:auto}}


/* 2026-07 publish layout round 2: compact header, matched typography, dark editor fix. */
.publish-editor-card {
  position: relative;
}
.publish-save-state {
  position: absolute;
  top: 14px;
  right: 22px;
  z-index: 2;
  color: var(--text-secondary, #879099);
  font-size: 12px;
  line-height: 1;
}
.publish-meta {
  padding-top: 2px;
}
.publish-field {
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
}
.publish-field > span {
  color: var(--text-primary, #24272b);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.publish-field input,
.publish-field select {
  height: 44px;
  font-size: 14px;
  font-weight: 500;
}
.publish-title {
  color: var(--text-primary, #24272b);
  font-size: 15px !important;
  font-weight: 650 !important;
  letter-spacing: -0.01em;
}
.publish-field input::placeholder {
  color: var(--text-secondary, #879099);
  opacity: 1;
  font-weight: 500;
}

/* EasyMDE must inherit the theme instead of keeping its default white canvas. */
.EasyMDEContainer {
  overflow: hidden;
  border-radius: 8px;
}
.EasyMDEContainer .editor-toolbar {
  border-color: var(--border, #e1e5e7) !important;
  background: var(--bg-secondary, #fff) !important;
}
.EasyMDEContainer .editor-toolbar button,
.EasyMDEContainer .editor-toolbar i,
.EasyMDEContainer .editor-toolbar a {
  color: var(--text-primary, #24272b) !important;
}
.EasyMDEContainer .CodeMirror,
.EasyMDEContainer .CodeMirror-scroll,
.EasyMDEContainer .CodeMirror-sizer,
.EasyMDEContainer .CodeMirror-lines,
.EasyMDEContainer .CodeMirror-code,
.EasyMDEContainer .CodeMirror-gutters {
  background: var(--bg-primary, #faf9f5) !important;
  color: var(--text-primary, #24272b) !important;
}
.EasyMDEContainer .CodeMirror {
  border-color: var(--border, #e1e5e7) !important;
}
.EasyMDEContainer .CodeMirror-scroll {
  overflow-x: hidden !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(92, 101, 110, .28) transparent;
}
.EasyMDEContainer .CodeMirror-hscrollbar {
  display: none !important;
}
.EasyMDEContainer .CodeMirror-vscrollbar::-webkit-scrollbar {
  width: 5px;
}
.EasyMDEContainer .CodeMirror-vscrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.EasyMDEContainer .CodeMirror-vscrollbar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(92, 101, 110, .28);
}
.EasyMDEContainer .CodeMirror-cursor {
  border-left-color: var(--text-primary, #24272b) !important;
}
.EasyMDEContainer .CodeMirror-selected,
.EasyMDEContainer .CodeMirror-focused .CodeMirror-selected {
  background: rgba(45, 164, 78, .15) !important;
}

html[data-theme="dark"] .publish-field > span,
html[data-theme="dark"] .publish-title {
  color: #d5dade !important;
}
html[data-theme="dark"] .publish-field input,
html[data-theme="dark"] .publish-field select,
html[data-theme="dark"] .EasyMDEContainer .CodeMirror,
html[data-theme="dark"] .EasyMDEContainer .CodeMirror-scroll,
html[data-theme="dark"] .EasyMDEContainer .CodeMirror-sizer,
html[data-theme="dark"] .EasyMDEContainer .CodeMirror-lines,
html[data-theme="dark"] .EasyMDEContainer .CodeMirror-code,
html[data-theme="dark"] .EasyMDEContainer .CodeMirror-gutters {
  background: #171b1e !important;
  color: #d5dade !important;
}
html[data-theme="dark"] .EasyMDEContainer .editor-toolbar {
  background: #202428 !important;
  border-color: #394047 !important;
}
html[data-theme="dark"] .EasyMDEContainer .editor-toolbar button,
html[data-theme="dark"] .EasyMDEContainer .editor-toolbar i,
html[data-theme="dark"] .EasyMDEContainer .editor-toolbar a {
  color: #eef1f3 !important;
}
html[data-theme="dark"] .EasyMDEContainer .editor-toolbar button:hover,
html[data-theme="dark"] .EasyMDEContainer .editor-toolbar button.active {
  background: #2a3035 !important;
  border-color: #46505a !important;
}
html[data-theme="dark"] .EasyMDEContainer .CodeMirror {
  border-color: #394047 !important;
}
html[data-theme="dark"] .EasyMDEContainer .CodeMirror-cursor {
  border-left-color: #eef1f3 !important;
}
html[data-theme="dark"] .EasyMDEContainer .CodeMirror-selected,
html[data-theme="dark"] .EasyMDEContainer .CodeMirror-focused .CodeMirror-selected {
  background: rgba(76, 190, 125, .22) !important;
}
html[data-theme="dark"] .EasyMDEContainer .CodeMirror-vscrollbar::-webkit-scrollbar-thumb {
  background: rgba(190, 198, 207, .25);
}

@media (max-width: 720px) {
  .publish-save-state {
    top: 12px;
    right: 16px;
  }
  .publish-field {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .publish-field > span,
  .publish-title,
  .publish-field input,
  .publish-field select {
    font-size: 14px !important;
  }
}
/* 2026-07 v22: full-width, compact member-center dashboard */
.node-shell:has(.member-center) {
  width: min(1120px, calc(100% - 28px));
  max-width: 1120px;
}
.member-center {
  width: 100%;
  max-width: none;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0 0 32px;
}
.member-sidebar {
  top: 70px;
  border-radius: 12px;
}
.member-menu {
  gap: 2px;
  padding: 8px;
}
.member-menu a,
.member-menu .member-menu-logout {
  min-height: 36px;
  padding-inline: 12px;
}
.member-main {
  gap: 12px;
}
.member-dashboard-hero {
  min-height: 122px;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 20%, var(--member-accent-soft), transparent 36%),
    var(--member-surface);
}
.member-hero-profile {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 15px;
}
.member-dashboard-hero .member-avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border: 3px solid var(--member-surface);
  box-shadow: 0 0 0 1px var(--member-border);
}
.member-hero-copy {
  min-width: 0;
}
.member-hero-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 2px 0 5px;
}
.member-dashboard-hero h1 {
  margin: 0;
  font-size: clamp(23px, 3vw, 32px);
}
.member-hero-title b {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--member-accent-soft);
  color: var(--member-accent);
  font-size: 12px;
}
.member-dashboard-hero p {
  line-height: 1.55;
}
.member-dashboard-status {
  min-width: 190px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5px 10px;
  padding: 11px 12px;
}
.member-dashboard-status small {
  grid-column: 1 / -1;
}
.member-dashboard-status form {
  margin: 0;
}
.member-dashboard-status button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: var(--member-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.member-dashboard-status button:disabled {
  opacity: .58;
  cursor: not-allowed;
}
.member-dashboard-status em {
  color: var(--member-muted);
  font-size: 11px;
  font-style: normal;
  text-align: right;
}
.member-stat-grid {
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
}
.member-stat-grid > div {
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 13px 15px;
}
.member-stat-grid strong {
  font-size: 21px;
}
.member-stat-grid span {
  margin-top: 5px;
}
.member-panel {
  padding: 15px 16px;
}
.member-section-head {
  margin-bottom: 11px;
}
.vip-plan-grid,
.member-dual-grid,
.member-settings-grid {
  gap: 10px;
}
.vip-plan-card,
.member-settings-card {
  padding: 14px;
}

@media (max-width: 900px) {
  .node-shell:has(.member-center) {
    width: min(100%, calc(100% - 24px));
  }
  .member-center {
    grid-template-columns: 1fr;
  }
  .member-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .member-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .node-shell:has(.member-center) {
    width: min(100%, calc(100% - 20px));
  }
  .member-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .member-dashboard-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }
  .member-dashboard-status {
    width: 100%;
    min-width: 0;
  }
  .member-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .member-stat-grid > div {
    min-height: 78px;
    padding: 12px;
  }
  .member-stat-grid strong {
    font-size: 19px;
  }
}
/* 2026-07 v23: compact user posts and full-width member activity panels */
.node-shell:has(.user-posts-page) {
  width: min(1120px, calc(100% - 28px));
  max-width: 1120px;
}
.user-posts-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px 20px 18px;
}
.user-posts-head {
  min-height: 62px;
  align-items: center;
  margin-bottom: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border, #e1e5e7);
}
.user-posts-head h1 {
  margin-top: 2px;
  font-size: 22px;
  line-height: 1.2;
}
.user-posts-list {
  border-top: 0;
}
.user-post-row {
  grid-template-columns: minmax(0, 1fr) 72px;
  align-items: center;
  gap: 12px 18px;
  min-height: 102px;
  padding: 16px 4px;
}
.user-post-content {
  min-width: 0;
}
.user-post-title {
  display: block;
  overflow: hidden;
  color: var(--text-primary, #2f3337);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-post-row .topic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 5px;
  font-size: 12px;
}
.user-post-actions {
  grid-column: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  font-size: 12px;
}
.user-post-actions form {
  display: inline-flex;
  margin: 0;
}
.status-badge {
  align-self: center;
  justify-self: end;
  min-width: 58px;
  padding: 6px 9px;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}
.reject-reason {
  grid-column: 1 / -1;
}

.member-dual-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
}
.member-dual-grid > .member-panel {
  min-width: 0;
  height: 100%;
}
.member-dual-grid .member-table-wrap {
  width: 100%;
  overflow-x: hidden;
}
.member-dual-grid .member-table-wrap table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.member-dual-grid .member-table-wrap th,
.member-dual-grid .member-table-wrap td {
  overflow: hidden;
  padding: 10px 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-dual-grid .member-table-wrap th:last-child,
.member-dual-grid .member-table-wrap td:last-child {
  width: 31%;
}

@media (max-width: 900px) {
  .node-shell:has(.user-posts-page) {
    width: min(100%, calc(100% - 24px));
  }
  .member-dual-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .node-shell:has(.user-posts-page) {
    width: min(100%, calc(100% - 20px));
  }
  .user-posts-page {
    padding: 14px;
  }
  .user-posts-row,
  .user-post-row {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 92px;
    gap: 10px;
  }
  .user-post-title {
    white-space: normal;
  }
  .status-badge {
    align-self: start;
  }
}

/* 2026-07 UI polish: header search, editor focus, posts status and VIP cards */
.node-search {
  overflow: hidden;
}
.node-search input {
  min-width: 0;
  padding-right: 4px;
}
.node-search button {
  flex: 0 0 34px;
  width: 34px;
  height: 100%;
  padding: 0;
  display: grid;
  place-items: center;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}

/* Search result label: square on desktop and compact on mobile. */
.search-results-card .feed-tabs {
  min-height: 52px;
  height: auto;
}
.search-results-card .feed-tabs a.active {
  border-radius: 6px;
  padding: 7px 12px;
}

/* Publish editor: never use green focus fill/ring. */
.publish-field input:focus,
.publish-field select:focus,
.publish-field textarea:focus,
.publish-editor-card input:focus,
.publish-editor-card select:focus,
.publish-editor-card textarea:focus,
.publish-editor-card [contenteditable="true"]:focus {
  background: inherit !important;
  border-color: var(--border, #dfe3e5) !important;
  box-shadow: none !important;
  outline: none !important;
}
html[data-theme="dark"] .publish-field input:focus,
html[data-theme="dark"] .publish-field select:focus,
html[data-theme="dark"] .publish-field textarea:focus,
html[data-theme="dark"] .publish-editor-card input:focus,
html[data-theme="dark"] .publish-editor-card select:focus,
html[data-theme="dark"] .publish-editor-card textarea:focus,
html[data-theme="dark"] .publish-editor-card [contenteditable="true"]:focus {
  background: var(--bg-primary, #171b1f) !important;
  border-color: var(--border, #394047) !important;
}

/* My posts: remove the visually heavy empty status column. */
.user-post-row {
  position: relative;
  display: block;
  min-height: 0;
  padding: 16px 82px 16px 4px;
}
.user-post-actions {
  margin-top: 8px;
}
.user-post-row > .status-badge {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  min-width: 58px;
  padding: 6px 9px;
  border: 1px solid transparent;
  box-shadow: none;
}
html[data-theme="dark"] .status-published {
  color: #72d59a;
  background: rgba(45,164,78,.12);
  border-color: rgba(114,213,154,.18);
}
html[data-theme="dark"] .status-pending {
  color: #e7bd60;
  background: rgba(231,189,96,.10);
  border-color: rgba(231,189,96,.18);
}
html[data-theme="dark"] .status-rejected {
  color: #ff9187;
  background: rgba(255,145,135,.10);
  border-color: rgba(255,145,135,.18);
}
html[data-theme="dark"] .status-draft {
  color: #b6bdc4;
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.08);
}

/* VIP plans: restore the original top-left alignment. */
.vip-plan-card {
  align-content: start;
  justify-items: stretch;
  text-align: left;
}
.vip-plan-card h3,
.vip-plan-card strong,
.vip-plan-card em,
.vip-plan-card p,
.vip-plan-card form {
  width: 100%;
  text-align: left;
}
.vip-plan-card form {
  display: flex;
  justify-content: flex-start;
}
.vip-plan-card button {
  margin-inline: 0;
}

@media (max-width: 720px) {
  .node-search {
    width: 112px;
  }
  .node-search input {
    display: block !important;
    min-width: 0;
    padding: 0 7px;
    font-size: 12px;
  }
  .node-search button {
    flex-basis: 32px;
    width: 32px;
  }
  .search-results-card .feed-tabs {
    padding: 9px 12px !important;
  }
  .search-results-card .feed-tabs a.active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 5px;
  }
  .user-post-row {
    padding-right: 72px;
  }
}

@media (max-width: 420px) {
  .node-search {
    width: 96px;
    border: 1px solid var(--line) !important;
  }
  .node-search input {
    width: calc(100% - 30px);
  }
  .node-search button {
    flex-basis: 30px;
    width: 30px;
  }
}


/* 2026-07 mobile search correction */
.node-search button .node-search-icon {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

@media (max-width: 720px) {
  /* Keep the magnifier clearly visible in the compact mobile header. */
  .node-search {
    width: 42px;
    min-width: 42px;
    height: 38px;
    border: 1px solid var(--line) !important;
    border-radius: 7px;
    background: var(--card-bg, var(--bg-primary, #fff));
  }
  .node-search input {
    display: none !important;
  }
  .node-search button {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
  }
  .node-search button .node-search-icon {
    width: 18px;
    height: 18px;
  }

  /* Search-result title reduced to roughly half of its previous footprint. */
  .search-results-card .feed-tabs {
    min-height: 34px;
    padding: 5px 8px !important;
  }
  .search-results-card .feed-tabs a.active {
    min-height: 26px;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1;
  }
}

@media (max-width: 420px) {
  .node-search {
    width: 40px;
    min-width: 40px;
  }
  .node-search input {
    display: none !important;
    width: 0;
  }
  .node-search button {
    flex-basis: 100%;
    width: 100%;
  }
}

/* 2026-07 mobile search input restoration: keep input + magnifier visible. */
@media (max-width: 720px) {
  .node-search {
    display: flex !important;
    width: clamp(104px, 25vw, 142px) !important;
    min-width: 104px !important;
    height: 36px !important;
    overflow: hidden;
    border: 1px solid var(--line) !important;
    border-radius: 7px !important;
    background: var(--card-bg, var(--bg-primary, #fff)) !important;
  }
  .node-search input {
    display: block !important;
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0 !important;
    height: 100%;
    padding: 0 5px 0 9px !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 12px !important;
    line-height: 36px;
  }
  .node-search button {
    display: grid !important;
    flex: 0 0 32px !important;
    width: 32px !important;
    height: 100% !important;
    padding: 0 !important;
    place-items: center;
  }
}

@media (max-width: 420px) {
  .node-header-inner {
    gap: 8px;
  }
  .node-search {
    width: 104px !important;
    min-width: 104px !important;
  }
  .node-search input {
    font-size: 11px !important;
    padding-left: 7px !important;
  }
  .node-search button {
    flex-basis: 30px !important;
    width: 30px !important;
  }
}

/* =========================================================
   2026-07 VIP pricing table redesign
   ========================================================= */
.member-panel#vip {
  overflow: visible;
}

.member-panel#vip .member-section-head {
  align-items: flex-end;
  margin-bottom: 24px;
}

.vip-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
  padding-top: 8px;
}

.vip-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--member-border);
  border-radius: 16px;
  background: var(--member-surface);
  box-shadow: 0 2px 4px rgba(15, 23, 42, .03), 0 10px 26px rgba(15, 23, 42, .05);
  text-align: left;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.vip-plan-card:hover {
  z-index: 3;
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--member-accent) 42%, var(--member-border));
  box-shadow: 0 12px 28px rgba(15, 23, 42, .10), 0 24px 52px rgba(15, 23, 42, .08);
}

.vip-plan-card--featured {
  z-index: 2;
  transform: translateY(-8px);
  border: 2px solid var(--member-accent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--member-accent) 12%, transparent) 0, transparent 180px),
    var(--member-surface);
  box-shadow: 0 14px 32px color-mix(in srgb, var(--member-accent) 19%, transparent), 0 24px 54px rgba(15, 23, 42, .10);
}

.vip-plan-card--featured:hover {
  transform: translateY(-13px);
  box-shadow: 0 18px 38px color-mix(in srgb, var(--member-accent) 24%, transparent), 0 30px 64px rgba(15, 23, 42, .13);
}

.vip-plan-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--member-accent);
  color: var(--bg-primary);
  box-shadow: 0 7px 16px color-mix(in srgb, var(--member-accent) 25%, transparent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}

.vip-plan-card__header {
  min-height: 54px;
  padding-right: 76px;
  margin-bottom: 18px;
}

.vip-plan-card:not(.vip-plan-card--featured) .vip-plan-card__header {
  padding-right: 0;
}

.vip-plan-card h3 {
  width: auto;
  margin: 0;
  color: var(--member-text);
  font-size: 20px;
  font-weight: 750;
  line-height: 1.35;
  text-align: left;
}

.vip-plan-subtitle {
  width: auto !important;
  margin: 4px 0 0 !important;
  color: var(--member-muted) !important;
  font-size: 12px;
  line-height: 1.5 !important;
  text-align: left !important;
}

.vip-plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--member-accent);
}

.vip-plan-card .vip-plan-price strong {
  width: auto;
  color: var(--member-accent);
  font-size: clamp(42px, 4vw, 54px);
  font-weight: 850;
  line-height: .98;
  letter-spacing: -.045em;
  text-align: left;
}

.vip-plan-price span {
  color: var(--member-muted);
  font-size: 13px;
  font-weight: 700;
}

.vip-plan-duration {
  width: auto !important;
  margin: 0 0 20px !important;
  color: var(--member-muted) !important;
  font-size: 13px;
  line-height: 1.6 !important;
  text-align: left !important;
}

.vip-plan-features {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding: 18px 0 0;
  border-top: 1px solid var(--member-border);
  list-style: none;
}

.vip-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--member-muted);
  font-size: 13px;
  line-height: 1.6;
}

.vip-plan-features svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: 1px;
  padding: 3px;
  border-radius: 50%;
  background: var(--member-accent-soft);
  fill: none;
  stroke: var(--member-accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  box-sizing: border-box;
}

.vip-plan-card form {
  width: 100%;
  display: flex;
  margin-top: auto;
}

.vip-plan-card button {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 14px;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.vip-plan-card button:hover {
  transform: translateY(-2px);
}

.vip-plan-card button:active {
  transform: translateY(0);
}

.vip-plan-card button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--member-accent) 23%, transparent);
  outline-offset: 3px;
}

.vip-plan-card .vip-plan-button--secondary {
  border: 1px solid color-mix(in srgb, var(--member-accent) 34%, var(--member-border));
  background: var(--member-accent-soft);
  color: var(--member-accent);
}

.vip-plan-card .vip-plan-button--secondary:hover {
  border-color: var(--member-accent);
  background: var(--member-accent);
  color: var(--bg-primary);
  box-shadow: 0 9px 20px color-mix(in srgb, var(--member-accent) 22%, transparent);
}

.vip-plan-card .vip-plan-button--primary {
  border: 1px solid var(--member-accent);
  background: var(--member-accent);
  color: var(--bg-primary);
  box-shadow: 0 9px 20px color-mix(in srgb, var(--member-accent) 25%, transparent);
}

.vip-plan-card .vip-plan-button--primary:hover {
  filter: brightness(.94);
  box-shadow: 0 13px 28px color-mix(in srgb, var(--member-accent) 31%, transparent);
}

html[data-theme="dark"] .vip-plan-card {
  box-shadow: 0 4px 12px rgba(0, 0, 0, .17), 0 16px 34px rgba(0, 0, 0, .14);
}

html[data-theme="dark"] .vip-plan-card--featured {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--member-accent) 14%, transparent) 0, transparent 190px),
    var(--member-surface);
  box-shadow: 0 16px 38px color-mix(in srgb, var(--member-accent) 14%, transparent), 0 28px 60px rgba(0, 0, 0, .24);
}

@media (max-width: 980px) {
  .vip-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vip-plan-card--featured,
  .vip-plan-card--featured:hover {
    transform: translateY(0);
  }
}

@media (max-width: 680px) {
  .member-panel#vip .member-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 16px;
  }
  .vip-plan-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 0;
  }
  .vip-plan-card {
    padding: 20px;
  }
  .vip-plan-card--featured {
    order: -1;
  }
  .vip-plan-card .vip-plan-price strong {
    font-size: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vip-plan-card,
  .vip-plan-card button {
    transition: none;
  }
  .vip-plan-card:hover,
  .vip-plan-card--featured,
  .vip-plan-card--featured:hover,
  .vip-plan-card button:hover {
    transform: none;
  }
}

/* 2026-07 comment and sidebar refinements */
.comments-section .comment-form{margin:16px 0 4px}
.comments-section .comments-list{margin-top:6px}
.comments-heading h2{display:flex;align-items:baseline;gap:5px}
.comment-form textarea{min-height:104px}
.comment-form .primary-button{min-height:32px;padding:5px 12px;border-radius:7px;font-size:12px;line-height:1}
.comment-admin-icon{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;color:var(--accent-color);background:var(--accent-soft);flex:0 0 auto}
.comment-admin-icon svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.comment-main header time{font-size:12px}
.side-tag-cloud{gap:7px 14px}
.side-tag-cloud a,.side-tag-cloud a:hover{margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;transform:none!important;font-size:12px;line-height:1.55}
html[data-theme="dark"] .side-tag-cloud a{background:transparent!important;border:0!important}

@media(max-width:720px){
  .comment-form textarea{min-height:96px}
  .comment-form .primary-button{padding:5px 10px;font-size:11px}
}

/* 2026-07 mobile header refinement: compact search, member entry and clean menu surface */
@media (max-width:720px){
  .node-header-inner{
    gap:7px!important;
  }

  .node-search{
    width:112px!important;
    min-width:112px!important;
    height:30px!important;
    margin-left:auto!important;
    border-radius:5px!important;
  }
  .node-search input{
    min-width:0!important;
    padding:0 4px 0 8px!important;
    font-size:11px!important;
    line-height:30px!important;
  }
  .node-search button{
    flex:0 0 28px!important;
    width:28px!important;
    height:30px!important;
  }
  .node-search button .node-search-icon{
    width:16px!important;
    height:16px!important;
  }

  .header-avatar,
  .header-member-entry{
    display:grid!important;
    order:2!important;
    width:27px!important;
    height:27px!important;
    flex:0 0 27px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:var(--green)!important;
  }
  .header-avatar svg,
  .header-member-entry svg{
    width:20px!important;
    height:20px!important;
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:1.8!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
  }

  .theme-button{order:3!important}
  .mobile-menu{order:4!important}

  /* Prevent the closed category menu from leaving a differently colored strip. */
  .node-nav:not(.is-open){
    display:none!important;
    width:0!important;
    height:0!important;
    min-height:0!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:hidden!important;
  }
  .node-nav.is-open{
    background:var(--card,#fff)!important;
  }
  .node-nav.is-open a{
    background:transparent!important;
  }
  .node-nav.is-open a:hover,
  .node-nav.is-open a.active{
    background:rgba(45,164,78,.08)!important;
  }
  html[data-theme="dark"] .node-nav.is-open{
    background:#1d2023!important;
  }
}

@media (max-width:390px){
  .node-header-inner{gap:5px!important}
  .node-search{
    width:96px!important;
    min-width:96px!important;
  }
  .node-search input{
    padding-left:6px!important;
    font-size:10.5px!important;
  }
}

/* 2026-07 article header, tag counts and compact comment CTA */
.detail-title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.node-main>.article .detail-hero .detail-title{
  min-width:0;
  margin:0;
}
.detail-title-category{
  flex:0 0 auto;
  min-width:72px;
  padding:7px 14px;
  border:1px solid var(--line);
  border-radius:5px;
  color:var(--text-secondary,#747d84)!important;
  background:transparent;
  font-size:13px;
  font-weight:600;
  line-height:1;
  text-align:center;
}
.detail-title-category:hover{
  border-color:var(--accent-color,#2da44e);
  color:var(--accent-color,#2da44e)!important;
}
.topic-meta-edit{
  color:var(--accent-color,#2da44e)!important;
  font-weight:600;
}
.topic-meta-edit:hover{opacity:.78}

/* The edit action now lives in the metadata row; remove the obsolete action divider. */
.node-main>.article.detail-card .detail-actions{display:none!important}

.side-tag-cloud a{
  position:relative;
  display:inline-flex;
  align-items:flex-start;
  gap:2px;
}
.side-tag-cloud a sup{
  position:relative;
  top:-.28em;
  margin-left:1px;
  color:#a3abb0;
  font-size:9px;
  font-weight:600;
  line-height:1;
}
.side-tag-cloud a:hover sup{color:var(--accent-color,#2da44e)}

.comment-form>div:last-child{
  min-height:36px;
  padding:5px 9px;
}
.comment-form .primary-button{
  min-height:26px!important;
  padding:4px 11px!important;
  border-radius:6px!important;
  font-size:11px!important;
}

@media(max-width:720px){
  .detail-title-row{align-items:flex-start;gap:10px}
  .detail-title-category{min-width:58px;padding:6px 9px;font-size:11px}
  .comment-form>div:last-child{min-height:34px;padding:4px 8px}
  .comment-form .primary-button{min-height:24px!important;padding:3px 9px!important;font-size:10px!important}
}

/* 2026-07-29: premium article music player */
.node-audio-board{
  margin:18px 0 26px;
  display:grid;
  gap:14px;
}
.node-audio-player-card{
  display:grid;
  grid-template-columns:132px minmax(0,1fr);
  gap:18px;
  padding:18px;
  border:1px solid rgba(45,164,78,.14);
  border-radius:18px;
  background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(244,248,245,.96));
  box-shadow:0 14px 34px rgba(34,45,39,.10),0 1px 0 rgba(255,255,255,.65) inset;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.node-audio-cover{
  position:relative;
  min-height:132px;
  border-radius:16px;
  overflow:hidden;
  background:linear-gradient(135deg,#2da44e,#65c989);
  box-shadow:0 14px 28px rgba(45,164,78,.20);
}
.node-audio-cover img{
  width:100%;height:100%;display:block;object-fit:cover;
}
.node-audio-cover::after{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(255,255,255,.14),transparent 40%,rgba(0,0,0,.10));
  pointer-events:none;
}
.node-audio-cover-badge{
  position:absolute;left:10px;right:10px;bottom:10px;
  display:inline-flex;align-items:center;justify-content:center;
  min-height:28px;padding:0 10px;border-radius:999px;
  background:rgba(14,18,16,.56);color:#fff;font-size:12px;font-weight:700;letter-spacing:.08em;
  backdrop-filter:blur(8px);
}
.node-audio-main{min-width:0;display:grid;gap:14px;align-content:start}
.node-audio-kicker-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.node-audio-kicker{
  display:inline-flex;align-items:center;gap:6px;
  color:var(--accent-color);font-size:11px;font-weight:800;letter-spacing:.16em;
}
.node-audio-kicker::before{
  content:"";width:8px;height:8px;border-radius:50%;background:currentColor;box-shadow:0 0 0 5px rgba(45,164,78,.12);
}
.node-audio-count{color:var(--text-secondary);font-size:12px}
.node-audio-meta{min-width:0;display:grid;gap:5px}
.node-audio-meta h3{
  margin:0;color:var(--text-primary);font-size:24px;font-weight:800;line-height:1.22;letter-spacing:-.01em;
}
.node-audio-artist{
  margin:0;color:var(--text-secondary);font-size:14px;font-weight:600;
}
.node-audio-lyric{
  min-height:40px;display:flex;align-items:center;padding:11px 14px;
  border:1px solid rgba(45,164,78,.10);border-radius:12px;
  background:linear-gradient(135deg,rgba(45,164,78,.08),rgba(45,164,78,.03));
  color:#4e6a56;font-size:13px;line-height:1.6;
}
.node-audio-progress{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px}
.node-audio-time{
  min-width:42px;color:var(--text-secondary);font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap;
}
.node-audio-progress input{
  --progress:0%;
  width:100%;height:6px;border-radius:999px;outline:0;border:0;
  -webkit-appearance:none;appearance:none;cursor:pointer;
  background:linear-gradient(to right,var(--accent-color) 0%,var(--accent-color) var(--progress),rgba(45,164,78,.14) var(--progress),rgba(45,164,78,.14) 100%);
}
.node-audio-progress input::-webkit-slider-runnable-track{height:6px;border-radius:999px;background:transparent}
.node-audio-progress input::-webkit-slider-thumb{
  width:16px;height:16px;margin-top:-5px;border:2px solid #fff;border-radius:50%;
  -webkit-appearance:none;appearance:none;background:var(--accent-color);box-shadow:0 0 0 1px rgba(45,164,78,.22),0 5px 14px rgba(45,164,78,.28);
  transition:transform .18s ease,box-shadow .18s ease;
}
.node-audio-progress input:hover::-webkit-slider-thumb{transform:scale(1.08);box-shadow:0 0 0 6px rgba(45,164,78,.12),0 6px 14px rgba(45,164,78,.26)}
.node-audio-progress input:active::-webkit-slider-thumb{transform:scale(1.16)}
.node-audio-progress input::-moz-range-track{height:6px;border-radius:999px;background:rgba(45,164,78,.14)}
.node-audio-progress input::-moz-range-progress{height:6px;border-radius:999px;background:var(--accent-color)}
.node-audio-progress input::-moz-range-thumb{
  width:16px;height:16px;border:2px solid #fff;border-radius:50%;background:var(--accent-color);box-shadow:0 0 0 1px rgba(45,164,78,.22),0 5px 14px rgba(45,164,78,.28);
}
.node-audio-progress input:disabled{opacity:.5;cursor:not-allowed}
.node-audio-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.node-audio-btn{
  width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;
  border:1px solid rgba(45,164,78,.14);border-radius:12px;background:#fff;color:#607069;
  box-shadow:0 6px 18px rgba(37,49,42,.08);cursor:pointer;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease,background .2s ease,color .2s ease;
}
.node-audio-btn svg{width:18px;height:18px;display:block}
.node-audio-btn:hover{
  transform:translateY(-2px);border-color:rgba(45,164,78,.32);box-shadow:0 10px 22px rgba(37,49,42,.12);color:var(--accent-color)
}
.node-audio-btn:active{transform:translateY(0) scale(.97)}
.node-audio-btn.is-active{background:var(--accent-soft);border-color:rgba(45,164,78,.28);color:var(--accent-color)}
.node-audio-btn--primary{
  width:50px;height:50px;border-radius:16px;border-color:transparent;background:linear-gradient(135deg,#2da44e,#48bb67);color:#fff;box-shadow:0 14px 28px rgba(45,164,78,.28)
}
.node-audio-btn--primary svg{width:20px;height:20px}
.node-audio-btn--primary:hover{color:#fff;box-shadow:0 18px 34px rgba(45,164,78,.36)}
.node-audio-playlist-shell{
  border:1px solid rgba(45,164,78,.10);border-radius:18px;background:rgba(255,255,255,.9);box-shadow:0 10px 26px rgba(34,45,39,.06);overflow:hidden;
  transition:max-height .28s ease,opacity .2s ease;
}
.node-audio-playlist-shell.is-collapsed .node-audio-playlist{display:none}
.node-audio-playlist-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  padding:14px 16px;border-bottom:1px solid rgba(45,164,78,.08)
}
.node-audio-playlist-head strong{font-size:14px;color:var(--text-primary)}
.node-audio-playlist-head span{font-size:12px;color:var(--text-secondary)}
.node-audio-playlist{
  max-height:560px;overflow:auto;padding:10px;
}
.node-audio-playlist::-webkit-scrollbar{width:9px}
.node-audio-playlist::-webkit-scrollbar-track{background:transparent}
.node-audio-playlist::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:999px;background:rgba(108,124,115,.22);background-clip:padding-box}
.node-audio-playlist::-webkit-scrollbar-thumb:hover{background:rgba(108,124,115,.34);background-clip:padding-box}
.node-audio-row{
  position:relative;width:100%;display:grid;grid-template-columns:42px minmax(0,1fr) 54px;align-items:center;gap:14px;
  padding:14px 14px;border:0;border-radius:14px;background:transparent;color:var(--text-secondary);text-align:left;cursor:pointer;
  transition:transform .2s ease,background .2s ease,box-shadow .2s ease,color .2s ease;
}
.node-audio-row + .node-audio-row{margin-top:4px}
.node-audio-row::before{
  content:"";position:absolute;left:0;top:10px;bottom:10px;width:4px;border-radius:999px;background:transparent;transition:background .2s ease;
}
.node-audio-row:hover{
  transform:translateX(3px);background:rgba(45,164,78,.06);box-shadow:0 8px 18px rgba(34,45,39,.06)
}
.node-audio-row.is-active{
  background:linear-gradient(135deg,rgba(45,164,78,.12),rgba(45,164,78,.05));color:var(--text-primary);box-shadow:0 10px 20px rgba(45,164,78,.10)
}
.node-audio-row.is-active::before{background:var(--accent-color)}
.node-audio-index{
  width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;
  background:rgba(45,164,78,.08);color:#5d6b64;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums
}
.node-audio-row.is-active .node-audio-index{background:var(--accent-color);color:#fff}
.node-audio-track-meta{min-width:0;display:grid;gap:4px}
.node-audio-track-meta strong{
  overflow:hidden;color:var(--text-primary);font-size:14px;font-weight:700;white-space:nowrap;text-overflow:ellipsis
}
.node-audio-track-meta em,
.node-audio-row-duration{
  overflow:hidden;color:var(--text-secondary);font-size:12px;font-style:normal;white-space:nowrap;text-overflow:ellipsis
}
.node-audio-row-duration{text-align:right;font-variant-numeric:tabular-nums;color:#95a19a}
html[data-theme="dark"] .node-audio-player-card{
  border-color:rgba(67,182,99,.18);
  background:linear-gradient(135deg,rgba(33,38,42,.92),rgba(26,31,35,.98));
  box-shadow:0 18px 36px rgba(0,0,0,.28),0 1px 0 rgba(255,255,255,.02) inset;
}
html[data-theme="dark"] .node-audio-cover{box-shadow:0 18px 34px rgba(0,0,0,.30)}
html[data-theme="dark"] .node-audio-lyric{
  border-color:rgba(67,182,99,.15);background:linear-gradient(135deg,rgba(67,182,99,.14),rgba(67,182,99,.05));color:#bed9c6
}
html[data-theme="dark"] .node-audio-btn{
  background:#1f2529;border-color:rgba(67,182,99,.14);color:#b8c1c8;box-shadow:0 10px 20px rgba(0,0,0,.22)
}
html[data-theme="dark"] .node-audio-btn:hover{color:#7cdb9c;border-color:rgba(67,182,99,.34)}
html[data-theme="dark"] .node-audio-btn.is-active{background:rgba(67,182,99,.12)}
html[data-theme="dark"] .node-audio-playlist-shell{
  background:rgba(28,33,37,.92);border-color:rgba(67,182,99,.12);box-shadow:0 12px 28px rgba(0,0,0,.20)
}
html[data-theme="dark"] .node-audio-playlist-head{border-bottom-color:rgba(67,182,99,.10)}
html[data-theme="dark"] .node-audio-row:hover{background:rgba(67,182,99,.08);box-shadow:0 10px 20px rgba(0,0,0,.16)}
html[data-theme="dark"] .node-audio-row.is-active{background:linear-gradient(135deg,rgba(67,182,99,.16),rgba(67,182,99,.08));box-shadow:0 12px 22px rgba(0,0,0,.20)}
html[data-theme="dark"] .node-audio-index{background:rgba(67,182,99,.12);color:#bfd0c3}
@media(max-width:900px){
  .node-audio-player-card{grid-template-columns:112px minmax(0,1fr);gap:16px;padding:16px}
  .node-audio-meta h3{font-size:20px}
}
@media(max-width:720px){
  .node-audio-board{margin:16px 0 22px}
  .node-audio-player-card{grid-template-columns:1fr;padding:14px}
  .node-audio-cover{max-width:112px;min-height:112px}
  .node-audio-main{gap:12px}
  .node-audio-progress{grid-template-columns:38px minmax(0,1fr) 38px;gap:8px}
  .node-audio-controls{gap:8px}
  .node-audio-btn{width:38px;height:38px;border-radius:11px}
  .node-audio-btn--primary{width:46px;height:46px;border-radius:14px}
  .node-audio-playlist{max-height:420px;padding:8px}
  .node-audio-row{grid-template-columns:34px minmax(0,1fr) 48px;gap:10px;padding:12px}
}
@media(max-width:480px){
  .node-audio-meta h3{font-size:18px}
  .node-audio-artist{font-size:13px}
  .node-audio-lyric{min-height:0;padding:10px 12px;font-size:12px}
  .node-audio-controls{justify-content:flex-start}
  .node-audio-row{grid-template-columns:30px minmax(0,1fr) 44px}
  .node-audio-track-meta strong{font-size:13px}
}

/* 2026-07-29: front-end editor media/resource manager */
.publish-resource-tools{
  margin:0 0 14px;
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:12px;
  background:linear-gradient(135deg,rgba(45,164,78,.055),rgba(255,255,255,.55));
}
.publish-resource-tools__head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.publish-resource-tools__head>div:first-child{display:grid;gap:3px}
.publish-resource-tools__head strong{font-size:14px;color:var(--text-primary)}
.publish-resource-tools__head>div:first-child span{font-size:12px;color:var(--text-secondary)}
.publish-resource-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.publish-resource-actions button{
  min-height:36px;display:inline-flex;align-items:center;gap:7px;padding:0 11px;
  border:1px solid rgba(45,164,78,.16);border-radius:9px;background:var(--bg-secondary);color:var(--text-primary);
  font-size:12px;font-weight:700;cursor:pointer;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,color .18s ease
}
.publish-resource-actions button:hover{transform:translateY(-1px);border-color:rgba(45,164,78,.38);color:var(--accent-color);box-shadow:0 7px 16px rgba(36,48,41,.08)}
.publish-resource-actions button>span{color:var(--accent-color);font-size:14px}
.publish-resource-actions b{min-width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:var(--accent-soft);color:var(--accent-color);font-size:10px}
.publish-resource-actions b[hidden]{display:none}
.resource-modal[hidden]{display:none!important}
.resource-modal{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:20px}
.resource-modal__backdrop{position:absolute;inset:0;background:rgba(14,18,16,.48);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.resource-modal__dialog{
  position:relative;width:min(920px,100%);max-height:min(760px,calc(100vh - 40px));display:grid;grid-template-rows:auto minmax(0,1fr) auto;
  overflow:hidden;border:1px solid rgba(45,164,78,.16);border-radius:18px;background:var(--bg-secondary);box-shadow:0 30px 80px rgba(0,0,0,.26)
}
.resource-modal__header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 20px;border-bottom:1px solid var(--border)}
.resource-modal__header>div{display:grid;gap:2px}
.resource-modal__header span{font-size:10px;font-weight:800;letter-spacing:.16em;color:var(--accent-color)}
.resource-modal__header h2{margin:0;font-size:20px;color:var(--text-primary)}
.resource-modal__close{width:36px;height:36px;border:1px solid var(--border);border-radius:10px;background:var(--bg-primary);color:var(--text-secondary);font-size:24px;line-height:1;cursor:pointer}
.resource-modal__body{min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.82fr);gap:0;overflow:hidden}
.resource-form{align-content:start;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:20px;overflow:auto}
.resource-form-field{display:grid;gap:7px;min-width:0}
.resource-form-field--wide{grid-column:1/-1}
.resource-form-field>span{font-size:12px;font-weight:700;color:var(--text-primary)}
.resource-form-field input,.resource-form-field select{
  width:100%;height:42px;border:1px solid var(--border);border-radius:9px;padding:0 11px;background:var(--bg-primary);color:var(--text-primary);outline:0
}
.resource-form-field input:focus,.resource-form-field select:focus{border-color:rgba(45,164,78,.55);box-shadow:0 0 0 3px rgba(45,164,78,.10)}
.resource-list-panel{min-width:0;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);border-left:1px solid var(--border);background:rgba(127,140,132,.035)}
.resource-list-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 16px;border-bottom:1px solid var(--border)}
.resource-list-head strong{font-size:13px;color:var(--text-primary)}
.resource-list-head span{font-size:11px;color:var(--text-secondary)}
.resource-list{min-height:0;padding:10px;overflow:auto;overscroll-behavior:contain}
.resource-list-empty{min-height:180px;display:grid;place-items:center;color:var(--text-secondary);font-size:13px;text-align:center}
.resource-list-item{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px;border:1px solid transparent;border-radius:11px;transition:background .16s ease,border-color .16s ease}
.resource-list-item+.resource-list-item{margin-top:6px}
.resource-list-item:hover{background:var(--bg-secondary);border-color:var(--border)}
.resource-list-index{width:26px;height:26px;display:grid;place-items:center;border-radius:8px;background:var(--accent-soft);color:var(--accent-color);font-size:11px;font-weight:800}
.resource-list-item>div:nth-child(2){min-width:0;display:grid;gap:3px}
.resource-list-item strong,.resource-list-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.resource-list-item strong{font-size:12px;color:var(--text-primary)}
.resource-list-item small{font-size:10px;color:var(--text-secondary)}
.resource-list-actions{display:flex;align-items:center;gap:4px}
.resource-list-actions button{min-width:28px;height:28px;border:1px solid var(--border);border-radius:7px;background:var(--bg-primary);color:var(--text-secondary);font-size:11px;cursor:pointer}
.resource-list-actions button:disabled{opacity:.35;cursor:default}
.resource-list-actions button.is-danger:hover{border-color:#e4a29b;color:#b42318;background:#fff1f0}
.resource-modal__footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:14px 20px;border-top:1px solid var(--border)}
.resource-modal__footer .primary-button,.resource-modal__footer .secondary-button{margin:0;min-width:110px;border:0;cursor:pointer}
html.has-resource-modal,html.has-resource-modal body{overflow:hidden}
html[data-theme="dark"] .publish-resource-tools{background:linear-gradient(135deg,rgba(67,182,99,.10),rgba(255,255,255,.015))}
html[data-theme="dark"] .resource-modal__dialog{box-shadow:0 30px 80px rgba(0,0,0,.55)}
html[data-theme="dark"] .resource-list-panel{background:rgba(255,255,255,.018)}
html[data-theme="dark"] .resource-list-actions button.is-danger:hover{background:rgba(180,35,24,.12);border-color:rgba(228,162,155,.35);color:#ff9d94}
@media(max-width:760px){
  .publish-resource-tools{padding:12px}
  .publish-resource-tools__head{align-items:stretch}
  .publish-resource-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .publish-resource-actions button{justify-content:center}
  .resource-modal{padding:10px}
  .resource-modal__dialog{max-height:calc(100vh - 20px);border-radius:14px}
  .resource-modal__body{grid-template-columns:1fr;overflow:auto}
  .resource-form{grid-template-columns:1fr;overflow:visible;padding:15px}
  .resource-form-field--wide{grid-column:auto}
  .resource-list-panel{border-left:0;border-top:1px solid var(--border);min-height:240px}
  .resource-list{max-height:300px}
  .resource-modal__footer{padding:12px 15px}
}
@media(max-width:420px){
  .publish-resource-actions{grid-template-columns:1fr}
  .resource-modal__header{padding:14px 15px}
  .resource-modal__footer .primary-button,.resource-modal__footer .secondary-button{min-width:0;flex:1}
}

/* 2026-07-29: batch media/resource entry and safe modal fields */
.resource-entry-panel{min-width:0;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden}
.resource-entry-tabs{display:flex;gap:8px;padding:14px 20px 0}
.resource-entry-tabs button{height:34px;padding:0 14px;border:1px solid var(--border);border-radius:9px;background:var(--bg-primary);color:var(--text-secondary);font-size:12px;font-weight:700;cursor:pointer;transition:.18s ease}
.resource-entry-tabs button:hover{border-color:rgba(45,164,78,.35);color:var(--accent-color)}
.resource-entry-tabs button.is-active{border-color:rgba(45,164,78,.28);background:var(--accent-soft);color:var(--accent-color)}
.resource-single-entry,.resource-bulk-entry{min-height:0;overflow:auto}
.resource-bulk-entry{padding:20px}
.resource-bulk-entry[hidden],.resource-single-entry[hidden]{display:none!important}
.resource-bulk-entry label{display:grid;gap:8px}
.resource-bulk-entry label>span{font-size:12px;font-weight:700;color:var(--text-primary)}
.resource-bulk-entry textarea{width:100%;min-height:290px;resize:vertical;border:1px solid var(--border);border-radius:11px;padding:12px 13px;background:var(--bg-primary);color:var(--text-primary);font:12px/1.75 var(--font-mono);outline:0;white-space:pre;overflow:auto}
.resource-bulk-entry textarea:focus{border-color:rgba(45,164,78,.55);box-shadow:0 0 0 3px rgba(45,164,78,.10)}
.resource-bulk-example{margin-top:10px;padding:10px 12px;border-radius:9px;background:var(--accent-soft);color:var(--text-secondary);font-size:11px;line-height:1.65}
.resource-bulk-status{min-height:20px;margin-top:9px;font-size:12px;line-height:1.6}
.resource-bulk-status.is-error{color:#b42318}
.resource-bulk-status.is-success{color:var(--accent-color)}
.resource-form-field input.is-invalid,.resource-form-field select.is-invalid{border-color:#d92d20!important;box-shadow:0 0 0 3px rgba(217,45,32,.10)!important}
html[data-theme="dark"] .resource-bulk-status.is-error{color:#ff9d94}
@media(max-width:760px){
  .resource-entry-panel{overflow:visible}
  .resource-entry-tabs{padding:12px 15px 0}
  .resource-bulk-entry{padding:15px;overflow:visible}
  .resource-bulk-entry textarea{min-height:220px}
}

/* 2026-07-29: resource modal completion and direct publish actions */
.resource-modal__footer{flex-wrap:wrap}
.resource-modal__footer .resource-publish-button{
  background:linear-gradient(135deg,var(--accent-color),#42b865);
  box-shadow:0 8px 20px rgba(45,164,78,.20);
}
.resource-modal__footer .resource-publish-button:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 26px rgba(45,164,78,.28);
}
@media(max-width:720px){
  .resource-modal__footer .resource-publish-button{flex-basis:100%}
}

/* 2026-07-29: article resource gallery rendering */
.node-article-gallery{margin:18px 0 8px;padding-top:0;border-top:0}
.node-article-gallery__head{display:flex;align-items:flex-end;justify-content:flex-end;gap:16px;margin-bottom:16px}
.node-article-gallery__head span{display:block;margin-bottom:3px;color:var(--accent-color);font-size:10px;font-weight:800;letter-spacing:.16em}
.node-article-gallery__head h3{margin:0;color:var(--text-primary);font-size:20px;line-height:1.3}
.node-article-gallery__tools{display:flex;align-items:center;gap:12px}
.node-article-gallery__head b{color:var(--text-secondary);font-size:12px;font-weight:600}
.node-gallery-view-switch{display:flex;gap:2px;padding:2px;border:1px solid var(--line);border-radius:7px;background:transparent}
.node-gallery-view-switch button{width:26px;height:24px;padding:0;border:0;border-radius:5px;background:transparent;color:var(--text-secondary);font-size:14px;line-height:1;cursor:pointer;transition:background .18s ease,color .18s ease,transform .18s ease}
.node-gallery-view-switch button:hover{color:var(--text-primary);transform:translateY(-1px)}
.node-gallery-view-switch button[aria-pressed="true"]{background:var(--accent-color);color:#fff;box-shadow:0 4px 10px rgba(45,164,78,.22)}
.node-article-gallery[data-view="gallery"] .node-article-gallery__grid{display:none}
.node-article-gallery[data-view="gallery"] .node-gallery-more{display:none}
.node-gallery-stage{position:relative;display:block;margin-bottom:14px;padding:0;border:0;border-radius:0;background:transparent;animation:nodeGalleryStageIn .28s ease both}
.node-gallery-stage[hidden]{display:none!important}
@keyframes nodeGalleryStageIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.node-gallery-stage__figure{min-width:0;margin:0;text-align:center}
.node-gallery-stage__image-button{display:block;width:100%;height:auto;padding:0;border:0;border-radius:11px;overflow:hidden;background:transparent;cursor:zoom-in}
.node-gallery-stage__image-button img{display:block;width:100%;height:auto;max-height:72vh;margin:0 auto;object-fit:contain;background:transparent;transition:opacity .18s ease}
.node-gallery-stage__figure figcaption{min-height:20px;margin-top:9px;color:var(--text-secondary);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.node-gallery-stage__arrow,.node-gallery-thumbs__arrow{display:grid;place-items:center;padding:0;border:1px solid rgba(255,255,255,.45);border-radius:999px;background:rgba(255,255,255,.58);color:#1f2937;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);cursor:pointer;transition:background .18s ease,color .18s ease,opacity .18s ease,transform .18s ease}
.node-gallery-stage__arrow{position:absolute;z-index:2;top:42%;width:42px;height:54px;font-size:34px;line-height:1;opacity:.72;transform:translateY(-50%)}
.node-gallery-stage__arrow.is-prev{left:24px}.node-gallery-stage__arrow.is-next{right:24px}
.node-gallery-stage__arrow:hover{background:rgba(255,255,255,.9);color:var(--accent-color);opacity:1;transform:translateY(-50%) scale(1.04)}
.node-gallery-thumbs-wrap{display:grid;grid-template-columns:34px minmax(0,1fr) 34px;align-items:center;gap:8px;margin-top:12px}
.node-gallery-thumbs{display:flex;gap:9px;min-width:0;overflow-x:auto;scroll-behavior:smooth;scrollbar-width:none;padding:6px 4px}
.node-gallery-thumbs::-webkit-scrollbar{display:none}
.node-gallery-thumbs__arrow{width:32px;height:42px;font-size:25px;line-height:1;opacity:.72}
.node-gallery-thumbs__arrow:hover{background:var(--accent-color);border-color:var(--accent-color);color:#fff;opacity:1;transform:scale(1.04)}
.node-gallery-thumb{flex:0 0 84px;height:58px;padding:0;border:2px solid transparent;border-radius:8px;overflow:hidden;background:#e5e7eb;cursor:pointer;opacity:.6;transition:border-color .18s ease,opacity .18s ease,transform .18s ease,box-shadow .18s ease}
.node-gallery-thumb:hover{opacity:.9;transform:scale(1.05)}
.node-gallery-thumb.is-active{border-color:var(--accent-color);opacity:1;transform:scale(1.05);box-shadow:0 0 0 2px rgba(45,164,78,.18),0 5px 12px rgba(45,164,78,.16)}
.node-gallery-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.node-article-gallery__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.node-gallery-item{position:relative;display:block;width:100%;aspect-ratio:4 / 3;padding:0;border:0;border-radius:12px;overflow:hidden;background:var(--bg-tertiary);cursor:zoom-in;box-shadow:0 6px 18px rgba(36,45,40,.08);transition:transform .22s ease,box-shadow .22s ease}
.node-gallery-item:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(36,45,40,.14)}
.node-gallery-item img{display:block;width:100%;height:100%;min-height:0;max-height:none;object-fit:cover;background:var(--bg-tertiary)}
.node-gallery-item span{position:absolute;right:9px;bottom:9px;padding:4px 8px;border-radius:999px;background:rgba(16,20,18,.62);color:#fff;font-size:11px;backdrop-filter:blur(8px)}
.node-gallery-more{display:block;min-width:190px;margin:16px auto 0;padding:10px 18px;border:1px solid rgba(45,164,78,.25);border-radius:9px;background:var(--accent-soft);color:var(--accent-color);font-weight:700;cursor:pointer;transition:transform .2s ease,background .2s ease}
.node-gallery-more:hover{transform:translateY(-2px);background:rgba(45,164,78,.16)}
.node-gallery-lightbox{position:fixed;z-index:9999;inset:0;display:grid;place-items:center;padding:30px;background:rgba(7,10,8,.9);backdrop-filter:blur(10px)}
.node-gallery-lightbox[hidden]{display:none!important}
.node-gallery-lightbox figure{max-width:min(1100px,88vw);max-height:88vh;margin:0;display:grid;gap:10px;justify-items:center}
.node-gallery-lightbox figure img{display:block;max-width:100%;max-height:80vh;border-radius:12px;box-shadow:0 24px 70px rgba(0,0,0,.45);object-fit:contain}
.node-gallery-lightbox figcaption{color:rgba(255,255,255,.75);font-size:12px;text-align:center}
.node-gallery-lightbox__close,.node-gallery-lightbox__nav{position:absolute;border:0;background:rgba(255,255,255,.1);color:#fff;cursor:pointer;backdrop-filter:blur(8px)}
.node-gallery-lightbox__close{top:22px;right:24px;width:42px;height:42px;border-radius:50%;font-size:26px;line-height:1}
.node-gallery-lightbox__nav{top:50%;width:48px;height:64px;border-radius:12px;font-size:38px;transform:translateY(-50%)}
.node-gallery-lightbox__nav.is-prev{left:24px}.node-gallery-lightbox__nav.is-next{right:24px}
html.has-gallery-lightbox,html.has-gallery-lightbox body{overflow:hidden}
html[data-theme="dark"] .node-gallery-item{box-shadow:0 8px 20px rgba(0,0,0,.22)}
html[data-theme="dark"] .node-gallery-stage{background:transparent}
html[data-theme="dark"] .node-gallery-stage__image-button{background:transparent}
html[data-theme="dark"] .node-gallery-stage__arrow,html[data-theme="dark"] .node-gallery-thumbs__arrow{border-color:rgba(255,255,255,.16);background:rgba(24,24,27,.68);color:#f4f4f5}
html[data-theme="dark"] .node-gallery-stage__arrow:hover,html[data-theme="dark"] .node-gallery-thumbs__arrow:hover{background:rgba(45,164,78,.86);border-color:rgba(45,164,78,.86);color:#fff}
html[data-theme="dark"] .node-gallery-thumb{background:#27272a}
@media(max-width:720px){.node-article-gallery__grid{grid-template-columns:1fr}.node-gallery-item img{min-height:0;max-height:none}.node-gallery-lightbox{padding:18px}.node-gallery-lightbox__nav{width:40px;height:54px}.node-gallery-lightbox__nav.is-prev{left:8px}.node-gallery-lightbox__nav.is-next{right:8px}.node-gallery-lightbox__close{top:12px;right:12px}.node-gallery-stage{padding:0}.node-gallery-stage__arrow{width:32px;height:46px;font-size:28px}.node-gallery-stage__arrow.is-prev{left:14px}.node-gallery-stage__arrow.is-next{right:14px}.node-gallery-thumbs-wrap{grid-template-columns:28px minmax(0,1fr) 28px}.node-gallery-thumb{flex-basis:70px;height:50px}.node-gallery-thumbs__arrow{width:28px;height:36px;font-size:21px}}
@media(max-width:720px){.node-article-gallery__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.node-gallery-item img{min-height:0;max-height:none}.node-gallery-lightbox{padding:18px}.node-gallery-lightbox__nav{width:40px;height:54px}.node-gallery-lightbox__nav.is-prev{left:8px}.node-gallery-lightbox__nav.is-next{right:8px}.node-gallery-lightbox__close{top:12px;right:12px}.node-gallery-stage{padding:0}.node-gallery-stage__arrow{width:32px;height:46px;font-size:28px}.node-gallery-stage__arrow.is-prev{left:14px}.node-gallery-stage__arrow.is-next{right:14px}.node-gallery-thumbs-wrap{grid-template-columns:28px minmax(0,1fr) 28px}.node-gallery-thumb{flex-basis:70px;height:50px}.node-gallery-thumbs__arrow{width:28px;height:36px;font-size:21px}}
@media(min-width:768px){.node-article-gallery__grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:460px){.node-article-gallery__head{align-items:center;justify-content:flex-end}.node-article-gallery__tools{width:100%;align-items:center;justify-content:flex-end;flex-direction:row;gap:8px}.node-article-gallery__head b{font-size:12px;white-space:nowrap}}

/* 2026-07-29: traditional flat, high-density article music player */
.node-audio-board.node-audio-board--flat{
  margin:16px 0 24px;
  display:block;
  border:1px solid var(--border);
  border-radius:0;
  background:#fff;
  box-shadow:none;
  overflow:hidden;
}
.node-audio-board--flat .node-audio-console{
  min-height:112px;
  display:grid;
  grid-template-columns:96px minmax(0,1fr) auto;
  align-items:stretch;
  gap:16px;
  padding:12px;
  border-bottom:1px solid #e9ecee;
  background:#fff;
}
.node-audio-board--flat .node-audio-cover-small{
  position:relative;
  width:96px;
  height:96px;
  overflow:hidden;
  background:#f1f2f3;
}
.node-audio-board--flat .node-audio-cover-small img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.node-audio-board--flat .node-audio-cover-play{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  border:0;
  border-radius:0;
  background:rgba(0,0,0,.16);
  color:#fff;
  box-shadow:none;
  cursor:pointer;
  transition:background .16s ease;
}
.node-audio-board--flat .node-audio-cover-play:hover{
  transform:none;
  background:rgba(0,0,0,.28);
  box-shadow:none;
}
.node-audio-board--flat .node-audio-cover-play svg{
  width:32px;
  height:32px;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.28));
}
.node-audio-board--flat .node-audio-center{
  min-width:0;
  display:grid;
  grid-template-rows:auto 1fr auto;
  align-content:stretch;
  gap:5px;
  padding:2px 0 0;
}
.node-audio-board--flat .node-audio-topline{
  min-width:0;
  display:flex;
  align-items:baseline;
  gap:8px;
  overflow:hidden;
  white-space:nowrap;
}
.node-audio-board--flat .node-audio-topline strong{
  overflow:hidden;
  color:var(--text-primary);
  font-size:15px;
  font-weight:650;
  text-overflow:ellipsis;
}
.node-audio-board--flat .node-audio-topline span{
  overflow:hidden;
  color:var(--text-secondary);
  font-size:12px;
  text-overflow:ellipsis;
}
.node-audio-board--flat .node-audio-lyrics{
  min-width:0;
  display:grid;
  align-content:center;
  justify-items:center;
  gap:2px;
  padding:0 8px;
  color:#777f84;
  font-size:12px;
  font-weight:400;
  line-height:1.45;
  text-align:center;
}
.node-audio-board--flat .node-audio-lyrics span{
  width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.node-audio-board--flat .node-audio-lyrics span+span{
  color:#a4aaae;
  font-size:11px;
}
.node-audio-board--flat .node-audio-progress--thin{
  display:block;
  line-height:0;
}
.node-audio-board--flat .node-audio-progress--thin input{
  --progress:0%;
  width:100%;
  height:3px;
  margin:0;
  border:0;
  border-radius:0;
  -webkit-appearance:none;
  appearance:none;
  outline:0;
  background:linear-gradient(to right,var(--accent-color) 0%,var(--accent-color) var(--progress),#dfe3e5 var(--progress),#dfe3e5 100%);
  cursor:pointer;
}
.node-audio-board--flat .node-audio-progress--thin input::-webkit-slider-runnable-track{
  height:3px;
  border-radius:0;
  background:transparent;
}
.node-audio-board--flat .node-audio-progress--thin input::-webkit-slider-thumb{
  width:9px;
  height:9px;
  margin-top:-3px;
  border:0;
  border-radius:50%;
  -webkit-appearance:none;
  appearance:none;
  background:var(--accent-color);
  box-shadow:none;
}
.node-audio-board--flat .node-audio-progress--thin input::-moz-range-track{
  height:3px;
  border:0;
  border-radius:0;
  background:#dfe3e5;
}
.node-audio-board--flat .node-audio-progress--thin input::-moz-range-progress{
  height:3px;
  border-radius:0;
  background:var(--accent-color);
}
.node-audio-board--flat .node-audio-progress--thin input::-moz-range-thumb{
  width:9px;
  height:9px;
  border:0;
  border-radius:50%;
  background:var(--accent-color);
  box-shadow:none;
}
.node-audio-board--flat .node-audio-mini-controls{
  align-self:end;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:3px;
  padding-bottom:1px;
  white-space:nowrap;
}
.node-audio-board--flat .node-audio-mini-time{
  display:inline-flex;
  align-items:center;
  gap:3px;
  margin-right:3px;
  color:#8c9398;
  font-size:11px;
  font-variant-numeric:tabular-nums;
}
.node-audio-board--flat .node-audio-mini-time b,
.node-audio-board--flat .node-audio-mini-time i{
  font:inherit;
}
.node-audio-board--flat .node-audio-mini-btn{
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#737b80;
  box-shadow:none;
  cursor:pointer;
  transition:color .15s ease,background .15s ease;
}
.node-audio-board--flat .node-audio-mini-btn:hover{
  transform:none;
  background:#f5f6f6;
  color:var(--text-primary);
  box-shadow:none;
}
.node-audio-board--flat .node-audio-mini-btn.is-active{
  background:transparent;
  color:var(--accent-color);
}
.node-audio-board--flat .node-audio-mini-btn svg{
  width:15px;
  height:15px;
}
.node-audio-board--flat .node-audio-playlist-shell--flat{
  border:0;
  border-radius:0;
  background:#fff;
  box-shadow:none;
  overflow:hidden;
}
.node-audio-board--flat .node-audio-playlist-shell--flat.is-collapsed{
  display:none;
}
.node-audio-board--flat .node-audio-playlist--dense{
  max-height:520px;
  overflow:auto;
  padding:0;
}
.node-audio-board--flat .node-audio-playlist--dense::-webkit-scrollbar{
  width:6px;
}
.node-audio-board--flat .node-audio-playlist--dense::-webkit-scrollbar-track{
  background:#f5f5f5;
}
.node-audio-board--flat .node-audio-playlist--dense::-webkit-scrollbar-thumb{
  border:0;
  border-radius:0;
  background:#c9ced1;
}
.node-audio-board--flat .node-audio-row--dense{
  position:relative;
  width:100%;
  min-height:38px;
  display:grid;
  grid-template-columns:34px minmax(0,1fr) minmax(120px,.34fr) 48px;
  align-items:center;
  gap:10px;
  margin:0;
  padding:8px 12px;
  border:0;
  border-bottom:1px solid #ededed;
  border-radius:0;
  background:#fff;
  color:var(--text-secondary);
  text-align:left;
  cursor:pointer;
  box-shadow:none;
  transition:background .14s ease,color .14s ease;
}
.node-audio-board--flat .node-audio-row--dense::before{
  display:none;
}
.node-audio-board--flat .node-audio-row--dense:hover{
  transform:none;
  background:#f9f9f9;
  box-shadow:none;
}
.node-audio-board--flat .node-audio-row--dense.is-active{
  background:#f7faf8;
  color:var(--accent-color);
  box-shadow:none;
}
.node-audio-board--flat .node-audio-row--dense .node-audio-index{
  width:auto;
  height:auto;
  display:block;
  border-radius:0;
  background:transparent;
  color:#7e858a;
  font-size:12px;
  font-weight:400;
  text-align:center;
}
.node-audio-board--flat .node-audio-row--dense.is-active .node-audio-index{
  background:transparent;
  color:var(--accent-color);
  font-weight:700;
}
.node-audio-board--flat .node-audio-row--dense strong{
  min-width:0;
  overflow:hidden;
  color:var(--text-primary);
  font-size:13px;
  font-weight:450;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.node-audio-board--flat .node-audio-row--dense.is-active strong{
  color:var(--accent-color);
  font-weight:700;
}
.node-audio-board--flat .node-audio-row--dense em,
.node-audio-board--flat .node-audio-row--dense time{
  min-width:0;
  overflow:hidden;
  color:#7f878c;
  font-size:12px;
  font-style:normal;
  font-weight:400;
  text-align:right;
  text-overflow:ellipsis;
  white-space:nowrap;
}
html[data-theme="dark"] .node-audio-board.node-audio-board--flat,
html[data-theme="dark"] .node-audio-board--flat .node-audio-console,
html[data-theme="dark"] .node-audio-board--flat .node-audio-playlist-shell--flat,
html[data-theme="dark"] .node-audio-board--flat .node-audio-row--dense{
  background:#1e2327;
}
html[data-theme="dark"] .node-audio-board.node-audio-board--flat{
  border-color:#363c41;
}
html[data-theme="dark"] .node-audio-board--flat .node-audio-console,
html[data-theme="dark"] .node-audio-board--flat .node-audio-row--dense{
  border-color:#30363b;
}
html[data-theme="dark"] .node-audio-board--flat .node-audio-row--dense:hover{
  background:#252b2f;
}
html[data-theme="dark"] .node-audio-board--flat .node-audio-row--dense.is-active{
  background:#222d27;
}
html[data-theme="dark"] .node-audio-board--flat .node-audio-mini-btn:hover{
  background:#292f33;
}
html[data-theme="dark"] .node-audio-board--flat .node-audio-progress--thin input{
  background:linear-gradient(to right,var(--accent-color) 0%,var(--accent-color) var(--progress),#3a4146 var(--progress),#3a4146 100%);
}
html[data-theme="dark"] .node-audio-board--flat .node-audio-playlist--dense::-webkit-scrollbar-track{
  background:#202529;
}
html[data-theme="dark"] .node-audio-board--flat .node-audio-playlist--dense::-webkit-scrollbar-thumb{
  background:#4a5359;
}
@media(max-width:760px){
  .node-audio-board--flat .node-audio-console{
    grid-template-columns:72px minmax(0,1fr);
    gap:10px;
    padding:10px;
  }
  .node-audio-board--flat .node-audio-cover-small{
    width:72px;
    height:72px;
  }
  .node-audio-board--flat .node-audio-cover-play svg{
    width:25px;
    height:25px;
  }
  .node-audio-board--flat .node-audio-center{
    min-height:72px;
  }
  .node-audio-board--flat .node-audio-topline strong{
    font-size:14px;
  }
  .node-audio-board--flat .node-audio-lyrics{
    justify-items:start;
    padding:0;
    font-size:11px;
    text-align:left;
  }
  .node-audio-board--flat .node-audio-mini-controls{
    grid-column:1/-1;
    align-self:auto;
    justify-content:flex-end;
    margin-top:0;
  }
  .node-audio-board--flat .node-audio-row--dense{
    grid-template-columns:26px minmax(0,1fr) 44px;
    gap:8px;
    padding:8px 10px;
  }
  .node-audio-board--flat .node-audio-row--dense em{
    grid-column:2;
    font-size:11px;
    text-align:left;
  }
  .node-audio-board--flat .node-audio-row--dense strong{
    grid-column:2;
  }
  .node-audio-board--flat .node-audio-row--dense time{
    grid-column:3;
    grid-row:1 / span 2;
    align-self:center;
  }
}

/* 2026-07-29: article video player visibility and layout */
.node-video-section{
  margin:16px 0 24px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--card);
}
.node-video-shell{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  min-height:260px;
  overflow:hidden;
  background:#050505;
}
.node-video-player{
  display:block;
  width:100%;
  height:100%;
  min-height:260px;
  background:#050505;
  object-fit:contain;
}
.node-video-watermark{
  position:absolute;
  top:14px;
  right:14px;
  z-index:20;
  display:block;
  max-width:84%;
  padding:.2em .35em;
  color:#fff!important;
  font:900 clamp(11px,1.45vw,10px)/1.25 "Arial Black",Arial,sans-serif;
  letter-spacing:.02em;
  text-shadow:0 1px 2px rgba(0,0,0,.45);
  white-space:nowrap;
  pointer-events:none!important;
  user-select:none;
  opacity:1!important;
  visibility:visible!important;
}
.node-video-watermark::before{content:attr(data-watermark-text)}
.node-video-message{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  padding:24px;
  background:rgba(5,5,5,.92);
  color:#f4f4f4;
  text-align:center;
  font-size:14px;
  line-height:1.7;
}
.node-video-message[hidden]{display:none!important}
.node-video-loading[hidden]{display:none!important}
.node-video-loading{position:absolute;inset:0;z-index:15;display:grid;place-items:center;padding:24px;color:#fff;text-align:center;background:rgba(7,10,15,.58);-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);transition:opacity .28s ease,visibility .28s ease}
.node-video-loading-card{width:min(360px,88%);display:grid;justify-items:center;gap:9px;padding:24px 22px;border:1px solid rgba(255,255,255,.13);border-radius:18px;background:rgba(12,16,22,.68);box-shadow:0 18px 60px rgba(0,0,0,.28)}
.node-video-loading-card strong{font-size:15px;font-weight:750;letter-spacing:.01em}
.node-video-loading-card>span:not(.node-video-loading-spinner){color:rgba(255,255,255,.72);font-size:13px}
.node-video-loading-spinner{width:30px;height:30px;border:3px solid rgba(255,255,255,.2);border-top-color:#75d59a;border-right-color:#75d59a;border-radius:50%;animation:node-video-spin .8s linear infinite}
.node-video-loading-progress{width:100%;height:5px;margin-top:7px;overflow:hidden;border-radius:99px;background:rgba(255,255,255,.15);box-shadow:0 0 18px rgba(117,213,154,.12)}
.node-video-loading-progress i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#44b875,#b3f5c9,#44b875);background-size:200% 100%;box-shadow:0 0 12px rgba(117,213,154,.9);transition:width .35s ease;animation:node-video-shimmer 1.4s linear infinite}
.node-video-loading-card small{color:rgba(255,255,255,.56);font-size:11px;font-variant-numeric:tabular-nums}
@keyframes node-video-spin{to{transform:rotate(360deg)}}
@keyframes node-video-shimmer{to{background-position:-200% 0}}
.node-video-playlist{
  display:grid;
  background:var(--card);
}
.node-video-playlist.is-single{display:none}
.node-video-item{
  width:100%;
  min-height:44px;
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:8px 14px;
  border:0;
  border-top:1px solid var(--line);
  background:transparent;
  color:var(--text-secondary);
  text-align:left;
  cursor:pointer;
  transition:background .16s ease,color .16s ease;
}
.node-video-item:hover{background:rgba(45,164,78,.045)}
.node-video-item.is-active{color:var(--accent-color);background:rgba(45,164,78,.07)}
.node-video-index{font-size:12px;color:var(--text-secondary);font-variant-numeric:tabular-nums}
.node-video-item strong{
  min-width:0;
  overflow:hidden;
  color:var(--text-primary);
  font-size:13px;
  font-weight:600;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.node-video-item.is-active strong{color:var(--accent-color)}
.node-video-item em{
  color:var(--text-secondary);
  font-size:11px;
  font-style:normal;
  letter-spacing:.06em;
}
html[data-theme="dark"] .node-video-section{background:var(--card);border-color:var(--line)}
html[data-theme="dark"] .node-video-playlist{background:var(--card)}
html[data-theme="dark"] .node-video-item:hover{background:rgba(67,182,99,.07)}
html[data-theme="dark"] .node-video-item.is-active{background:rgba(67,182,99,.11)}
@media(max-width:720px){
  .node-video-section{margin:14px 0 20px;border-radius:9px}
  .node-video-shell,.node-video-player{min-height:190px}
  .node-video-item{grid-template-columns:26px minmax(0,1fr) auto;padding:8px 10px}
}
@media(max-width:420px){
  .node-video-shell,.node-video-player{min-height:170px}
}

/* 2026-07-29: frontend member access / paywall settings */
.publish-resource-actions .publish-access-button{border-color:rgba(45,164,78,.22);background:linear-gradient(135deg,rgba(45,164,78,.08),rgba(45,164,78,.02))}
.publish-resource-actions .publish-access-button b{max-width:180px;padding:0 8px;white-space:nowrap;font-weight:700}
.access-modal__dialog{max-width:860px}
.access-modal__body{padding:20px;overflow:auto;display:grid;gap:18px}
.access-mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.access-field{display:grid;gap:7px;min-width:0}
.access-field>span{color:var(--text-primary);font-size:13px;font-weight:800}
.access-field input,.access-field select{width:100%;height:44px;border:1px solid var(--border);border-radius:9px;padding:0 12px;background:var(--bg-primary);color:var(--text-primary);outline:0}
.access-field input:focus,.access-field select:focus{border-color:rgba(45,164,78,.55);box-shadow:0 0 0 3px rgba(45,164,78,.10)}
.access-field small{color:var(--text-secondary);font-size:11px;line-height:1.6}
.access-check-card{display:flex;align-items:flex-start;gap:11px;padding:14px;border:1px solid var(--border);border-radius:11px;background:rgba(45,164,78,.035);cursor:pointer}
.access-check-card input{width:18px;height:18px;margin:2px 0 0;accent-color:var(--accent-color);flex:0 0 auto}
.access-check-card>span{display:grid;gap:3px}
.access-check-card strong{font-size:13px;color:var(--text-primary)}
.access-check-card small{font-size:11px;color:var(--text-secondary);line-height:1.55}
.access-groups{display:grid;gap:11px}
.access-groups__head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}
.access-groups__head strong{font-size:13px;color:var(--text-primary)}
.access-groups__head span{font-size:11px;color:var(--text-secondary)}
.access-group-list{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.access-group-list label{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:0 11px;border:1px solid var(--border);border-radius:9px;background:var(--bg-primary);cursor:pointer;transition:border-color .16s ease,background .16s ease}
.access-group-list label:hover{border-color:rgba(45,164,78,.34);background:var(--accent-soft)}
.access-group-list input{width:16px;height:16px;margin:0;accent-color:var(--accent-color)}
.access-group-list span{font-size:12px;color:var(--text-primary);font-weight:700}
.access-group-list small{font-size:10px;color:var(--text-secondary)}
.access-shortcode-tip{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px;border:1px dashed rgba(45,164,78,.32);border-radius:11px;background:linear-gradient(135deg,rgba(45,164,78,.07),transparent)}
.access-shortcode-tip>div{display:grid;gap:4px}
.access-shortcode-tip strong{font-size:13px;color:var(--text-primary)}
.access-shortcode-tip p{margin:0;color:var(--text-secondary);font-size:11px;line-height:1.6}
.access-shortcode-tip code{padding:2px 5px;border-radius:4px;background:var(--bg-tertiary);color:var(--accent-color);font-family:var(--font-mono)}
.access-shortcode-tip .secondary-button{margin:0;white-space:nowrap;border:1px solid var(--border);cursor:pointer}
html[data-theme="dark"] .access-check-card{background:rgba(67,182,99,.07)}
html[data-theme="dark"] .access-shortcode-tip{background:linear-gradient(135deg,rgba(67,182,99,.10),transparent)}
@media(max-width:720px){
  .access-modal__body{padding:15px}
  .access-mode-grid{grid-template-columns:1fr}
  .access-shortcode-tip{align-items:stretch;flex-direction:column}
  .access-shortcode-tip .secondary-button{width:100%}
  .publish-resource-actions .publish-access-button b{max-width:130px;overflow:hidden;text-overflow:ellipsis}
}

/* 2026-07-29: front-end member access body rendering fix */
.node-member-paywall{
  margin:18px 0 22px;padding:18px 20px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;
  border:1px solid var(--border);border-left:3px solid var(--accent-color);border-radius:10px;background:var(--bg-secondary);
}
.node-member-paywall__icon{width:42px;height:42px;display:grid;place-items:center;border-radius:9px;background:var(--accent-soft);font-size:19px}
.node-member-paywall__content{min-width:0}.node-member-paywall__eyebrow{display:block;margin-bottom:3px;color:var(--accent-color);font-size:10px;font-weight:800;letter-spacing:.14em}
.node-member-paywall__content h3{margin:0 0 5px;color:var(--text-primary);font-size:17px}.node-member-paywall__content p{margin:0;color:var(--text-secondary);font-size:13px;line-height:1.7}
.node-member-paywall__actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.node-member-paywall__actions form{margin:0}.node-member-paywall__actions .primary-button,.node-member-paywall__actions .secondary-button{display:inline-flex;align-items:center;justify-content:center;margin:0;padding:8px 13px;border-radius:7px;border:1px solid var(--border);font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer}
.node-member-paywall__actions .primary-button{border-color:var(--accent-color);background:var(--accent-color);color:#fff}.node-member-paywall__actions .secondary-button{background:var(--bg-primary);color:var(--text-primary)}
html[data-theme="dark"] .node-member-paywall{background:#1c2125;border-color:#353c42;border-left-color:var(--accent-color)}
@media(max-width:720px){.node-member-paywall{grid-template-columns:auto minmax(0,1fr);padding:15px}.node-member-paywall__actions{grid-column:1/-1;justify-content:flex-start;padding-left:58px}}
@media(max-width:480px){.node-member-paywall{grid-template-columns:1fr}.node-member-paywall__icon{display:none}.node-member-paywall__actions{padding-left:0}.node-member-paywall__actions .primary-button,.node-member-paywall__actions .secondary-button{flex:1}}

/* 2026-07-29: article heading/meta refinement, quote callout, access-price input fix */
.node-main > .article.detail-card .detail-hero{
  padding:14px 0 13px!important;
  margin-bottom:20px!important;
  border-bottom:1px solid var(--line)!important;
}
.detail-title-row{
  display:block!important;
}
.node-main > .article.detail-card .detail-title{
  margin:0 0 10px!important;
  color:var(--text-primary,#273344)!important;
  font-size:clamp(25px,3vw,34px)!important;
  font-weight:800!important;
  line-height:1.24!important;
  letter-spacing:-.025em!important;
}
.detail-meta{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:7px 15px!important;
  margin:0!important;
  color:#718091!important;
  font-size:13px!important;
  line-height:1.45!important;
}
.detail-meta-item{
  display:inline-flex!important;
  align-items:center!important;
  gap:5px!important;
  margin:0!important;
  white-space:nowrap!important;
}
.detail-meta-item svg{
  width:16px!important;
  height:16px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.8!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.detail-meta-words{
  color:#35a56c!important;
  font-weight:800!important;
}
.detail-meta-reading{
  color:#d9a323!important;
  font-weight:800!important;
}
.detail-meta-category{
  color:#536173!important;
  font-weight:600!important;
}
.detail-meta-category:hover,
.topic-meta-edit:hover{
  color:var(--accent-color,#2da44e)!important;
}
.detail-meta-views{color:#89939e!important}
.topic-meta-edit{
  padding-left:1px!important;
  color:var(--accent-color,#2da44e)!important;
  font-weight:700!important;
}
html[data-theme="dark"] .node-main > .article.detail-card .detail-title{color:#eef2f5!important}
html[data-theme="dark"] .detail-meta{color:#94a0ab!important}
html[data-theme="dark"] .detail-meta-category{color:#b7c0c8!important}

/* Clean editorial quote block inspired by the supplied reference. */
.node-main > .article.detail-card .markdown-content blockquote{
  position:relative!important;
  margin:20px 0 24px!important;
  padding:18px 22px 18px 28px!important;
  border:0!important;
  border-radius:3px!important;
  background:linear-gradient(90deg,#e9fbfc 0%,#eefcfc 100%)!important;
  color:#42566c!important;
  box-shadow:none!important;
  line-height:1.85!important;
}
.node-main > .article.detail-card .markdown-content blockquote::before{
  content:""!important;
  position:absolute!important;
  left:0!important;
  top:0!important;
  bottom:0!important;
  width:6px!important;
  border-radius:3px 0 0 3px!important;
  background:#16b8b0!important;
}
.node-main > .article.detail-card .markdown-content blockquote p{
  margin:.45em 0!important;
  color:inherit!important;
}
.node-main > .article.detail-card .markdown-content blockquote > :first-child{margin-top:0!important}
.node-main > .article.detail-card .markdown-content blockquote > :last-child{margin-bottom:0!important}
html[data-theme="dark"] .node-main > .article.detail-card .markdown-content blockquote{
  background:linear-gradient(90deg,rgba(20,184,176,.13),rgba(20,184,176,.07))!important;
  color:#c5d7df!important;
}
html[data-theme="dark"] .node-main > .article.detail-card .markdown-content blockquote::before{
  background:#38c8bf!important;
}

/* Keep the points field fully interactive; do not let labels/overlays intercept input. */
.access-field{position:relative!important}
.access-field input[data-access-price]{
  position:relative!important;
  z-index:2!important;
  pointer-events:auto!important;
  user-select:text!important;
  -webkit-user-select:text!important;
  appearance:textfield!important;
  background:var(--bg-primary)!important;
}
.access-field input[data-access-price]::-webkit-inner-spin-button,
.access-field input[data-access-price]::-webkit-outer-spin-button{
  opacity:1!important;
  pointer-events:auto!important;
}
.access-field input[data-access-price]:focus{
  border-color:var(--accent-color,#2da44e)!important;
  box-shadow:0 0 0 3px var(--accent-soft,rgba(45,164,78,.12))!important;
}
@media(max-width:720px){
  .node-main > .article.detail-card .detail-hero{padding:10px 0 11px!important}
  .node-main > .article.detail-card .detail-title{font-size:23px!important;margin-bottom:9px!important}
  .detail-meta{gap:6px 11px!important;font-size:12px!important}
  .node-main > .article.detail-card .markdown-content blockquote{padding:15px 16px 15px 21px!important;margin:16px 0 20px!important}
}


/* 2026-07-29: remove excessive blank space above article title */
.node-main > .article.detail-card{
  padding-top:8px!important;
}
.node-main > .article.detail-card .detail-hero{
  padding-top:0!important;
  padding-bottom:12px!important;
  margin-top:0!important;
  margin-bottom:16px!important;
}
.node-main > .article.detail-card .detail-title{
  margin-top:0!important;
  margin-bottom:7px!important;
  line-height:1.18!important;
}
.detail-meta{
  gap:5px 13px!important;
  line-height:1.35!important;
}
@media(max-width:720px){
  .node-main > .article.detail-card{padding-top:6px!important}
  .node-main > .article.detail-card .detail-hero{padding-top:0!important;padding-bottom:10px!important;margin-bottom:14px!important}
  .node-main > .article.detail-card .detail-title{margin-bottom:7px!important;line-height:1.2!important}
}


/* 2026-07-29: use a compact H3-sized article title */
.node-main > .article.detail-card h3.detail-title{
  margin:0 0 7px!important;
  font-size:clamp(21px,2.35vw,28px)!important;
  font-weight:750!important;
  line-height:1.22!important;
  letter-spacing:-.018em!important;
}
@media(max-width:720px){
  .node-main > .article.detail-card h3.detail-title{
    font-size:20px!important;
    line-height:1.28!important;
  }
}

/* 2026-07-29: smaller article title and correctly aligned shortcode panel */
.node-main > .article.detail-card h3.detail-title{
  margin:0 0 6px!important;
  font-size:clamp(18px,1.85vw,23px)!important;
  font-weight:720!important;
  line-height:1.28!important;
  letter-spacing:-.012em!important;
}

/* Prevent generic Markdown heading rules from displacing [panel] titles. */
.node-main > .article.detail-card .markdown-content .md-panel{
  display:block!important;
  margin:18px 0!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid #cfe3f3!important;
  border-radius:7px!important;
  background:var(--bg-secondary)!important;
  box-shadow:none!important;
}
.node-main > .article.detail-card .markdown-content .md-panel > h3{
  display:flex!important;
  align-items:center!important;
  min-height:40px!important;
  margin:0!important;
  padding:9px 14px!important;
  border:0!important;
  border-bottom:1px solid #cfe3f3!important;
  border-radius:0!important;
  background:#edf6ff!important;
  color:#155b91!important;
  font-size:14px!important;
  font-weight:700!important;
  line-height:1.35!important;
  letter-spacing:0!important;
}
.node-main > .article.detail-card .markdown-content .md-panel > div{
  display:block!important;
  margin:0!important;
  padding:14px!important;
  background:transparent!important;
  color:var(--text-primary)!important;
  line-height:1.75!important;
}
.node-main > .article.detail-card .markdown-content .md-panel > div > :first-child{margin-top:0!important}
.node-main > .article.detail-card .markdown-content .md-panel > div > :last-child{margin-bottom:0!important}
.node-main > .article.detail-card .markdown-content .md-panel-blue > h3{
  border-bottom-color:#cfe3f3!important;
  background:#edf6ff!important;
  color:#155b91!important;
}
.node-main > .article.detail-card .markdown-content .md-panel-yellow{
  border-color:#eadca5!important;
}
.node-main > .article.detail-card .markdown-content .md-panel-yellow > h3{
  border-bottom-color:#eadca5!important;
  background:#fff7d6!important;
  color:#8b6500!important;
}
.node-main > .article.detail-card .markdown-content .md-panel-red{
  border-color:#edcccc!important;
}
.node-main > .article.detail-card .markdown-content .md-panel-red > h3{
  border-bottom-color:#edcccc!important;
  background:#fff0f0!important;
  color:#a22d2d!important;
}
.node-main > .article.detail-card .markdown-content .md-panel-gray{
  border-color:#d9dee2!important;
}
.node-main > .article.detail-card .markdown-content .md-panel-gray > h3{
  border-bottom-color:#d9dee2!important;
  background:#eef1f3!important;
  color:#4e5961!important;
}
html[data-theme="dark"] .node-main > .article.detail-card .markdown-content .md-panel{
  border-color:#3a4650!important;
  background:#202428!important;
}
html[data-theme="dark"] .node-main > .article.detail-card .markdown-content .md-panel > h3{
  border-bottom-color:#3a4650!important;
  background:#26333d!important;
  color:#b8dcf5!important;
}
html[data-theme="dark"] .node-main > .article.detail-card .markdown-content .md-panel > div{
  color:#d9dfe3!important;
}
@media(max-width:720px){
  .node-main > .article.detail-card h3.detail-title{
    font-size:18px!important;
    line-height:1.32!important;
  }
  .node-main > .article.detail-card .markdown-content .md-panel{
    margin:14px 0!important;
  }
  .node-main > .article.detail-card .markdown-content .md-panel > h3{
    min-height:36px!important;
    padding:8px 12px!important;
    font-size:13px!important;
  }
  .node-main > .article.detail-card .markdown-content .md-panel > div{
    padding:12px!important;
  }
}

/* 2026-07-29: boke-style member access box */
.node-member-paywall {
  margin: 20px 0 24px;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px 38px;
  border: 1px solid #e2e5e8;
  border-radius: 0;
  background: #f7f7f8;
  box-shadow: none;
}

.node-member-paywall__main {
  min-width: 0;
}

.node-member-paywall__price-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  line-height: 1.2;
}

.node-member-paywall__label {
  color: #83909c;
  font-size: 15px;
  font-weight: 400;
}

.node-member-paywall__price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: #ff5a32;
  font-style: normal;
  font-weight: 800;
}

.node-member-paywall__price b {
  font-size: 24px;
  line-height: 1.15;
}

.node-member-paywall__price em {
  color: #4d5359;
  font-size: 17px;
  font-style: normal;
  font-weight: 800;
}

.node-member-paywall__price.is-text {
  color: #ff5a32;
  font-size: 24px;
  line-height: 1.15;
}

.node-member-paywall__note {
  margin: 17px 0 0;
  color: #dc8b55;
  font-size: 15px;
  line-height: 1.7;
}

.node-member-paywall__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.node-member-paywall__actions form {
  margin: 0;
}

.node-member-paywall__button {
  width: 190px;
  min-height: 50px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: filter .18s ease, transform .18s ease;
  box-sizing: border-box;
}

.node-member-paywall__button:hover {
  color: #fff;
  filter: brightness(.96);
  transform: translateY(-1px);
}

.node-member-paywall__button.is-login {
  background: #e1c46b;
  color: #2f2a1f;
}

.node-member-paywall__button.is-primary {
  background: #ff5538;
  color: #fff;
}

.node-member-paywall__button.is-disabled {
  background: #b8bec4;
  color: #fff;
  cursor: not-allowed;
  pointer-events: none;
}

.node-member-paywall__reply-tip {
  grid-column: 1 / -1;
  margin-top: -6px;
  padding-top: 14px;
  border-top: 1px dashed #d8dadd;
  color: #7a838c;
  font-size: 13px;
}

.node-member-paywall__reply-tip a {
  margin-left: 4px;
  color: #ff5538;
  font-weight: 700;
}

html[data-theme="dark"] .node-member-paywall {
  border-color: #343a40;
  background: #202428;
}

html[data-theme="dark"] .node-member-paywall__label {
  color: #a5adb5;
}

html[data-theme="dark"] .node-member-paywall__price em {
  color: #e5e7eb;
}

html[data-theme="dark"] .node-member-paywall__note {
  color: #e3a06d;
}

html[data-theme="dark"] .node-member-paywall__reply-tip {
  border-top-color: #3d444b;
  color: #a4abb2;
}

@media (max-width: 1050px) {
  .node-member-paywall {
    gap: 22px;
  }

  .node-member-paywall__button {
    width: 165px;
  }
}

@media (max-width: 820px) {
  .node-member-paywall {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .node-member-paywall__actions {
    justify-content: flex-start;
  }

  .node-member-paywall__actions form,
  .node-member-paywall__button {
    flex: 1 1 0;
    width: auto;
  }

  .node-member-paywall__actions form .node-member-paywall__button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .node-member-paywall {
    margin: 16px 0 20px;
    padding: 18px 15px;
    gap: 18px;
  }

  .node-member-paywall__label,
  .node-member-paywall__note {
    font-size: 15px;
  }

  .node-member-paywall__price b,
  .node-member-paywall__price.is-text {
    font-size: 25px;
  }

  .node-member-paywall__price em {
    font-size: 17px;
  }

  .node-member-paywall__note {
    margin-top: 12px;
  }

  .node-member-paywall__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .node-member-paywall__actions form,
  .node-member-paywall__button {
    width: 100%;
  }

  .node-member-paywall__button {
    min-height: 48px;
    padding: 0 10px;
    font-size: 16px;
  }
}

/* Sidebar member summary card */
.sidebar-member-card{margin-bottom:12px;padding:14px;background:var(--bg-secondary,#fff);border:1px solid var(--border,#e4e6e6);border-radius:14px;box-shadow:0 5px 18px rgba(34,42,48,.08)}
.sidebar-member-head{display:flex;align-items:center;gap:12px;color:var(--text-primary,var(--ink));min-width:0}
.sidebar-member-avatar{flex:0 0 54px;width:54px;height:54px;border-radius:11px;overflow:hidden;display:grid;place-items:center;background:#e9c96f;color:#fff;font-size:22px;font-weight:800;box-shadow:inset 0 0 0 1px rgba(0,0,0,.04)}
.sidebar-member-avatar img{width:100%;height:100%;object-fit:cover}
.sidebar-member-identity{min-width:0;display:grid;gap:3px}
.sidebar-member-identity strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:19px;line-height:1.25;font-weight:700}
.sidebar-member-identity small{font-size:12px;color:var(--text-secondary,#777)}
.sidebar-member-identity small b{color:#d4553f;font-weight:800}
.sidebar-member-stats{margin-top:13px;padding:9px 8px;display:grid;grid-template-columns:1fr 1fr;gap:1px 8px;background:#fffed8;border:1px solid #f0edb8;border-radius:9px;box-shadow:0 2px 7px rgba(74,67,22,.08)}
.sidebar-member-stats>a,.sidebar-member-stats form,.sidebar-member-stats button{min-width:0}
.sidebar-member-stats>a,.sidebar-member-stats button{width:100%;height:29px;padding:0 2px;border:0;background:transparent;display:flex;align-items:center;gap:5px;color:#333;text-align:left;cursor:pointer;border-radius:5px}
.sidebar-member-stats>a:hover,.sidebar-member-stats button:hover{background:rgba(255,255,255,.72);color:var(--green,#2da44e)}
.sidebar-member-stats button:disabled{cursor:default;opacity:.68}
.sidebar-member-stats span{width:17px;text-align:center;font-size:15px;line-height:1}
.sidebar-member-stats em{font-style:normal;color:#d4553f;font-weight:700;white-space:nowrap}
.sidebar-member-stats b{font-size:13px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar-member-login{display:block;margin-top:12px;height:34px;line-height:34px;text-align:center;border-radius:6px;background:var(--green,#2da44e);color:#fff;font-weight:700}
.node-sidebar-profile>.publish-button{height:42px;padding:0;display:flex;align-items:center;justify-content:center;font-size:15px;border-radius:7px}
html[data-theme="dark"] .sidebar-member-stats{background:#343526;border-color:#4c4d36}
html[data-theme="dark"] .sidebar-member-stats>a,html[data-theme="dark"] .sidebar-member-stats button{color:var(--text-primary,#eee)}
@media(max-width:860px){.sidebar-member-card{display:none}}
\n\n/* 2026-07-29: sidebar member card refinement */\n.sidebar-member-card{position:relative}\n.sidebar-member-publish{position:absolute;top:15px;right:15px;color:var(--text-primary,var(--ink));font-size:13px;font-weight:700;line-height:1.4;white-space:nowrap}\n.sidebar-member-publish:hover{color:var(--green,#2da44e)}\n.sidebar-member-card .sidebar-member-head{padding-right:82px}\n.sidebar-member-identity small b,.sidebar-member-stats em{color:inherit}\n.sidebar-member-stats em{font-weight:700}\n.node-sidebar-profile>.publish-button{display:none}\n\n.sidebar-member-guest{padding:15px 16px 16px;border-radius:0}\n.sidebar-guest-title{display:block;color:var(--text-primary,var(--ink));font-size:17px;line-height:1.35;font-weight:800}\n.sidebar-guest-copy{margin:7px 0 10px;color:var(--text-secondary,#777);font-size:14px;line-height:1.55}\n.sidebar-guest-actions{display:flex;align-items:center;justify-content:center;gap:12px}\n.sidebar-guest-actions a{min-width:92px;height:34px;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;border-radius:5px;background:var(--green,#2da44e);color:#fff;font-size:14px;font-weight:700;line-height:1;text-align:center;box-shadow:inset 0 -1px 0 rgba(0,0,0,.08)}\n.sidebar-guest-actions a:hover{color:#fff;filter:brightness(.95)}\nhtml[data-theme="dark"] .sidebar-member-publish{color:var(--text-primary,#eee)}\nhtml[data-theme="dark"] .sidebar-guest-copy{color:var(--text-secondary,#aaa)}\n

/* 2026-07-29: compact sidebar member card and publish resource toolbar */
.sidebar-member-card .sidebar-member-head{
  display:flex;
  align-items:center;
  gap:12px;
  padding-right:0;
}
.sidebar-member-card .sidebar-member-avatar{
  flex:0 0 auto;
}
.sidebar-member-card .sidebar-member-identity{
  min-width:0;
  flex:1;
  display:grid;
  gap:4px;
}
.sidebar-member-name-row{
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.sidebar-member-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--text-primary,var(--ink));
  font-size:20px;
  font-weight:700;
  line-height:1.2;
}
.sidebar-member-name:hover{color:var(--green,#2da44e)}
.sidebar-member-publish{
  position:static;
  flex:0 0 auto;
  color:var(--text-primary,var(--ink));
  font-size:13px;
  font-weight:500;
  line-height:1.4;
  white-space:nowrap;
}
.sidebar-member-identity small{
  color:var(--text-secondary,#7b858c);
  font-size:12px;
  font-weight:400;
  line-height:1.4;
}
.sidebar-member-identity small b{font-weight:600}
.sidebar-member-stats>a,.sidebar-member-stats button{
  gap:5px;
  font-size:13px;
  font-weight:400;
}
.sidebar-member-stats em{
  color:inherit;
  font-size:13px;
  font-weight:500;
}
.sidebar-member-stats b{
  font-size:13px;
  font-weight:400;
}

.publish-resource-tools{
  padding:10px 12px;
}
.publish-resource-tools__head{
  display:block;
}
.publish-resource-actions{
  width:100%;
  gap:8px;
}
.publish-resource-actions button{
  min-height:36px;
  padding:0 13px;
}

@media(max-width:1100px){
  .sidebar-member-name{font-size:18px}
  .sidebar-member-publish{font-size:12px}
}


/* 2026-07-29: member card polish and restored horizontal resource toolbar */
.sidebar-member-publish{
  min-height:30px;
  padding:0 11px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(45,164,78,.42);
  border-radius:6px;
  background:rgba(45,164,78,.08);
  color:var(--green,#2da44e);
  font-size:12px;
  font-weight:600;
}
.sidebar-member-publish:hover{
  border-color:var(--green,#2da44e);
  background:var(--green,#2da44e);
  color:#fff;
}
.sidebar-member-stats>a,.sidebar-member-stats button{
  gap:6px;
  font-size:13px;
  font-weight:400;
}
.sidebar-member-stats .member-stat-icon{
  flex:0 0 16px;
  width:16px;
  height:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#60676c;
}
.sidebar-member-stats .member-stat-icon svg{
  width:16px;
  height:16px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.sidebar-member-stats>a:hover .member-stat-icon,.sidebar-member-stats button:hover .member-stat-icon{color:var(--green,#2da44e)}
.sidebar-member-stats em{font-weight:400}
.sidebar-member-stats b{font-weight:400}

.publish-resource-tools{
  padding:12px;
}
.publish-resource-tools__head{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:0;
  flex-wrap:nowrap;
}
.publish-resource-actions{
  width:auto;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.publish-resource-actions button{
  min-height:36px;
  padding:0 11px;
}
html[data-theme="dark"] .sidebar-member-publish{background:rgba(67,182,99,.10);border-color:rgba(67,182,99,.38);color:#6fd58d}
html[data-theme="dark"] .sidebar-member-publish:hover{background:var(--green,#2da44e);color:#fff}
html[data-theme="dark"] .sidebar-member-stats .member-stat-icon{color:#aab0b4}
@media(max-width:760px){
  .publish-resource-tools__head{align-items:stretch}
  .publish-resource-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .publish-resource-actions button{justify-content:center}
}
@media(max-width:420px){.publish-resource-actions{grid-template-columns:1fr}}

/* 2026-07-29: horizontal editor tools + modern guest prompt card */
.publish-resource-tools{
  padding:12px 14px;
  overflow:hidden;
}
.publish-resource-tools__head{
  display:block;
  width:100%;
}
.publish-resource-actions{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:nowrap;
  gap:10px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:1px 1px 5px;
  scrollbar-width:thin;
  -webkit-overflow-scrolling:touch;
}
.publish-resource-actions button{
  flex:0 0 auto;
  width:auto;
  min-width:0;
  min-height:38px;
  padding:0 15px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  white-space:nowrap;
  border-radius:9px;
}
.publish-resource-actions button>span{
  flex:0 0 auto;
  font-size:17px;
}
.publish-resource-actions b{
  flex:0 0 auto;
}
.publish-resource-actions .publish-access-button{
  margin-left:0;
}

.sidebar-member-card.sidebar-member-guest{
  padding:24px;
  border:1px solid var(--border,#e8ebed);
  border-radius:12px;
  background:var(--bg-secondary,#fff);
  box-shadow:0 4px 12px rgba(0,0,0,.05);
}
.sidebar-guest-title{
  display:block;
  margin:0 0 10px;
  color:var(--text-primary,#2c3e50);
  font-size:18px;
  font-weight:700;
  line-height:1.35;
  letter-spacing:.01em;
}
.sidebar-guest-copy{
  margin:0 0 18px;
  color:var(--text-secondary,#6c757d);
  font-size:14px;
  font-weight:400;
  line-height:1.6;
}
.sidebar-guest-actions{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
}
.sidebar-guest-actions .sidebar-guest-button{
  flex:1 1 0;
  min-width:0;
  height:38px;
  padding:0 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid transparent;
  border-radius:8px;
  font-size:14px;
  font-weight:650;
  line-height:1;
  text-align:center;
  text-decoration:none;
  box-shadow:none;
  transition:all .3s ease;
}
.sidebar-guest-actions .sidebar-guest-button--primary{
  border-color:var(--green,#2da44e);
  background:var(--green,#2da44e);
  color:#fff;
}
.sidebar-guest-actions .sidebar-guest-button--primary:hover{
  color:#fff;
  filter:brightness(.94);
  transform:translateY(-1px);
  box-shadow:0 6px 14px rgba(45,164,78,.18);
}
.sidebar-guest-actions .sidebar-guest-button--secondary{
  border-color:rgba(45,164,78,.42);
  background:rgba(45,164,78,.05);
  color:var(--green,#2da44e);
}
.sidebar-guest-actions .sidebar-guest-button--secondary:hover{
  border-color:var(--green,#2da44e);
  background:rgba(45,164,78,.11);
  color:var(--green,#2da44e);
  transform:translateY(-1px);
}
.sidebar-guest-actions .sidebar-guest-button:focus-visible{
  outline:3px solid rgba(45,164,78,.2);
  outline-offset:2px;
}
html[data-theme="dark"] .sidebar-member-card.sidebar-member-guest{
  border-color:#343a40;
  background:var(--bg-secondary,#202428);
  box-shadow:0 4px 12px rgba(0,0,0,.18);
}
html[data-theme="dark"] .sidebar-guest-title{color:var(--text-primary,#f2f4f5)}
html[data-theme="dark"] .sidebar-guest-copy{color:var(--text-secondary,#aab1b7)}
html[data-theme="dark"] .sidebar-guest-actions .sidebar-guest-button--secondary{
  background:rgba(67,182,99,.08);
  border-color:rgba(111,213,141,.42);
  color:#6fd58d;
}

@media(max-width:760px){
  .publish-resource-actions{
    display:flex;
    flex-wrap:nowrap;
    width:100%;
    gap:8px;
  }
  .publish-resource-actions button{
    min-height:36px;
    padding:0 12px;
  }
}
@media(max-width:420px){
  .publish-resource-actions{display:flex;grid-template-columns:none}
  .sidebar-member-card.sidebar-member-guest{padding:20px}
  .sidebar-guest-actions{gap:8px}
  .sidebar-guest-actions .sidebar-guest-button{height:36px;padding:0 12px}
}

/* 2026-07-29: compact horizontal publish editor toolbar */
.publish-resource-tools {
  padding: 10px 16px;
  overflow: visible;
}

.publish-resource-tools__head {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.publish-resource-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: visible;
}

.publish-resource-actions button,
.publish-resource-actions .publish-access-button {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .publish-resource-tools {
    padding: 10px 12px;
  }

  .publish-resource-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .publish-resource-actions button,
  .publish-resource-actions .publish-access-button {
    width: auto;
    min-height: 34px;
    padding: 0 11px;
  }
}

/* 2026-07-29 v8: force the resource controls into a true horizontal flex row. */
.publish-resource-tools {
  padding: 10px 16px !important;
}

.publish-resource-tools > .publish-resource-tools__head {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-width: 0 !important;
}

.publish-resource-tools > .publish-resource-tools__head > .publish-resource-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.publish-resource-tools > .publish-resource-tools__head > .publish-resource-actions > button {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 14px !important;
  white-space: nowrap !important;
}

@media (max-width: 760px) {
  .publish-resource-tools {
    padding: 10px 12px !important;
  }
  .publish-resource-tools > .publish-resource-tools__head > .publish-resource-actions {
    gap: 8px !important;
  }
  .publish-resource-tools > .publish-resource-tools__head > .publish-resource-actions > button {
    width: auto !important;
    padding: 0 11px !important;
  }
}

/* 2026-07-29: refined compact hidden-content banner */
.node-member-paywall {
  margin: 16px 0 20px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--border, #e3e7ea);
  border-radius: 10px;
  background: var(--bg-secondary, #f8f9fa);
  box-shadow: 0 3px 12px rgba(22, 31, 38, .04);
}

.node-member-paywall__content {
  min-width: 0;
  flex: 1 1 auto;
}

.node-member-paywall__heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  line-height: 1.25;
}

.node-member-paywall__label {
  color: #7a838c;
  font-size: 13px;
  font-weight: 400;
}

.node-member-paywall__title {
  margin: 0;
  color: var(--text-primary, #333);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.25;
}

.node-member-paywall__points {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--text-primary, #333);
}

.node-member-paywall__points b {
  color: #ff5a36;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.node-member-paywall__points em {
  color: var(--text-primary, #333);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
}

.node-member-paywall__note {
  margin: 5px 0 0;
  color: #777;
  font-size: 13px;
  line-height: 1.45;
}

.node-member-paywall__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.node-member-paywall__actions form {
  margin: 0;
  display: inline-flex;
}

.node-member-paywall__button,
.node-member-paywall__actions form .node-member-paywall__button {
  width: auto;
  min-width: 86px;
  min-height: 0;
  height: 36px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #ffffff !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.node-member-paywall__button.is-login {
  background: var(--green, #2fa36b);
  border-color: var(--green, #2fa36b);
  color: #ffffff !important;
}

.node-member-paywall__button.is-primary {
  background: #ff5a3c;
  border-color: #ff5a3c;
  color: #ffffff !important;
}

.node-member-paywall__button.is-disabled {
  background: #aeb5bc;
  border-color: #aeb5bc;
  color: #ffffff !important;
}

.node-member-paywall__button:hover {
  color: #ffffff !important;
  filter: brightness(.95);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(24, 32, 38, .10);
}

.node-member-paywall__button:focus-visible {
  outline: 3px solid rgba(47, 163, 107, .22);
  outline-offset: 2px;
}

.node-member-paywall__reply-tip {
  flex: 1 0 100%;
  margin: 0;
  padding-top: 9px;
  border-top: 1px dashed var(--border, #dde2e6);
  color: #777;
  font-size: 12px;
  line-height: 1.45;
}

html[data-theme="dark"] .node-member-paywall {
  border-color: #3a4147;
  background: #22272b;
  box-shadow: none;
}

html[data-theme="dark"] .node-member-paywall__title,
html[data-theme="dark"] .node-member-paywall__points,
html[data-theme="dark"] .node-member-paywall__points em {
  color: #eef1f3;
}

html[data-theme="dark"] .node-member-paywall__label,
html[data-theme="dark"] .node-member-paywall__note,
html[data-theme="dark"] .node-member-paywall__reply-tip {
  color: #a7afb6;
}

@media (max-width: 720px) {
  .node-member-paywall {
    padding: 12px 13px;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px 12px;
  }

  .node-member-paywall__content {
    flex: 1 1 100%;
  }

  .node-member-paywall__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .node-member-paywall__actions form {
    width: auto;
    flex: 0 0 auto;
  }

  .node-member-paywall__button,
  .node-member-paywall__actions form .node-member-paywall__button {
    width: auto;
    min-width: 82px;
    height: 34px;
    padding: 0 14px;
  }
}

/* 2026-07-29 v11: compact download resource card */
.member-assets-panel {
    margin: 18px 0;
}

.member-asset-stack {
    gap: 10px;
    padding: 0;
}

.member-download-box.member-download-box--asset {
    display: block;
    padding: 16px 20px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 12px;
    background: var(--member-surface);
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}

.member-download-box--asset .member-download-offer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.member-download-box--asset .member-download-copy {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.member-download-primary-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}

.member-download-box--asset .member-download-source {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: var(--member-text);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
}

.member-download-source-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    border-radius: 6px;
    background: var(--member-accent-soft);
    color: var(--member-accent);
}

.member-download-source-icon svg {
    width: 14px;
    height: 14px;
    display: block;
}

.member-download-box--asset .member-download-price-line {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 6px;
}

.member-download-box--asset .member-download-label {
    color: var(--member-muted);
    font-size: 12px;
    line-height: 1.4;
}

.member-download-box--asset .member-download-price {
    display: inline-flex;
    align-items: baseline;
    color: var(--member-accent);
    line-height: 1;
}

.member-download-box--asset .member-download-price b {
    font-size: 22px;
    line-height: 1;
    font-weight: 800;
}

.member-download-box--asset .member-download-price em {
    margin-left: 4px;
    color: var(--member-muted);
    font-size: 12px;
    font-weight: 600;
}

.member-download-box--asset .member-download-note {
    margin: 0;
    color: #888;
    font-size: 12px;
    line-height: 1.5;
}

.member-download-box--asset .member-download-side {
    flex: 0 0 auto;
}

.member-download-box--asset .member-download-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.member-download-box--asset .member-download-actions form {
    margin: 0;
}

.member-download-box--asset .member-button,
.member-download-box--asset .member-download-actions button {
    width: auto;
    min-width: 0;
    min-height: 36px;
    height: 36px;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}

.member-download-box--asset .member-button:not(.secondary):not(.disabled),
.member-download-box--asset .member-download-actions button {
    background: var(--member-accent);
    color: #fff !important;
}

.member-download-box--asset .member-button.secondary {
    border: 1px solid var(--member-border);
    background: var(--member-surface-muted);
    color: var(--member-text);
}

.member-download-box--asset .member-button:hover,
.member-download-box--asset .member-download-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(15, 23, 42, .10);
}

html[data-theme="dark"] .member-download-box.member-download-box--asset {
    border-color: rgba(255, 255, 255, .09);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
}

html[data-theme="dark"] .member-download-box--asset .member-download-note {
    color: var(--member-muted);
}

@media (max-width: 680px) {
    .member-download-box.member-download-box--asset {
        padding: 14px 16px;
    }

    .member-download-box--asset .member-download-offer {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .member-download-box--asset .member-download-side,
    .member-download-box--asset .member-download-actions {
        width: 100%;
    }

    .member-download-box--asset .member-download-actions {
        justify-content: flex-start;
    }
}

/* 2026-07-29 v13: isolated compact download resource box */
.node-resource-list {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 18px 0;
  padding: 0;
}

.node-resource-box,
.node-resource-box *,
.node-resource-box *::before,
.node-resource-box *::after {
  box-sizing: border-box;
}

.node-resource-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-height: 76px;
  margin: 0;
  padding: 16px 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e7e9ec;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(20, 30, 45, .04);
}

.node-resource-box__info {
  flex: 1 1 auto;
  min-width: 0;
}

.node-resource-box__topline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
  line-height: 1.3;
}

.node-resource-box__icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 28px !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #2fa562;
  background: #eef9f2;
  border: 0 !important;
  border-radius: 7px;
  line-height: 1 !important;
  transform: none !important;
}

.node-resource-box__icon svg {
  display: block !important;
  flex: none !important;
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  min-height: 17px !important;
  max-width: 17px !important;
  max-height: 17px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  transform: none !important;
}

.node-resource-box__name {
  margin: 0 7px 0 0;
  color: #30343b;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.node-resource-box__price-label {
  color: #8a9099;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}

.node-resource-box__price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: #59616b;
  white-space: nowrap;
}

.node-resource-box__price strong {
  color: #22a559;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.node-resource-box__price span {
  color: #68717c;
  font-size: 13px;
  font-weight: 500;
}

.node-resource-box__price.is-free strong {
  font-size: 15px;
}

.node-resource-box__description {
  margin: 6px 0 0 !important;
  padding: 0 !important;
  color: #888f98;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.node-resource-box__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.node-resource-box__form {
  display: inline-flex;
  margin: 0 !important;
  padding: 0 !important;
}

.node-resource-box__button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 88px;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1 !important;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.node-resource-box__button--secondary {
  color: #3e4650 !important;
  background: #f7f8f9 !important;
  border-color: #dfe3e7 !important;
}

.node-resource-box__button--secondary:hover {
  color: #249555 !important;
  background: #f0f8f3 !important;
  border-color: #9dd4b2 !important;
  box-shadow: 0 4px 10px rgba(36, 149, 85, .08);
  transform: translateY(-1px);
}

.node-resource-box__button--primary,
.node-resource-box__button--primary:link,
.node-resource-box__button--primary:visited,
.node-resource-box__button--primary:hover,
.node-resource-box__button--primary:active {
  color: #fff !important;
}

.node-resource-box__button--primary {
  background: #2fa562 !important;
  border-color: #2fa562 !important;
  box-shadow: 0 4px 10px rgba(47, 165, 98, .16);
}

.node-resource-box__button--primary:hover {
  background: #278f54 !important;
  border-color: #278f54 !important;
  box-shadow: 0 6px 14px rgba(47, 165, 98, .22);
  transform: translateY(-1px);
}

.node-resource-box__button--disabled {
  color: #9aa1a8 !important;
  background: #f2f3f4 !important;
  border-color: #e1e4e7 !important;
  cursor: not-allowed;
}

.node-resource-box__button:focus-visible {
  outline: 3px solid rgba(47, 165, 98, .2);
  outline-offset: 2px;
}

html[data-theme="dark"] .node-resource-box,
html.dark .node-resource-box,
body.dark .node-resource-box,
[data-theme="dark"] .node-resource-box {
  background: #202329;
  border-color: #343840;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
}

html[data-theme="dark"] .node-resource-box__name,
html.dark .node-resource-box__name,
body.dark .node-resource-box__name,
[data-theme="dark"] .node-resource-box__name {
  color: #edf0f3;
}

html[data-theme="dark"] .node-resource-box__price-label,
html[data-theme="dark"] .node-resource-box__description,
html.dark .node-resource-box__price-label,
html.dark .node-resource-box__description,
body.dark .node-resource-box__price-label,
body.dark .node-resource-box__description,
[data-theme="dark"] .node-resource-box__price-label,
[data-theme="dark"] .node-resource-box__description {
  color: #9da4ad;
}

@media (max-width: 760px) {
  .node-resource-box {
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
  }

  .node-resource-box__actions {
    gap: 8px;
  }

  .node-resource-box__button {
    min-width: 78px;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    padding: 0 13px !important;
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  .node-resource-box {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }

  .node-resource-box__name {
    width: calc(100% - 42px);
    margin-right: 0;
  }

  .node-resource-box__actions {
    justify-content: flex-start;
    width: 100%;
  }
}

/* 2026-07-29 v14: isolated unlocked resource page (do not reuse generic member/download selectors) */
.node-unlocked-page,
.node-unlocked-page *,
.node-unlocked-page *::before,
.node-unlocked-page *::after {
  box-sizing: border-box;
}

.node-unlocked-page {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 28px 18px 52px;
  color: #2f343b;
}

.node-unlocked-card {
  width: 100%;
  padding: 24px;
  background: #fff;
  border: 1px solid #e6e9ec;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(25, 35, 50, .05);
}

.node-unlocked-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.node-unlocked-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.node-unlocked-check {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 32px !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff;
  background: #2fa562;
  border: 0 !important;
  border-radius: 50%;
  line-height: 1 !important;
  transform: none !important;
}

.node-unlocked-check svg,
.node-unlocked-clock svg,
.node-unlocked-copy-icon svg {
  display: block !important;
  flex: none !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  transform: none !important;
}

.node-unlocked-title-row h1 {
  margin: 0 !important;
  padding: 0 !important;
  color: #2d333a;
  font-size: 27px;
  font-weight: 750;
  line-height: 1.25;
}

.node-unlocked-expiry {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  color: #7d858e;
  font-size: 13px;
  line-height: 1.6;
}

.node-unlocked-clock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8a929b;
}

.node-unlocked-expiry strong {
  color: #2fa562;
  font-size: 15px;
  font-weight: 800;
}

.node-unlocked-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 12px;
  color: #278f54;
  background: #eef8f2;
  border: 1px solid #dcefe3;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.node-unlocked-resource {
  padding-top: 20px;
  border-top: 1px solid #edf0f2;
}

.node-unlocked-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.node-unlocked-meta strong {
  color: #30363d;
  font-size: 16px;
  font-weight: 700;
}

.node-unlocked-meta span {
  color: #8a929b;
  font-size: 13px;
}

.node-unlocked-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 12px 14px 12px 16px;
  background: #f5faf7;
  border: 1px solid #dcefe3;
  border-radius: 10px;
}

.node-unlocked-code-label {
  color: #66707a;
  font-size: 13px;
  font-weight: 600;
}

.node-unlocked-code-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.node-unlocked-code-action code {
  margin: 0 !important;
  padding: 0 !important;
  color: #249555;
  background: transparent !important;
  border: 0 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .08em;
}

.node-unlocked-copy {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  width: auto !important;
  min-width: 86px;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  color: #278f54 !important;
  background: #fff !important;
  border: 1px solid #9dd4b2 !important;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1 !important;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.node-unlocked-copy:hover,
.node-unlocked-copy.is-copied {
  color: #fff !important;
  background: #2fa562 !important;
  border-color: #2fa562 !important;
  box-shadow: 0 5px 12px rgba(47, 165, 98, .16);
  transform: translateY(-1px);
}

.node-unlocked-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.node-unlocked-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px;
  width: auto !important;
  min-width: 132px;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 1px solid transparent !important;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1 !important;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: color .22s ease, background-color .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.node-unlocked-button--primary,
.node-unlocked-button--primary:link,
.node-unlocked-button--primary:visited,
.node-unlocked-button--primary:hover,
.node-unlocked-button--primary:active {
  color: #fff !important;
}

.node-unlocked-button--primary {
  background: #2fa562 !important;
  border-color: #2fa562 !important;
  box-shadow: 0 6px 14px rgba(47, 165, 98, .18);
}

.node-unlocked-button--primary:hover {
  background: #278f54 !important;
  border-color: #278f54 !important;
  box-shadow: 0 8px 18px rgba(47, 165, 98, .24);
  transform: translateY(-1px);
}

.node-unlocked-button--secondary {
  color: #3f4750 !important;
  background: #f7f8f9 !important;
  border-color: #dfe3e7 !important;
}

.node-unlocked-button--secondary:hover {
  color: #278f54 !important;
  background: #f0f8f3 !important;
  border-color: #9dd4b2 !important;
  transform: translateY(-1px);
}

.node-unlocked-button--disabled {
  color: #8c949d !important;
  background: #f2f3f4 !important;
  border-color: #e2e5e8 !important;
  cursor: not-allowed;
}

.node-unlocked-copy:focus-visible,
.node-unlocked-button:focus-visible {
  outline: 3px solid rgba(47, 165, 98, .2);
  outline-offset: 2px;
}

html[data-theme="dark"] .node-unlocked-card,
html.dark .node-unlocked-card,
body.dark .node-unlocked-card,
[data-theme="dark"] .node-unlocked-card {
  color: #e7eaed;
  background: #202329;
  border-color: #343840;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

html[data-theme="dark"] .node-unlocked-title-row h1,
html[data-theme="dark"] .node-unlocked-meta strong,
html.dark .node-unlocked-title-row h1,
html.dark .node-unlocked-meta strong,
body.dark .node-unlocked-title-row h1,
body.dark .node-unlocked-meta strong,
[data-theme="dark"] .node-unlocked-title-row h1,
[data-theme="dark"] .node-unlocked-meta strong {
  color: #f1f3f5;
}

html[data-theme="dark"] .node-unlocked-resource,
html.dark .node-unlocked-resource,
body.dark .node-unlocked-resource,
[data-theme="dark"] .node-unlocked-resource {
  border-color: #343840;
}

html[data-theme="dark"] .node-unlocked-code,
html.dark .node-unlocked-code,
body.dark .node-unlocked-code,
[data-theme="dark"] .node-unlocked-code {
  background: rgba(47, 165, 98, .08);
  border-color: rgba(90, 190, 130, .24);
}

html[data-theme="dark"] .node-unlocked-copy,
html.dark .node-unlocked-copy,
body.dark .node-unlocked-copy,
[data-theme="dark"] .node-unlocked-copy {
  background: #272b31 !important;
}

@media (max-width: 640px) {
  .node-unlocked-page {
    padding: 18px 12px 36px;
  }

  .node-unlocked-card {
    padding: 18px;
    border-radius: 12px;
  }

  .node-unlocked-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
  }

  .node-unlocked-title-row h1 {
    font-size: 23px;
  }

  .node-unlocked-badge {
    min-height: 28px;
  }

  .node-unlocked-resource {
    padding-top: 16px;
  }

  .node-unlocked-code {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .node-unlocked-code-action {
    justify-content: space-between;
    width: 100%;
  }

  .node-unlocked-actions {
    gap: 9px;
  }

  .node-unlocked-button {
    min-width: 0;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 0 14px !important;
  }
}

/* 2026-07-29 v15: single-line compact member paywall */
.node-member-paywall.node-member-paywall--inline {
  min-height: 0;
  padding: 11px 14px;
  gap: 14px;
  align-items: center;
}

.node-member-paywall--inline .node-member-paywall__content {
  min-width: 0;
  flex: 1 1 auto;
}

.node-member-paywall__inline-info {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 7px;
  min-width: 0;
  line-height: 1.25;
}

.node-member-paywall--inline .node-member-paywall__label {
  flex: 0 0 auto;
  color: #747d86;
  font-size: 13px;
  white-space: nowrap;
}

.node-member-paywall--inline .node-member-paywall__points {
  flex: 0 0 auto;
  gap: 3px;
}

.node-member-paywall--inline .node-member-paywall__points b {
  color: #ff5a36;
  font-size: 20px;
  line-height: 1;
}

.node-member-paywall--inline .node-member-paywall__points em {
  font-size: 13px;
  font-weight: 600;
}

.node-member-paywall__access-text {
  color: var(--text-primary, #30343b);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.node-member-paywall__inline-note {
  min-width: 0;
  color: var(--green, #2fa36b);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.node-member-paywall--inline .node-member-paywall__actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 8px;
}

.node-member-paywall__vip-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 32px;
  padding: 0 11px;
  border: 1px solid #e86a58;
  border-radius: 5px;
  background: transparent;
  color: #d9534f !important;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  box-sizing: border-box;
}

.node-member-paywall__vip-link:hover {
  background: rgba(232, 106, 88, .07);
  color: #c8483e !important;
}

.node-member-paywall--inline .node-member-paywall__button,
.node-member-paywall--inline .node-member-paywall__actions form .node-member-paywall__button {
  min-width: 62px;
  width: auto;
  height: 32px;
  padding: 0 14px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
}

.node-member-paywall__button.is-login-compact,
.node-member-paywall__button.is-primary-compact {
  border-color: #f2b400;
  background: #f6bd17;
  color: #ffffff !important;
}

.node-member-paywall__button.is-disabled-compact {
  border-color: #aeb5bc;
  background: #aeb5bc;
  color: #ffffff !important;
}

.node-member-paywall__button.is-login-compact:hover,
.node-member-paywall__button.is-primary-compact:hover {
  background: #e6aa00;
  border-color: #e6aa00;
  color: #ffffff !important;
}

html[data-theme="dark"] .node-member-paywall__access-text {
  color: #eef1f3;
}

html[data-theme="dark"] .node-member-paywall__inline-note {
  color: #69c98d;
}

html[data-theme="dark"] .node-member-paywall__vip-tag {
  border-color: #d06c60;
  color: #ef8b7e !important;
}

@media (max-width: 720px) {
  .node-member-paywall.node-member-paywall--inline {
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 9px 12px;
  }

  .node-member-paywall--inline .node-member-paywall__content {
    flex: 1 1 100%;
  }

  .node-member-paywall--inline .node-member-paywall__actions {
    width: auto;
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .node-member-paywall__inline-info {
    gap: 4px 6px;
  }

  .node-member-paywall__inline-note {
    white-space: normal;
  }
}


/* 2026-07-29 v16: reply-visible label */
.node-member-paywall--inline .node-member-paywall__access-text {
  color: #e05245 !important;
}

html[data-theme="dark"] .node-member-paywall--inline .node-member-paywall__access-text,
body.dark .node-member-paywall--inline .node-member-paywall__access-text,
[data-theme="dark"] .node-member-paywall--inline .node-member-paywall__access-text {
  color: #ff7a6d !important;
}

/* 2026-07-29 v17: compact mobile layout for paywall and resource cards */
@media (max-width: 720px) {
  /* Hidden-content prompt: keep information and actions on one row. */
  .node-member-paywall.node-member-paywall--inline {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    min-height: 0 !important;
    padding: 11px 12px !important;
  }

  .node-member-paywall--inline .node-member-paywall__content {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }

  .node-member-paywall__inline-info {
    display: flex !important;
    align-items: baseline !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    white-space: nowrap !important;
  }

  .node-member-paywall--inline .node-member-paywall__label {
    font-size: 13px !important;
  }

  .node-member-paywall--inline .node-member-paywall__points b {
    font-size: 22px !important;
  }

  .node-member-paywall--inline .node-member-paywall__points em,
  .node-member-paywall--inline .node-member-paywall__access-text {
    font-size: 13px !important;
  }

  .node-member-paywall--inline .node-member-paywall__actions {
    display: flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 7px !important;
  }

  .node-member-paywall__vip-tag {
    height: 32px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  .node-member-paywall--inline .node-member-paywall__button,
  .node-member-paywall--inline .node-member-paywall__actions form .node-member-paywall__button {
    width: auto !important;
    min-width: 62px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 13px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  /* Resource card: preserve a compact left/right row on mobile. */
  .node-resource-box {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    min-height: 0 !important;
    padding: 12px !important;
  }

  .node-resource-box__info {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .node-resource-box__topline {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 4px 6px !important;
  }

  .node-resource-box__icon {
    flex-basis: 26px !important;
    width: 26px !important;
    height: 26px !important;
  }

  .node-resource-box__icon svg {
    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
    max-width: 15px !important;
    min-height: 15px !important;
    max-height: 15px !important;
  }

  .node-resource-box__name {
    width: auto !important;
    margin-right: 4px !important;
    font-size: 14px !important;
  }

  .node-resource-box__price-label,
  .node-resource-box__price span {
    font-size: 12px !important;
  }

  .node-resource-box__price strong {
    font-size: 21px !important;
  }

  .node-resource-box__description {
    margin-top: 4px !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  .node-resource-box__actions {
    display: flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 7px !important;
  }

  .node-resource-box__button {
    width: auto !important;
    min-width: 64px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 430px) {
  .node-member-paywall.node-member-paywall--inline,
  .node-resource-box {
    gap: 7px !important;
    padding: 10px !important;
  }

  .node-member-paywall--inline .node-member-paywall__label,
  .node-member-paywall--inline .node-member-paywall__points em,
  .node-member-paywall--inline .node-member-paywall__access-text {
    font-size: 12px !important;
  }

  .node-member-paywall--inline .node-member-paywall__points b,
  .node-resource-box__price strong {
    font-size: 19px !important;
  }

  .node-member-paywall__vip-tag {
    padding: 0 8px !important;
  }

  .node-member-paywall--inline .node-member-paywall__button,
  .node-member-paywall--inline .node-member-paywall__actions form .node-member-paywall__button,
  .node-resource-box__button {
    min-width: 56px !important;
    padding: 0 9px !important;
  }

  .node-resource-box__description {
    display: none !important;
  }
}

/* 2026-07-29 v18: refine points/reply typography and smaller action controls */
.node-member-paywall--inline .node-member-paywall__points em {
  color: #747d86 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.2;
}

.node-member-paywall__reply-access {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.2;
}

.node-member-paywall__reply-access strong {
  color: #e05245;
  font-size: 13px;
  font-weight: 600;
}

.node-member-paywall__reply-access span {
  color: #747d86;
  font-size: 13px;
  font-weight: 400;
}

.node-member-paywall--inline .node-member-paywall__actions {
  gap: 6px !important;
}

.node-member-paywall--inline .node-member-paywall__vip-tag {
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 9px !important;
  border-radius: 5px !important;
  font-size: 12px !important;
}

.node-member-paywall--inline .node-member-paywall__button,
.node-member-paywall--inline .node-member-paywall__actions form .node-member-paywall__button {
  width: auto !important;
  min-width: 52px !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  padding: 0 10px !important;
  border-radius: 5px !important;
  font-size: 12px !important;
  line-height: 1 !important;
}

html[data-theme="dark"] .node-member-paywall--inline .node-member-paywall__points em,
body.dark .node-member-paywall--inline .node-member-paywall__points em,
[data-theme="dark"] .node-member-paywall--inline .node-member-paywall__points em,
html[data-theme="dark"] .node-member-paywall__reply-access span,
body.dark .node-member-paywall__reply-access span,
[data-theme="dark"] .node-member-paywall__reply-access span {
  color: #aab1b9 !important;
}

html[data-theme="dark"] .node-member-paywall__reply-access strong,
body.dark .node-member-paywall__reply-access strong,
[data-theme="dark"] .node-member-paywall__reply-access strong {
  color: #ff7a6d !important;
}

@media (max-width: 720px) {
  .node-member-paywall--inline .node-member-paywall__points em,
  .node-member-paywall__reply-access,
  .node-member-paywall__reply-access strong,
  .node-member-paywall__reply-access span {
    font-size: 12px !important;
  }

  .node-member-paywall--inline .node-member-paywall__vip-tag {
    height: 26px !important;
    min-height: 26px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
  }

  .node-member-paywall--inline .node-member-paywall__button,
  .node-member-paywall--inline .node-member-paywall__actions form .node-member-paywall__button {
    min-width: 48px !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    padding: 0 9px !important;
    font-size: 11px !important;
  }
}

/* 2026-07-29 v19: resource download card - strict single-row layout */
.node-resource-box {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  min-height: 0 !important;
  padding: 13px 16px !important;
}

.node-resource-box__info {
  display: flex !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  align-items: center !important;
}

.node-resource-box__topline {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 7px !important;
  min-width: 0 !important;
  width: 100% !important;
}

.node-resource-box__name,
.node-resource-box__price-label,
.node-resource-box__price,
.node-resource-box__description {
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

.node-resource-box__name {
  margin-right: 6px !important;
}

.node-resource-box__description {
  display: inline-flex !important;
  align-items: center !important;
  margin-left: 7px !important;
  padding-left: 11px !important;
  border-left: 1px solid #e3e7ea !important;
  color: #858d96 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
}

.node-resource-box__actions {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: auto !important;
  gap: 8px !important;
}

.node-resource-box__button {
  min-width: 0 !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 13px !important;
  font-size: 13px !important;
}

html[data-theme="dark"] .node-resource-box__description,
html.dark .node-resource-box__description,
body.dark .node-resource-box__description,
[data-theme="dark"] .node-resource-box__description {
  border-left-color: #3b4149 !important;
  color: #9da4ad !important;
}

@media (max-width: 760px) {
  .node-resource-box {
    gap: 9px !important;
    padding: 11px 12px !important;
  }

  .node-resource-box__topline {
    gap: 5px !important;
  }

  .node-resource-box__description {
    margin-left: 3px !important;
    padding-left: 7px !important;
    max-width: 210px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .node-resource-box__button {
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 560px) {
  .node-resource-box__description {
    display: none !important;
  }

  .node-resource-box__name {
    margin-right: 2px !important;
  }

  .node-resource-box__icon {
    flex-basis: 25px !important;
    width: 25px !important;
    min-width: 25px !important;
    max-width: 25px !important;
    height: 25px !important;
    min-height: 25px !important;
    max-height: 25px !important;
  }
}

@media (max-width: 400px) {
  .node-resource-box {
    gap: 6px !important;
    padding: 9px !important;
  }

  .node-resource-box__price-label {
    display: none !important;
  }

  .node-resource-box__button {
    padding: 0 8px !important;
  }
}

/* 2026-07-29 v20: reduce the VIP free tag to roughly half size */
.node-member-paywall--inline .node-member-paywall__vip-tag {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  padding: 0 6px !important;
  border-radius: 4px !important;
  font-size: 11px !important;
  line-height: 22px !important;
  white-space: nowrap !important;
}

@media (max-width: 720px) {
  .node-member-paywall--inline .node-member-paywall__vip-tag {
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    padding: 0 5px !important;
    font-size: 10px !important;
    line-height: 20px !important;
  }
}

/* 2026-07-29 v21: guest resource actions - compact VIP tag + login */
.node-resource-box__vip-tag {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  padding: 0 6px !important;
  border: 1px solid #dc6259 !important;
  border-radius: 4px !important;
  color: #d85850 !important;
  background: transparent !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 22px !important;
  white-space: nowrap !important;
}

.node-resource-box__button--login {
  min-width: 52px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  padding: 0 12px !important;
  border: 1px solid #f4b916 !important;
  border-radius: 5px !important;
  color: #ffffff !important;
  background: #f4b916 !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.node-resource-box__button--login:link,
.node-resource-box__button--login:visited,
.node-resource-box__button--login:hover,
.node-resource-box__button--login:active {
  color: #ffffff !important;
}

.node-resource-box__button--login:hover {
  border-color: #dfa400 !important;
  background: #dfa400 !important;
  transform: translateY(-1px);
}

html[data-theme="dark"] .node-resource-box__vip-tag,
html.dark .node-resource-box__vip-tag,
body.dark .node-resource-box__vip-tag,
[data-theme="dark"] .node-resource-box__vip-tag {
  border-color: #e27b73 !important;
  color: #ff9289 !important;
}

@media (max-width: 720px) {
  .node-resource-box__vip-tag {
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    padding: 0 5px !important;
    font-size: 10px !important;
    line-height: 20px !important;
  }

  .node-resource-box__button--login {
    min-width: 46px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
  }
}

/* 2026-07-29 v22: logged-in normal member paywall alignment + unopened VIP state */
.node-member-paywall--member-safe {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  min-height: 0 !important;
  padding: 13px 16px !important;
}

.node-member-paywall--member-safe .node-member-paywall__content {
  display: flex !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
}

.node-member-paywall--member-safe .node-member-paywall__inline-info {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 7px !important;
  min-width: 0 !important;
  width: auto !important;
}

.node-member-paywall--member-safe .node-member-paywall__label,
.node-member-paywall--member-safe .node-member-paywall__points,
.node-member-paywall--member-safe .node-member-paywall__reply-access,
.node-member-paywall--member-safe .node-member-paywall__inline-note,
.node-member-paywall--member-safe .node-member-paywall__reply-inline,
.node-member-paywall--member-safe .node-member-paywall__reply-link {
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  white-space: nowrap !important;
}

.node-member-paywall--member-safe .node-member-paywall__inline-note {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  color: #2fa562 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.node-member-paywall--member-safe .node-member-paywall__actions {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.node-member-paywall--member-safe .node-member-paywall__actions form {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
}

.node-member-paywall--member-safe .node-member-paywall__reply-inline {
  color: #7d858e !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.node-member-paywall--member-safe .node-member-paywall__reply-link {
  color: #2f9f5f !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.node-member-paywall--member-safe .node-member-paywall__reply-link:hover {
  color: #237c49 !important;
}

.sidebar-member-identity small b.is-not-opened {
  color: #2fa562 !important;
  font-weight: 600 !important;
}

.sidebar-member-identity small b.is-active {
  color: inherit;
}

@media (max-width: 760px) {
  .node-member-paywall--member-safe {
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 9px 10px !important;
    padding: 11px 12px !important;
  }

  .node-member-paywall--member-safe .node-member-paywall__content {
    flex: 1 1 100% !important;
    width: 100% !important;
  }

  .node-member-paywall--member-safe .node-member-paywall__inline-info {
    flex-wrap: wrap !important;
    gap: 5px 6px !important;
    width: 100% !important;
  }

  .node-member-paywall--member-safe .node-member-paywall__inline-note {
    flex: 1 1 180px !important;
    white-space: normal !important;
    word-break: normal !important;
    line-height: 1.45 !important;
  }

  .node-member-paywall--member-safe .node-member-paywall__actions {
    flex: 1 1 100% !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 7px !important;
  }

  .node-member-paywall--member-safe .node-member-paywall__reply-inline {
    flex: 1 1 190px !important;
    white-space: normal !important;
    word-break: normal !important;
  }
}

@media (max-width: 480px) {
  .node-member-paywall--member-safe .node-member-paywall__inline-info {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
  }

  .node-member-paywall--member-safe .node-member-paywall__label,
  .node-member-paywall--member-safe .node-member-paywall__points,
  .node-member-paywall--member-safe .node-member-paywall__reply-access {
    flex: 0 0 auto !important;
  }

  .node-member-paywall--member-safe .node-member-paywall__inline-note {
    flex-basis: 100% !important;
    width: 100% !important;
  }
}


/* 2026-07-30 v24: paywall copy cleanup, compact mobile login, guest CTA and neutral unopened status */
.node-member-paywall--member-safe .node-member-paywall__inline-note {
  display: none !important;
}

.sidebar-member-identity small b.is-not-opened {
  color: inherit !important;
  font-weight: 600 !important;
}

.sidebar-member-guest .sidebar-guest-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
}

.sidebar-member-guest .sidebar-guest-actions .sidebar-guest-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  height: 36px !important;
  padding: 0 14px !important;
  border-radius: 7px !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

.sidebar-member-guest .sidebar-guest-actions .sidebar-guest-button--primary {
  border: 1px solid var(--green, #2da44e) !important;
  background: var(--green, #2da44e) !important;
  color: #ffffff !important;
}

.sidebar-member-guest .sidebar-guest-actions .sidebar-guest-button--secondary {
  border: 1px solid rgba(45, 164, 78, .45) !important;
  background: transparent !important;
  color: var(--green, #2da44e) !important;
}

@media (max-width: 720px) {
  .node-member-paywall--member-safe {
    flex-wrap: nowrap !important;
    gap: 8px !important;
    padding: 9px 10px !important;
  }

  .node-member-paywall--member-safe .node-member-paywall__content {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }

  .node-member-paywall--member-safe .node-member-paywall__inline-info {
    flex-wrap: nowrap !important;
    gap: 5px !important;
    width: auto !important;
  }

  .node-member-paywall--member-safe .node-member-paywall__actions {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin-left: auto !important;
    gap: 6px !important;
  }

  .node-member-paywall--member-safe .node-member-paywall__button.is-login-compact {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 46px !important;
    max-width: 56px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
  }

  .node-member-paywall--member-safe .node-member-paywall__vip-tag {
    flex: 0 0 auto !important;
  }

  .sidebar-member-card.sidebar-member-guest {
    padding: 18px !important;
  }

  .sidebar-member-guest .sidebar-guest-copy {
    margin-bottom: 14px !important;
  }

  .sidebar-member-guest .sidebar-guest-actions {
    gap: 8px !important;
  }

  .sidebar-member-guest .sidebar-guest-actions .sidebar-guest-button {
    height: 34px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 420px) {
  .node-member-paywall--member-safe .node-member-paywall__label {
    font-size: 12px !important;
  }

  .node-member-paywall--member-safe .node-member-paywall__points b {
    font-size: 18px !important;
  }

  .node-member-paywall--member-safe .node-member-paywall__points em,
  .node-member-paywall--member-safe .node-member-paywall__reply-access {
    font-size: 12px !important;
  }
}

/* 2026-07-30 v26: safe header logout; preserve all previous component styles */
.node-header-logout-form{
  display:inline-flex;
  flex:0 0 auto;
  margin:0;
  padding:0;
}
.node-header-logout{
  width:28px;
  height:28px;
  display:inline-grid;
  place-items:center;
  padding:0;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#d5523f;
  cursor:pointer;
  transition:background-color .18s ease,color .18s ease,transform .18s ease;
}
.node-header-logout:hover{
  background:rgba(213,82,63,.09);
  color:#bd3f2f;
  transform:translateY(-1px);
}
.node-header-logout:focus-visible{
  outline:2px solid rgba(213,82,63,.28);
  outline-offset:2px;
}
.node-header-logout svg{
  display:block;
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  min-height:20px!important;
  max-width:20px!important;
  max-height:20px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.8!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.node-visually-hidden{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
html[data-theme="dark"] .node-header-logout{color:#ef8c7d}
html[data-theme="dark"] .node-header-logout:hover{background:rgba(239,140,125,.12);color:#ff9d8f}

/* 2026-07-30 v26: mobile audio — full-width progress row, controls on their own row */
@media(max-width:760px){
  .node-header-logout-form{order:3}
  .node-header-logout{width:28px;height:28px}

  .node-audio-board--flat .node-audio-console{
    min-height:0!important;
    display:grid!important;
    grid-template-columns:72px minmax(0,1fr)!important;
    grid-template-areas:
      "cover topline"
      "cover lyrics"
      "progress progress"
      "controls controls"!important;
    align-items:center!important;
    column-gap:10px!important;
    row-gap:7px!important;
    padding:10px!important;
  }
  .node-audio-board--flat .node-audio-cover-small{
    grid-area:cover!important;
    align-self:start!important;
    width:72px!important;
    height:72px!important;
  }
  .node-audio-board--flat .node-audio-center{
    display:contents!important;
  }
  .node-audio-board--flat .node-audio-topline{
    grid-area:topline!important;
    align-self:end!important;
    width:100%!important;
    min-width:0!important;
  }
  .node-audio-board--flat .node-audio-lyrics{
    grid-area:lyrics!important;
    align-self:start!important;
    justify-items:start!important;
    width:100%!important;
    min-width:0!important;
    padding:0!important;
    text-align:left!important;
  }
  .node-audio-board--flat .node-audio-progress--thin{
    grid-area:progress!important;
    display:block!important;
    width:100%!important;
    min-width:0!important;
    margin:1px 0 0!important;
  }
  .node-audio-board--flat .node-audio-progress--thin input{
    display:block!important;
    width:100%!important;
    min-width:0!important;
  }
  .node-audio-board--flat .node-audio-mini-controls{
    grid-area:controls!important;
    grid-column:auto!important;
    align-self:center!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
  }
  .node-audio-board--flat .node-audio-mini-time{
    margin-right:auto!important;
  }
  .node-audio-board--flat .node-audio-row--dense{
    grid-template-columns:26px minmax(0,1fr) auto!important;
    grid-template-rows:auto auto!important;
    grid-template-areas:
      "index title duration"
      "index artist duration"!important;
    column-gap:8px!important;
    row-gap:2px!important;
    min-height:58px!important;
    padding:8px 10px!important;
    align-items:center!important;
  }
  .node-audio-board--flat .node-audio-row--dense .node-audio-index{
    grid-area:index!important;
    align-self:center!important;
  }
  .node-audio-board--flat .node-audio-row--dense strong{
    grid-area:title!important;
    grid-column:auto!important;
    align-self:end!important;
  }
  .node-audio-board--flat .node-audio-row--dense em{
    grid-area:artist!important;
    grid-column:auto!important;
    align-self:start!important;
    text-align:left!important;
  }
  .node-audio-board--flat .node-audio-row--dense time{
    grid-area:duration!important;
    grid-column:auto!important;
    grid-row:auto!important;
    align-self:center!important;
  }
}

@media(max-width:420px){
  .node-header-logout{width:26px;height:26px}
  .node-header-logout svg{
    width:19px!important;
    height:19px!important;
    min-width:19px!important;
    min-height:19px!important;
    max-width:19px!important;
    max-height:19px!important;
  }
  .node-audio-board--flat .node-audio-console{
    grid-template-columns:64px minmax(0,1fr)!important;
    column-gap:8px!important;
    row-gap:6px!important;
    padding:8px!important;
  }
  .node-audio-board--flat .node-audio-cover-small{
    width:64px!important;
    height:64px!important;
  }
  .node-audio-board--flat .node-audio-mini-controls{gap:1px!important}
  .node-audio-board--flat .node-audio-mini-btn{width:22px!important;height:22px!important}
  .node-audio-board--flat .node-audio-mini-btn svg{width:14px!important;height:14px!important}
  .node-audio-board--flat .node-audio-mini-time{font-size:10px!important}
}

/* 2026-07-30 v27: mobile audio controls above progress; compact one-line playlist */
@media (max-width:760px){
  .node-audio-board--flat .node-audio-console{
    grid-template-areas:
      "cover topline"
      "cover lyrics"
      "controls controls"
      "progress progress"!important;
  }

  .node-audio-board--flat .node-audio-mini-controls{
    grid-area:controls!important;
    justify-content:flex-start!important;
    gap:3px!important;
    width:100%!important;
    min-height:24px!important;
    padding:0!important;
  }

  .node-audio-board--flat .node-audio-mini-time{
    margin-right:auto!important;
    order:2!important;
  }

  .node-audio-board--flat .node-audio-mini-btn{
    order:1!important;
  }

  .node-audio-board--flat .node-audio-progress--thin{
    grid-area:progress!important;
    margin:0!important;
  }

  /* Playlist: index + title + duration only; remove duplicate artist line. */
  .node-audio-board--flat .node-audio-row--dense{
    grid-template-columns:28px minmax(0,1fr) auto!important;
    grid-template-rows:1fr!important;
    grid-template-areas:"index title duration"!important;
    column-gap:10px!important;
    row-gap:0!important;
    min-height:48px!important;
    padding:8px 12px!important;
  }

  .node-audio-board--flat .node-audio-row--dense .node-audio-index{
    grid-area:index!important;
    align-self:center!important;
  }

  .node-audio-board--flat .node-audio-row--dense strong{
    grid-area:title!important;
    align-self:center!important;
    font-size:14px!important;
  }

  .node-audio-board--flat .node-audio-row--dense em{
    display:none!important;
  }

  .node-audio-board--flat .node-audio-row--dense time{
    grid-area:duration!important;
    align-self:center!important;
  }
}

@media (max-width:420px){
  .node-audio-board--flat .node-audio-mini-controls{
    gap:2px!important;
  }
  .node-audio-board--flat .node-audio-row--dense{
    min-height:44px!important;
    padding:7px 10px!important;
  }
}

/* 2026-07-30 v28: compact mobile publish action + safe logout inside hamburger menu */
.node-mobile-publish,
.node-mobile-menu-logout{
  display:none;
}

@media (max-width:720px){
  .node-header-inner{
    display:flex!important;
    align-items:center!important;
    flex-wrap:nowrap!important;
  }

  .node-mobile-publish{
    order:2;
    display:inline-grid;
    place-items:center;
    flex:0 0 28px;
    width:28px;
    height:28px;
    padding:0;
    border:1px solid rgba(45,164,78,.24);
    border-radius:7px;
    background:rgba(45,164,78,.07);
    color:var(--green);
    transition:transform .18s ease,background-color .18s ease,border-color .18s ease;
  }
  .node-mobile-publish:hover,
  .node-mobile-publish:active{
    background:rgba(45,164,78,.13);
    border-color:rgba(45,164,78,.38);
    transform:translateY(-1px) scale(1.03);
  }
  .node-mobile-publish:focus-visible{
    outline:2px solid rgba(45,164,78,.26);
    outline-offset:2px;
  }
  .node-mobile-publish svg{
    display:block;
    width:18px!important;
    height:18px!important;
    min-width:18px!important;
    min-height:18px!important;
    max-width:18px!important;
    max-height:18px!important;
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:1.75!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
  }

  /* Keep personal center, theme and menu after the publish shortcut. */
  .header-avatar{order:3!important}
  .theme-button{order:4!important}
  .mobile-menu{order:5!important}

  /* Top-level logout is desktop-only; mobile logout lives safely in the menu. */
  .node-header-logout-form{display:none!important}

  .node-mobile-menu-logout{
    display:block;
    flex:1 0 100%;
    width:100%;
    margin:4px 0 0;
    padding:5px 0 0;
    border-top:1px solid rgba(15,23,42,.07);
  }
  .node-mobile-menu-logout button{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    width:100%;
    min-height:34px;
    padding:7px 10px;
    border:0;
    border-radius:5px;
    background:rgba(213,82,63,.065);
    color:#c64d3c;
    font-size:12.5px;
    font-weight:600;
    line-height:1;
    cursor:pointer;
    transition:background-color .18s ease,color .18s ease,transform .18s ease;
  }
  .node-mobile-menu-logout button:hover,
  .node-mobile-menu-logout button:active{
    background:rgba(213,82,63,.12);
    color:#ad3c2e;
    transform:translateY(-1px);
  }
  .node-mobile-menu-logout button:focus-visible{
    outline:2px solid rgba(213,82,63,.25);
    outline-offset:2px;
  }
  .node-mobile-menu-logout svg{
    display:block;
    flex:0 0 16px;
    width:16px!important;
    height:16px!important;
    min-width:16px!important;
    min-height:16px!important;
    max-width:16px!important;
    max-height:16px!important;
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:1.8!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
  }

  html[data-theme="dark"] .node-mobile-publish{
    background:rgba(116,215,161,.07);
    border-color:rgba(116,215,161,.22);
    color:#74d7a1;
  }
  html[data-theme="dark"] .node-mobile-menu-logout{
    border-top-color:rgba(255,255,255,.08);
  }
  html[data-theme="dark"] .node-mobile-menu-logout button{
    background:rgba(239,140,125,.08);
    color:#ef8c7d;
  }
}

@media (max-width:430px){
  .node-header-inner{
    gap:6px!important;
    padding-inline:7px!important;
  }
  .node-search{
    width:clamp(76px,22vw,94px)!important;
    min-width:76px!important;
  }
  .node-search input{
    padding-left:6px!important;
    font-size:10.5px!important;
  }
  .node-search button{
    flex-basis:27px!important;
    width:27px!important;
  }
  .node-mobile-publish,
  .header-avatar,
  .theme-button,
  .mobile-menu{
    flex-basis:26px!important;
    width:26px!important;
    height:26px!important;
  }
}

@media (max-width:375px){
  .node-header-inner{gap:4px!important;padding-inline:5px!important}
  .node-brand{font-size:16px!important}
  .brand-mark{font-size:20px!important}
  .node-brand small{display:none!important}
  .node-search{width:70px!important;min-width:70px!important}
  .node-search input{font-size:10px!important;padding-left:5px!important}
}

/* 2026-07-30 v29: mobile audio bottom control bar — progress left, time/actions right */
@media (max-width:760px){
  .node-audio-board--flat .node-audio-console{
    grid-template-columns:72px minmax(0,1fr) auto!important;
    grid-template-areas:
      "cover topline topline"
      "cover lyrics lyrics"
      "progress progress controls"!important;
    column-gap:10px!important;
    row-gap:7px!important;
    align-items:center!important;
  }

  .node-audio-board--flat .node-audio-progress--thin{
    grid-area:progress!important;
    display:block!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    line-height:0!important;
  }

  .node-audio-board--flat .node-audio-progress--thin input{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
  }

  .node-audio-board--flat .node-audio-mini-controls{
    grid-area:controls!important;
    display:flex!important;
    flex-flow:row nowrap!important;
    align-items:center!important;
    justify-content:flex-end!important;
    width:auto!important;
    min-width:max-content!important;
    min-height:24px!important;
    gap:3px!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
    white-space:nowrap!important;
  }

  .node-audio-board--flat .node-audio-mini-time{
    order:0!important;
    flex:0 0 auto!important;
    margin:0 3px 0 0!important;
    white-space:nowrap!important;
  }

  .node-audio-board--flat .node-audio-mini-btn{
    order:0!important;
    flex:0 0 22px!important;
    width:22px!important;
    height:22px!important;
    padding:0!important;
    margin:0!important;
  }

  .node-audio-board--flat .node-audio-mini-btn svg{
    width:14px!important;
    height:14px!important;
    min-width:14px!important;
    min-height:14px!important;
    max-width:14px!important;
    max-height:14px!important;
  }
}

@media (max-width:480px){
  .node-audio-board--flat .node-audio-console{
    grid-template-columns:64px minmax(52px,1fr) auto!important;
    column-gap:7px!important;
    row-gap:6px!important;
    padding:8px!important;
  }

  .node-audio-board--flat .node-audio-cover-small{
    width:64px!important;
    height:64px!important;
  }

  .node-audio-board--flat .node-audio-mini-controls{
    gap:1px!important;
  }

  .node-audio-board--flat .node-audio-mini-time{
    margin-right:1px!important;
    font-size:9px!important;
    letter-spacing:-.2px!important;
  }

  .node-audio-board--flat .node-audio-mini-btn{
    flex-basis:19px!important;
    width:19px!important;
    height:20px!important;
  }

  .node-audio-board--flat .node-audio-mini-btn svg{
    width:12px!important;
    height:12px!important;
    min-width:12px!important;
    min-height:12px!important;
    max-width:12px!important;
    max-height:12px!important;
  }
}

@media (max-width:375px){
  .node-audio-board--flat .node-audio-console{
    grid-template-columns:58px minmax(42px,1fr) auto!important;
    column-gap:6px!important;
    padding:7px!important;
  }

  .node-audio-board--flat .node-audio-cover-small{
    width:58px!important;
    height:58px!important;
  }

  .node-audio-board--flat .node-audio-mini-time{
    font-size:8.5px!important;
  }

  .node-audio-board--flat .node-audio-mini-btn{
    flex-basis:18px!important;
    width:18px!important;
    height:19px!important;
  }
}

/* 2026-07-30 v30: compact mobile search/theme controls and transparent publish icon */
@media (max-width:720px){
  /* Publish entry: icon only, no colored tile/border. */
  .node-mobile-publish,
  html[data-theme="dark"] .node-mobile-publish{
    width:24px!important;
    height:24px!important;
    flex:0 0 24px!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:var(--green)!important;
  }
  .node-mobile-publish:hover,
  .node-mobile-publish:active,
  html[data-theme="dark"] .node-mobile-publish:hover,
  html[data-theme="dark"] .node-mobile-publish:active{
    background:transparent!important;
    box-shadow:none!important;
    transform:translateY(-1px) scale(1.05);
  }
  .node-mobile-publish svg{
    width:18px!important;
    height:18px!important;
    min-width:18px!important;
    min-height:18px!important;
    max-width:18px!important;
    max-height:18px!important;
  }

  /* Search bar: halve its visual height while preserving usable width. */
  .node-search,
  html[data-theme="dark"] .node-search{
    height:22px!important;
    min-height:22px!important;
    border-radius:5px!important;
  }
  .node-search input{
    height:20px!important;
    padding:0 5px!important;
    font-size:10px!important;
    line-height:20px!important;
  }
  .node-search button{
    flex:0 0 24px!important;
    width:24px!important;
    height:20px!important;
    min-height:20px!important;
  }
  .node-search-icon{
    width:14px!important;
    height:14px!important;
    min-width:14px!important;
    min-height:14px!important;
    max-width:14px!important;
    max-height:14px!important;
  }

  /* Theme toggle: compact emoji moon without a surrounding tile. */
  .theme-button[data-theme-toggle],
  html[data-theme="dark"] .theme-button[data-theme-toggle]{
    width:22px!important;
    height:22px!important;
    min-width:22px!important;
    min-height:22px!important;
    flex:0 0 22px!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    line-height:1!important;
  }
  .theme-button[data-theme-toggle] [data-theme-icon]{
    display:grid!important;
    place-items:center!important;
    width:22px!important;
    height:22px!important;
    font-size:0!important;
    line-height:1!important;
    transform:none!important;
  }
  .theme-button[data-theme-toggle] [data-theme-icon]::before{
    content:"🌙";
    display:block;
    font-size:14px;
    line-height:1;
  }
  .theme-button[data-theme-toggle]:hover,
  .theme-button[data-theme-toggle]:active{
    background:transparent!important;
    transform:translateY(-1px);
  }
}

@media (max-width:430px){
  .node-search,
  html[data-theme="dark"] .node-search{
    height:20px!important;
    min-height:20px!important;
  }
  .node-search input{
    height:18px!important;
    line-height:18px!important;
    font-size:9.5px!important;
  }
  .node-search button{
    flex-basis:22px!important;
    width:22px!important;
    height:18px!important;
    min-height:18px!important;
  }
  .node-search-icon{
    width:13px!important;
    height:13px!important;
    min-width:13px!important;
    min-height:13px!important;
    max-width:13px!important;
    max-height:13px!important;
  }
  .node-mobile-publish{
    width:22px!important;
    height:22px!important;
    flex-basis:22px!important;
  }
  .theme-button[data-theme-toggle],
  html[data-theme="dark"] .theme-button[data-theme-toggle]{
    width:20px!important;
    height:20px!important;
    min-width:20px!important;
    min-height:20px!important;
    flex-basis:20px!important;
  }
  .theme-button[data-theme-toggle] [data-theme-icon]{
    width:20px!important;
    height:20px!important;
  }
  .theme-button[data-theme-toggle] [data-theme-icon]::before{
    font-size:13px;
  }
}

/* 2026-07-30 v32: restore dynamic sun/moon icon and remove theme-button background */
.theme-button[data-theme-toggle],
.theme-button[data-theme-toggle]:hover,
.theme-button[data-theme-toggle]:focus,
.theme-button[data-theme-toggle]:focus-visible,
.theme-button[data-theme-toggle]:active,
html[data-theme="dark"] .theme-button[data-theme-toggle],
html[data-theme="dark"] .theme-button[data-theme-toggle]:hover,
html[data-theme="dark"] .theme-button[data-theme-toggle]:focus,
html[data-theme="dark"] .theme-button[data-theme-toggle]:focus-visible,
html[data-theme="dark"] .theme-button[data-theme-toggle]:active {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.theme-button[data-theme-toggle] [data-theme-icon] {
  display: inline-grid !important;
  place-items: center !important;
  font-size: 18px !important;
  line-height: 1 !important;
  color: inherit !important;
}

/* Do not draw a fixed emoji over the JavaScript-controlled icon. */
.theme-button[data-theme-toggle] [data-theme-icon]::before,
.theme-button[data-theme-toggle] [data-theme-icon]::after {
  content: none !important;
  display: none !important;
}

@media (max-width: 720px) {
  .theme-button[data-theme-toggle],
  html[data-theme="dark"] .theme-button[data-theme-toggle] {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    flex: 0 0 22px !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  .theme-button[data-theme-toggle] [data-theme-icon] {
    width: 22px !important;
    height: 22px !important;
    font-size: 16px !important;
  }
}

@media (max-width: 430px) {
  .theme-button[data-theme-toggle],
  html[data-theme="dark"] .theme-button[data-theme-toggle] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    flex-basis: 20px !important;
  }

  .theme-button[data-theme-toggle] [data-theme-icon] {
    width: 20px !important;
    height: 20px !important;
    font-size: 15px !important;
  }
}

/* 2026-07-30 v33: category-controlled horizontal / vertical article-card layouts */
.node-category-list{
  overflow:hidden;
}

.node-category-list__head{
  min-height:54px;
  height:auto;
  padding-top:8px;
  padding-bottom:8px;
}

.node-category-list__tabs{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  min-width:0;
}

.node-category-grid{
  display:grid;
  padding:20px;
}

.node-category-grid--horizontal{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}

.node-category-grid--vertical{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}

/* Horizontal cards: 16:9 cover + complete article information. */
.node-hcard{
  min-width:0;
  overflow:hidden;
  background:var(--card,#fff);
  border:1px solid rgba(15,23,42,.08);
  border-radius:12px;
  box-shadow:0 4px 14px rgba(15,23,42,.05);
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}

.node-hcard:hover{
  transform:translateY(-3px);
  border-color:rgba(45,164,78,.24);
  box-shadow:0 10px 24px rgba(15,23,42,.09);
}

.node-hcard__cover{
  position:relative;
  display:block;
  aspect-ratio:16/9;
  overflow:hidden;
  background:linear-gradient(135deg,#edf8f1,#f5f7f8);
}

.node-hcard__cover img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .35s ease,filter .35s ease;
}

.node-hcard:hover .node-hcard__cover img{
  transform:scale(1.035);
  filter:saturate(1.03);
}

.node-hcard__cover.is-placeholder{
  display:grid;
  place-items:center;
  color:var(--green,#2da44e);
  font-size:17px;
  font-weight:750;
  letter-spacing:.08em;
}

.node-hcard__body{
  display:flex;
  flex-direction:column;
  min-height:0;
  padding:14px 16px 13px;
}

.node-hcard__meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}

.node-hcard__category{
  overflow:hidden;
  color:#ed9b2b;
  font-size:12px;
  font-weight:750;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.node-hcard__meta time{
  flex:0 0 auto;
  color:var(--muted,#879099);
  font-size:12px;
  white-space:nowrap;
}

.node-hcard__title{
  margin:0;
  font-size:17px;
  font-weight:700;
  line-height:1.45;
  letter-spacing:-.015em;
}

.node-hcard__title a{
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

.node-hcard__title a:hover{
  color:var(--green,#2da44e);
}

.node-hcard__summary{
  display:none !important;
}

.node-hcard__tags{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px 10px;
  margin-top:10px;
  color:#6e7781;
  font-size:11px;
}

.node-hcard__tags a:hover{
  color:var(--green,#2da44e);
}

/* Vertical cards: poster, badges, overlay and compact metadata. */
.node-vcard{
  min-width:0;
}

.node-vcard__poster{
  position:relative;
  display:block;
  aspect-ratio:3/4;
  overflow:hidden;
  background:linear-gradient(155deg,#edf8f1,#dfe7ea);
  border:1px solid rgba(15,23,42,.075);
  border-radius:10px;
  box-shadow:0 4px 14px rgba(15,23,42,.07);
  transform:translateZ(0);
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}

.node-vcard:hover .node-vcard__poster{
  transform:translateY(-3px);
  border-color:rgba(45,164,78,.28);
  box-shadow:0 10px 24px rgba(15,23,42,.12);
}

.node-vcard__poster img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .38s ease,filter .38s ease;
}

.node-vcard:hover .node-vcard__poster img{
  transform:scale(1.035);
  filter:saturate(1.04) contrast(1.01);
}

.node-vcard__placeholder-text{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  padding:18px;
  color:var(--green,#2da44e);
  font-size:17px;
  font-weight:760;
  text-align:center;
}

.node-vcard__badges{
  position:absolute;
  z-index:2;
  top:8px;
  right:8px;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:4px;
  max-width:72%;
}

.node-vcard__badge{
  display:block;
  max-width:100%;
  overflow:hidden;
  padding:3px 6px;
  color:#fff;
  border-radius:4px;
  box-shadow:0 2px 6px rgba(0,0,0,.16);
  font-size:10px;
  font-weight:700;
  line-height:1.15;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.node-vcard__badge--1{background:#397bd1}
.node-vcard__badge--2{background:#31a9c8}
.node-vcard__badge--3{background:#35ad68}

.node-vcard__overlay{
  position:absolute;
  z-index:1;
  right:0;
  bottom:0;
  left:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-height:68px;
  padding:10px 12px;
  color:#fff;
  background:linear-gradient(to top,rgba(0,0,0,.75) 0%,rgba(0,0,0,0) 100%);
  font-size:11px;
  line-height:1.2;
}

.node-vcard__overlay span:first-child{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.node-vcard__overlay span:last-child{
  flex:0 0 auto;
  white-space:nowrap;
}

.node-vcard__info{
  padding:0 2px;
}

.node-vcard__info h2{
  margin:8px 0 0;
  font-size:14px;
  font-weight:600;
  line-height:1.45;
}

.node-vcard__info h2 a{
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

.node-vcard__info h2 a:hover{
  color:var(--green,#2da44e);
}

.node-vcard__info p{
  overflow:hidden;
  margin:5px 0 0;
  color:var(--muted,#879099);
  font-size:11px;
  line-height:1.45;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.node-category-list__pager{
  border-top:1px solid var(--line,#e8ebed);
}

html[data-theme="dark"] .node-hcard,
html[data-theme="dark"] .node-vcard__poster{
  background:var(--card,#202326);
  border-color:rgba(255,255,255,.09);
  box-shadow:0 7px 20px rgba(0,0,0,.22);
}

html[data-theme="dark"] .node-hcard__cover,
html[data-theme="dark"] .node-vcard__poster{
  background:linear-gradient(145deg,#29322e,#252a2e);
}

html[data-theme="dark"] .node-hcard__tags{
  color:#aab1b7;
}

@media (max-width:1024px){
  .node-category-grid--horizontal,
  .node-category-grid--vertical{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media (max-width:767px){
  .node-category-grid{
    padding:14px;
  }

  .node-category-grid--horizontal,
  .node-category-grid--vertical{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px 12px;
  }

  .node-hcard__body{
    min-height:0;
    padding:14px;
  }

  .node-hcard__title{
    font-size:15px;
  }

  .node-hcard__summary{
    font-size:12px;
    line-height:1.62;
    -webkit-line-clamp:2;
  }
}

@media (max-width:560px){
  .node-category-list__head{
    align-items:flex-start;
  }

  .node-category-grid--horizontal,
  .node-category-grid--vertical{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px 10px;
  }

  .node-vcard__badges{
    top:6px;
    right:6px;
    gap:3px;
  }

  .node-vcard__badge{
    padding:2px 5px;
    font-size:9px;
  }

  .node-vcard__info h2{
    font-size:13px;
  }
}

@media (max-width:360px){
  .node-category-grid{
    padding:10px;
  }

  .node-category-grid--vertical{
    gap:14px 8px;
  }

  .node-vcard__overlay{
    padding-right:7px;
    padding-left:7px;
    font-size:10px;
  }
}

/* 2026-07-30 v34: single category display-mode control + text list mode */
.node-category-list--text .node-category-text-list{
  display:block;
}

.node-category-list--text .topic-item:last-child{
  border-bottom:0;
}

.node-category-grid--square{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px 16px;
}

.node-scard{
  min-width:0;
}

.node-scard__cover{
  position:relative;
  display:block;
  aspect-ratio:1/1;
  overflow:hidden;
  background:linear-gradient(145deg,#eef8f2,#e5eaed);
  border:1px solid rgba(15,23,42,.075);
  border-radius:10px;
  box-shadow:0 5px 16px rgba(15,23,42,.08);
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}

.node-scard:hover .node-scard__cover{
  transform:translateY(-3px);
  border-color:rgba(45,164,78,.28);
  box-shadow:0 12px 26px rgba(15,23,42,.14);
}

.node-scard__cover img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .35s ease;
}

.node-scard:hover .node-scard__cover img{
  transform:scale(1.035);
}

.node-scard__cover.is-placeholder{
  display:grid;
  place-items:center;
  color:var(--green,#2da44e);
  font-weight:750;
}

.node-scard__overlay{
  position:absolute;
  right:0;
  bottom:0;
  left:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:24px 9px 8px;
  color:#fff;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.78));
  font-size:11px;
}

.node-scard__info{
  padding:9px 2px 0;
}

.node-scard__info h2{
  margin:0;
  font-size:14px;
  font-weight:700;
  line-height:1.45;
}

.node-scard__info h2 a{
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

.node-scard__info h2 a:hover{
  color:var(--green,#2da44e);
}

.node-scard__info time{
  display:block;
  margin-top:5px;
  color:var(--muted,#879099);
  font-size:11px;
}

html[data-theme="dark"] .node-scard__cover{
  background:linear-gradient(145deg,#29322e,#252a2e);
  border-color:rgba(255,255,255,.09);
  box-shadow:0 7px 20px rgba(0,0,0,.22);
}

@media (max-width:1000px){
  .node-category-grid--square{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media (max-width:720px){
  .node-category-list--text .topic-item{
    min-height:68px;
    padding:10px 12px;
  }

  .node-category-grid--square{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px 11px;
  }
}

@media (max-width:560px){
  .node-category-grid--square{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:15px 10px;
  }
}


/* 2026-07-30 v35: unified 3-column category cards with softer proportions and overlays */

/* Keep image sizing predictable even when theme-wide image rules change. */
.node-hcard__cover,
.node-vcard__poster{
  width:100%;
}

.node-hcard__cover img,
.node-vcard__poster img{
  object-position:center;
}

/* Preserve a comfortable two-column mobile grid without card overflow. */
@media (max-width:767px){
  .node-hcard,
  .node-vcard{
    min-width:0;
  }

  .node-hcard__meta{
    gap:8px;
    margin-bottom:8px;
  }

  .node-hcard__title{
    margin-bottom:8px;
  }
}

/* 2026-07 v37: home pagination spacing and 12-title page alignment */
.feed-card--home > .pager {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 58px;
  margin: 0 !important;
  padding: 14px 18px !important;
  border-top: 1px solid var(--line) !important;
  text-align: center;
}

.feed-card--home > .pager > .pagination {
  display: inline-flex !important;
  flex-flow: row wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.feed-card--home > .pager > .pagination > a,
.feed-card--home > .pager > .pagination > span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  min-width: 30px !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  color: var(--muted) !important;
  background: transparent !important;
  border: 1px solid var(--line) !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  white-space: nowrap;
}

.feed-card--home > .pager > .pagination > a:hover {
  color: var(--green) !important;
  background: rgba(45, 164, 78, 0.07) !important;
  border-color: rgba(45, 164, 78, 0.32) !important;
}

.feed-card--home > .pager > .pagination > a.active {
  color: #fff !important;
  background: var(--green) !important;
  border-color: var(--green) !important;
  box-shadow: 0 3px 8px rgba(45, 164, 78, 0.18);
}

html[data-theme="dark"] .feed-card--home > .pager > .pagination > a,
html[data-theme="dark"] .feed-card--home > .pager > .pagination > span {
  border-color: rgba(255, 255, 255, 0.13) !important;
}

@media (max-width: 720px) {
  .feed-card--home > .pager {
    min-height: 52px;
    padding: 11px 12px !important;
  }

  .feed-card--home > .pager > .pagination {
    gap: 6px !important;
  }

  .feed-card--home > .pager > .pagination > a,
  .feed-card--home > .pager > .pagination > span {
    min-width: 28px !important;
    height: 28px !important;
    padding: 0 7px !important;
    font-size: 12px !important;
  }
}

/* 2026-07-30 v38: compact horizontal cards and safer list excerpts */
.node-hcard__title a,
.node-vcard__info h2 a{
  overflow-wrap:anywhere;
  word-break:break-word;
}

.node-vcard__info h2 a{
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
}

@media (max-width:767px){
  .node-hcard__body{
    padding:12px;
  }

  .node-hcard__meta{
    margin-bottom:7px;
  }

  .node-hcard__tags{
    margin-top:8px;
  }

  .node-vcard__info h2{
    margin-top:8px;
    font-weight:600;
  }
}

/* 2026-07 v39: compact recharge sidebar profile and asset header */
.recharge-center .recharge-sidebar-profile {
  padding: 16px;
}

.recharge-center .recharge-sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.recharge-center .recharge-sidebar-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  font-size: 17px;
  box-shadow: 0 0 0 1px var(--member-border);
}

.recharge-center .recharge-sidebar-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.recharge-center .recharge-sidebar-copy strong {
  overflow: hidden;
  color: var(--member-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recharge-center .recharge-sidebar-copy span {
  color: var(--member-muted);
  font-size: 12px;
  line-height: 1.25;
}

.recharge-center .recharge-asset-header {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  overflow: visible;
  background: var(--member-surface);
}

.recharge-center .recharge-balance-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.recharge-center .recharge-balance-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  line-height: 1.15;
}

.recharge-center .recharge-balance-line > span {
  color: var(--member-text);
  font-size: 14px;
  font-weight: 600;
}

.recharge-center .recharge-balance-line > strong {
  color: var(--member-accent);
  font-size: clamp(25px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -.02em;
}

.recharge-center .recharge-balance-line > b {
  color: var(--member-text);
  font-size: 14px;
  font-weight: 600;
}

.recharge-center .recharge-balance-copy > p {
  max-width: none;
  margin: 5px 0 0;
  color: var(--member-muted);
  font-size: 12px;
  line-height: 1.5;
}

.recharge-center .recharge-rate-badge {
  min-width: 300px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid color-mix(in srgb, var(--member-accent) 15%, transparent);
  border-radius: 9px;
  background: var(--member-accent-soft);
  white-space: nowrap;
}

.recharge-center .recharge-rate-badge b {
  color: var(--member-accent);
  font-size: 13px;
  font-weight: 700;
}

.recharge-center .recharge-rate-badge small {
  color: var(--member-muted);
  font-size: 12px;
  line-height: 1.4;
}

.recharge-center .recharge-rate-badge i {
  margin: 0 4px;
  color: var(--member-border);
  font-style: normal;
}

@media (max-width: 760px) {
  .recharge-center .recharge-asset-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 14px 16px;
  }

  .recharge-center .recharge-rate-badge {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .recharge-center .recharge-sidebar-profile {
    padding: 13px 14px;
  }

  .recharge-center .recharge-sidebar-avatar {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .recharge-center .recharge-asset-header {
    padding: 13px 14px;
  }

  .recharge-center .recharge-balance-line > strong {
    font-size: 25px;
  }

  .recharge-center .recharge-balance-copy > p {
    font-size: 11.5px;
  }

  .recharge-center .recharge-rate-badge {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    padding: 9px 11px;
  }

  .recharge-center .recharge-rate-badge i {
    margin-inline: 2px;
  }
}

/* 2026-07-30 v40: unified sidebar, softer placeholders and list typography */

/* Keep a 20px visual gap below the sticky 54px site header. */
@media (min-width: 861px) {
  .node-layout > .node-sidebar {
    position: sticky;
    top: 74px;
    align-self: start;
  }
}

/* Use one consistent rhythm between all sidebar widgets. */
.node-sidebar-profile {
  gap: 12px;
}

.node-sidebar-profile > .sidebar-member-card,
.node-sidebar-profile > .profile-card,
.node-sidebar-profile > .side-card,
.node-sidebar-profile > .user-card {
  margin-bottom: 0;
}

/* Replace the old yellow member-statistics panel with the site green surface. */
.sidebar-member-stats {
  background: #f4fbf7;
  border-color: #dcefe4;
  box-shadow: 0 2px 8px rgba(35, 84, 57, 0.045);
}

.sidebar-member-stats > a,
.sidebar-member-stats button,
.sidebar-member-stats em,
.sidebar-member-stats b,
.sidebar-member-stats .member-stat-icon {
  color: #333;
}

.sidebar-member-stats > a:hover,
.sidebar-member-stats button:hover {
  color: var(--green, #2da44e);
  background: rgba(45, 164, 78, 0.075);
}

.sidebar-member-stats > a:hover em,
.sidebar-member-stats > a:hover b,
.sidebar-member-stats button:hover em,
.sidebar-member-stats button:hover b,
.sidebar-member-stats > a:hover .member-stat-icon,
.sidebar-member-stats button:hover .member-stat-icon {
  color: var(--green, #2da44e);
}

/* Softer cover placeholders: no category text, only a subtle image icon. */
.node-hcard__cover.is-placeholder,
.node-vcard__poster.is-placeholder {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
}

.node-hcard__cover.is-placeholder > span,
.node-vcard__poster.is-placeholder > .node-vcard__placeholder-text {
  display: none !important;
}

.node-hcard__cover.is-placeholder::before,
.node-vcard__poster.is-placeholder::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 42px;
  height: 42px;
  opacity: .64;
  transform: translate(-50%, -50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237bb58d' stroke-width='1.45' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.25' y='4.25' width='17.5' height='15.5' rx='2.3'/%3E%3Ccircle cx='8.4' cy='9.1' r='1.55'/%3E%3Cpath d='m4.5 17 4.7-4.7 3.8 3.8 2.1-2.1 4.4 4.4'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

.node-vcard__poster.is-placeholder::before {
  width: 48px;
  height: 48px;
}

/* Calm metadata lets the article title remain the visual focus. */
.node-hcard__category,
.node-hcard__meta time,
.node-vcard__info p,
.node-category-list--text .topic-meta,
.node-category-list--text .topic-category {
  color: #999;
  font-size: 12px;
  font-weight: 400;
}

.node-hcard__title,
.node-vcard__info h2,
.node-category-list--text .topic-title {
  color: #1a1a1a;
  font-weight: 600;
}

/* Dark-mode equivalents retain contrast without reintroducing yellow surfaces. */
html[data-theme="dark"] .sidebar-member-stats {
  background: #202b25;
  border-color: #30483a;
  box-shadow: none;
}

html[data-theme="dark"] .sidebar-member-stats > a,
html[data-theme="dark"] .sidebar-member-stats button,
html[data-theme="dark"] .sidebar-member-stats em,
html[data-theme="dark"] .sidebar-member-stats b,
html[data-theme="dark"] .sidebar-member-stats .member-stat-icon {
  color: #d7ddd9;
}

html[data-theme="dark"] .node-hcard__cover.is-placeholder,
html[data-theme="dark"] .node-vcard__poster.is-placeholder {
  background: linear-gradient(135deg, #223329 0%, #28362e 100%);
}

html[data-theme="dark"] .node-hcard__cover.is-placeholder::before,
html[data-theme="dark"] .node-vcard__poster.is-placeholder::before {
  opacity: .72;
  filter: brightness(1.18);
}

html[data-theme="dark"] .node-hcard__category,
html[data-theme="dark"] .node-hcard__meta time,
html[data-theme="dark"] .node-vcard__info p,
html[data-theme="dark"] .node-category-list--text .topic-meta,
html[data-theme="dark"] .node-category-list--text .topic-category {
  color: #9ea6ad;
}

html[data-theme="dark"] .node-hcard__title,
html[data-theme="dark"] .node-vcard__info h2,
html[data-theme="dark"] .node-category-list--text .topic-title {
  color: #f0f2f3;
}

@media (max-width: 860px) {
  .node-layout > .node-sidebar {
    position: static;
    top: auto;
  }
}

/* 2026-07-30 v41: one article-title system for every list/card layout */
.post-title {
  display: -webkit-box;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #1e293b !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-overflow: ellipsis;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-title--single {
  display: block;
  white-space: nowrap;
  -webkit-line-clamp: initial;
}

.post-title--double {
  -webkit-line-clamp: 2;
}

/* Neutralize older layout-specific bold rules without changing spacing. */
.topic-title.post-title,
.node-hcard__title .post-title,
.node-vcard__info h2 .post-title,
.node-scard__info h2 .post-title {
  color: #1e293b !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

.post-title:hover,
.post-title:focus-visible {
  color: var(--green, #2da44e) !important;
}

html[data-theme="dark"] .post-title,
html[data-theme="dark"] .topic-title.post-title,
html[data-theme="dark"] .node-hcard__title .post-title,
html[data-theme="dark"] .node-vcard__info h2 .post-title,
html[data-theme="dark"] .node-scard__info h2 .post-title {
  color: #e6ebf0 !important;
}

html[data-theme="dark"] .post-title:hover,
html[data-theme="dark"] .post-title:focus-visible {
  color: #62c77d !important;
}

@media (max-width: 768px) {
  .post-title,
  .topic-title.post-title,
  .node-hcard__title .post-title,
  .node-vcard__info h2 .post-title,
  .node-scard__info h2 .post-title {
    font-size: 15px !important;
  }
}

/* 2026-07-30 v42: lightweight article titles across all list/card views */
.post-title,
.topic-title,
.topic-title.post-title,
.node-category-list--text .topic-title,
.node-hcard__title,
.node-hcard__title a,
.node-hcard__title .post-title,
.node-vcard__info h2,
.node-vcard__info h2 a,
.node-vcard__info h2 .post-title,
.node-scard__info h2,
.node-scard__info h2 a,
.node-scard__info h2 .post-title,
.landscape-card h3,
.landscape-card h3 a,
.user-post-title {
  color: #1a202c !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

/* Keep list/card truncation behavior while using the lighter title weight. */
.post-title,
.node-hcard__title a,
.node-vcard__info h2 a,
.node-scard__info h2 a,
.landscape-card h3 a {
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-title--single,
.topic-title,
.node-category-list--text .topic-title,
.user-post-title {
  display: block;
  white-space: nowrap;
}

.post-title--double,
.node-hcard__title a,
.node-vcard__info h2 a,
.node-scard__info h2 a,
.landscape-card h3 a {
  display: -webkit-box;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-title:hover,
.post-title:focus-visible,
.topic-title:hover,
.topic-title:focus-visible,
.node-hcard__title a:hover,
.node-vcard__info h2 a:hover,
.node-scard__info h2 a:hover,
.landscape-card h3 a:hover,
.user-post-title:hover {
  color: var(--green, #2da44e) !important;
}

html[data-theme="dark"] .post-title,
html[data-theme="dark"] .topic-title,
html[data-theme="dark"] .node-category-list--text .topic-title,
html[data-theme="dark"] .node-hcard__title,
html[data-theme="dark"] .node-hcard__title a,
html[data-theme="dark"] .node-vcard__info h2,
html[data-theme="dark"] .node-vcard__info h2 a,
html[data-theme="dark"] .node-scard__info h2,
html[data-theme="dark"] .node-scard__info h2 a,
html[data-theme="dark"] .landscape-card h3,
html[data-theme="dark"] .landscape-card h3 a,
html[data-theme="dark"] .user-post-title {
  color: #e4e8ec !important;
  font-weight: 400 !important;
}

@media (max-width: 768px) {
  .post-title,
  .topic-title,
  .node-category-list--text .topic-title,
  .node-hcard__title,
  .node-hcard__title a,
  .node-vcard__info h2,
  .node-vcard__info h2 a,
  .node-scard__info h2,
  .node-scard__info h2 a,
  .landscape-card h3,
  .landscape-card h3 a,
  .user-post-title {
    font-size: 16px !important;
    font-weight: 400 !important;
  }
}

/* 2026-07-30 v43: refine horizontal covers and remove the vertical-poster dark footer */

/* Horizontal cards: retain the 16:9 base and add 50px of visual cover height. */
.node-hcard__cover {
  aspect-ratio: auto !important;
  height: 0 !important;
  padding-top: calc(56.25% + 50px) !important;
}

.node-hcard__cover > img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

/* Placeholder icon remains centered after the cover-height increase. */
.node-hcard__cover.is-placeholder::before {
  z-index: 1;
}

/* Vertical cards: remove the broad black gradient and use small glass pills. */
.node-vcard__overlay {
  min-height: 0 !important;
  padding: 10px 12px !important;
  color: #334155 !important;
  background: none !important;
  pointer-events: none;
}

.node-vcard__meta-pill {
  display: inline-flex;
  align-items: center;
  max-width: 58%;
  min-height: 24px;
  padding: 4px 8px;
  overflow: hidden;
  color: #334155;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(255, 255, 255, .66);
  border-radius: 999px;
  box-shadow: 0 2px 7px rgba(15, 23, 42, .08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-vcard__meta-pill--date {
  flex: 0 0 auto;
  max-width: none;
  color: #64748b;
}

/* The subtitle below a vertical poster is intentionally removed in PHP. */
.node-vcard__info p {
  display: none !important;
}

html[data-theme="dark"] .node-vcard__meta-pill {
  color: #e5e7eb;
  background: rgba(17, 24, 39, .78);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .16);
}

html[data-theme="dark"] .node-vcard__meta-pill--date {
  color: #cbd5e1;
}

@media (max-width: 767px) {
  .node-hcard__cover {
    padding-top: calc(56.25% + 32px) !important;
  }

  .node-vcard__overlay {
    padding: 8px !important;
  }

  .node-vcard__meta-pill {
    min-height: 22px;
    padding: 3px 7px;
    font-size: 10px;
  }
}

/* 2026-07-30 v44: final pixel polish for horizontal and vertical article cards */

/* Vertical poster metadata: subtle dark glass labels that blend into the cover. */
.node-vcard__meta-pill,
.node-vcard__meta-pill--date {
  min-height: 22px;
  padding: 4px 7px;
  color: #fff !important;
  background: rgba(0, 0, 0, .40) !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 999px;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1;
}

/* Reserve exactly two title lines so cards in the same row align cleanly. */
.node-hcard__title,
.node-vcard__info h2 {
  min-height: 2.8em;
}

.node-hcard__title > a,
.node-vcard__info h2 > a {
  min-height: 2.8em;
}

/* Make no-cover artwork deliberately quiet and secondary. */
.node-hcard__cover.is-placeholder::before,
.node-vcard__poster.is-placeholder::before {
  width: 32px !important;
  height: 32px !important;
  opacity: .35 !important;
}

html[data-theme="dark"] .node-vcard__meta-pill,
html[data-theme="dark"] .node-vcard__meta-pill--date {
  color: #fff !important;
  background: rgba(0, 0, 0, .46) !important;
  border-color: rgba(255, 255, 255, .14) !important;
}

@media (max-width: 767px) {
  .node-vcard__meta-pill,
  .node-vcard__meta-pill--date {
    min-height: 20px;
    padding: 3px 6px;
    font-size: 10px !important;
  }

  .node-hcard__cover.is-placeholder::before,
  .node-vcard__poster.is-placeholder::before {
    width: 28px !important;
    height: 28px !important;
  }
}


/* 2026-07-30 v45: remove vertical-card category label and simplify the date. */
.node-vcard__overlay {
  justify-content: flex-end !important;
  min-height: 0 !important;
  padding: 0 10px 9px !important;
  background: transparent !important;
}

.node-vcard__meta-pill--category {
  display: none !important;
}

.node-vcard__meta-pill--date {
  min-height: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  color: rgba(255, 255, 255, .92) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  font-size: 9px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  letter-spacing: .01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .65);
}

html[data-theme="dark"] .node-vcard__meta-pill--date {
  color: rgba(255, 255, 255, .92) !important;
  background: transparent !important;
  border: 0 !important;
}

@media (max-width: 767px) {
  .node-vcard__overlay {
    padding: 0 8px 7px !important;
  }

  .node-vcard__meta-pill--date {
    font-size: 8px !important;
  }
}

/* 2026-07-30 v46: move vertical-card date below the title for reliable contrast. */
.node-vcard__overlay,
.node-vcard__meta-pill--date {
  display: none !important;
}

.node-vcard__info {
  padding: 0 2px;
}

.node-vcard__meta {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 5px;
  margin-top: 6px;
  overflow: hidden;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
}

.node-vcard__meta time,
.node-vcard__meta span {
  min-width: 0;
  color: inherit;
  font: inherit;
  white-space: nowrap;
}

.node-vcard__meta > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.node-vcard__meta-separator {
  flex: 0 0 auto;
  opacity: .72;
}

html[data-theme="dark"] .node-vcard__meta {
  color: #94a3b8;
}

@media (max-width: 767px) {
  .node-vcard__meta {
    gap: 4px;
    margin-top: 5px;
    font-size: 11px;
  }
}

/* 2026-07-30 v47: align vertical-card category to the far right. */
.node-vcard__meta {
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.node-vcard__meta time {
  flex: 0 0 auto;
}

.node-vcard__meta-category {
  flex: 0 1 auto;
  min-width: 0;
  margin-left: auto;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-vcard__meta-separator {
  display: none !important;
}

@media (max-width: 767px) {
  .node-vcard__meta {
    gap: 8px;
  }
}

/* 2026-07-30 v48: two-column horizontal cards with cover badge and compact metadata. */
.node-category-grid--horizontal {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
}

/* Restore a true 16:9 cover after the earlier height-expansion rule. */
.node-hcard__cover {
  position: relative;
  display: block;
  width: 100%;
  height: auto !important;
  padding-top: 0 !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden;
}

.node-hcard__cover > img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

/* First article TAG, falling back to the category name. */
.node-hcard__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 24px);
  min-height: 24px;
  padding: 4px 9px;
  overflow: hidden;
  color: #237a46;
  background: rgba(255, 255, 255, .90);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 7px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .10);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The placeholder keeps only the quiet icon; the text label is not needed. */
.node-hcard__placeholder-label {
  display: none !important;
}

.node-hcard__body {
  padding: 14px 16px 16px;
}

.node-hcard__title {
  min-height: 2.8em;
  margin: 0;
}

.node-hcard__title > a {
  min-height: 2.8em;
}

.node-hcard__date {
  display: block;
  margin-top: 8px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
}

/* Old category/date and footer tag rows are intentionally removed from HTML. */
.node-hcard__meta,
.node-hcard__tags {
  display: none !important;
}

html[data-theme="dark"] .node-hcard__badge {
  color: #e8f6ed;
  background: rgba(17, 24, 39, .78);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .node-hcard__date {
  color: #94a3b8;
}

@media (max-width: 1024px) {
  .node-category-grid--horizontal {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
}

@media (max-width: 767px) {
  .node-category-grid--horizontal {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 10px !important;
  }

  .node-hcard__badge {
    top: 8px;
    right: 8px;
    max-width: calc(100% - 16px);
    min-height: 21px;
    padding: 3px 7px;
    border-radius: 6px;
    font-size: 10px;
  }

  .node-hcard__body {
    padding: 11px 12px 13px;
  }

  .node-hcard__date {
    margin-top: 6px;
    font-size: 11px;
  }
}

/* 2026-07-30 v49: horizontal-card category beside date; cover corner shows real tags. */
.node-hcard__badges {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  max-width: 72%;
  pointer-events: none;
}

.node-hcard__badge {
  position: static;
  display: block;
  max-width: 100%;
  min-height: 0;
  padding: 3px 6px;
  overflow: hidden;
  color: #fff !important;
  background: #397bd1;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .16);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-hcard__badge--1 { background: #397bd1; }
.node-hcard__badge--2 { background: #31a9c8; }
.node-hcard__badge--3 { background: #35ad68; }

.node-hcard__meta {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  margin-top: 8px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.node-hcard__date {
  flex: 0 0 auto;
  display: block;
  margin-top: 0;
  color: inherit;
  font: inherit;
  white-space: nowrap;
}

.node-hcard__category {
  flex: 0 1 auto;
  min-width: 0;
  margin-left: auto;
  overflow: hidden;
  color: inherit;
  font: inherit;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="dark"] .node-hcard__badge {
  color: #fff !important;
  border: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] .node-hcard__meta,
html[data-theme="dark"] .node-hcard__date,
html[data-theme="dark"] .node-hcard__category {
  color: #94a3b8;
}

@media (max-width: 767px) {
  .node-hcard__badges {
    top: 6px;
    right: 6px;
    gap: 3px;
  }

  .node-hcard__badge {
    padding: 2px 5px;
    font-size: 9px;
  }

  .node-hcard__meta {
    gap: 8px;
    margin-top: 6px;
    font-size: 11px;
  }
}

/* 2026-07-30 v50: smaller cover-card titles, aligned home sidebar and centered mobile subcategory bar. */

/* Horizontal and vertical cover titles are one visual step smaller than text-list titles. */
.node-hcard__title,
.node-hcard__title > a,
.node-hcard__title .post-title,
.node-vcard__info h2,
.node-vcard__info h2 > a,
.node-vcard__info h2 .post-title {
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
}

/* Keep the desktop home feed and the first sidebar card on exactly the same top line. */
@media (min-width: 861px) {
  .node-layout {
    align-items: start;
  }

  .node-layout > .node-main,
  .node-layout > .node-sidebar,
  .node-sidebar-profile,
  .node-sidebar-profile > :first-child {
    margin-top: 0 !important;
  }

  /* Desktop header is 42px and the content shell begins 10px below it. */
  .node-layout > .node-sidebar {
    top: 52px !important;
  }
}

/* Mobile category/subcategory header: center both sides vertically in one compact row. */
@media (max-width: 720px) {
  .node-category-list__head.feed-tabs,
  .node-category-list__head.category-tabs {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 12px !important;
    gap: 10px !important;
  }

  .node-category-list__tabs {
    display: flex !important;
    align-items: center !important;
    align-self: stretch;
    min-width: 0;
    gap: 6px;
  }

  .node-category-list__tabs > a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 26px;
    margin: 0 !important;
    padding: 4px 9px !important;
    line-height: 1 !important;
  }

  .node-category-list__head .feed-pages {
    display: inline-flex !important;
    align-items: center !important;
    align-self: center;
    flex: 0 0 auto;
    height: 26px;
    margin: 0 0 0 auto !important;
    line-height: 1 !important;
    white-space: nowrap;
  }

  .node-hcard__title,
  .node-hcard__title > a,
  .node-hcard__title .post-title,
  .node-vcard__info h2,
  .node-vcard__info h2 > a,
  .node-vcard__info h2 .post-title {
    font-size: 14px !important;
  }
}

@media (max-width: 380px) {
  .node-category-list__head.feed-tabs,
  .node-category-list__head.category-tabs {
    min-height: 42px !important;
    height: 42px !important;
    padding-inline: 10px !important;
  }

  .node-category-list__tabs > a {
    min-height: 24px;
    padding: 3px 8px !important;
    font-size: 11px !important;
  }

  .node-category-list__head .feed-pages {
    height: 24px;
    font-size: 11px !important;
  }
}


/* 2026-07-30 v54: restore the original site shell and only widen article content inside the left card. */
@media (min-width: 901px) {
  /* Restore the pre-v53 site/header width. */
  .node-header-inner {
    width: auto;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 14px;
    padding-right: 14px;
  }

  .node-shell {
    width: auto;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .node-layout {
    grid-template-columns: minmax(0, 1fr) 292px;
    column-gap: 11px;
    row-gap: 11px;
  }

  .node-main {
    width: auto;
    min-width: 0;
  }

  .node-sidebar,
  .node-sidebar-profile {
    width: auto;
    min-width: 0;
    justify-self: stretch;
  }
}

/* Reduce only the horizontal whitespace inside article detail cards. */
@media (min-width: 721px) {
  .node-main > .article.detail-card {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .node-main > .article.detail-card .detail-hero,
  .node-main > .article.detail-card .article-body,
  .node-main > .article.detail-card .markdown-content {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .node-main > .article.detail-card .article-body > *,
  .node-main > .article.detail-card .markdown-content > * {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .node-main > .article.detail-card .markdown-content pre,
  .node-main > .article.detail-card .markdown-content .md-table-wrap,
  .node-main > .article.detail-card .markdown-content table,
  .node-main > .article.detail-card .markdown-content iframe,
  .node-main > .article.detail-card .markdown-content video,
  .node-main > .article.detail-card .markdown-content img {
    max-width: 100%;
  }
}

/* 2026-07-30 v55: article footer tags, previous/next cards and standalone comment card. */

/* Keep the article page column rhythm consistent without changing the global site width. */
@media (min-width: 901px) {
  .node-layout:has(.node-main > .detail-card) {
    column-gap: 24px;
  }
}

.article-content-divider {
  width: 100%;
  height: 1px;
  margin: 28px 0 20px;
  border-bottom: 1px solid #f0f0f0;
}

.article-footer-tools {
  display: grid;
  gap: 24px;
  margin-bottom: 28px;
}

.article-tags-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.article-tags-label {
  flex: 0 0 auto;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

.article-tag-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.node-main > .article.detail-card a.article-tag-chip,
.article-tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #f5f5f5;
  color: #666 !important;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  transition: color .22s ease, background-color .22s ease, border-color .22s ease, transform .22s ease;
}

.node-main > .article.detail-card a.article-tag-chip:hover,
.article-tag-chip:hover {
  border-color: rgba(45, 164, 78, .18);
  background: #eaf7ee;
  color: var(--accent-color, #2da44e) !important;
  transform: translateY(-1px);
}

.post-navigation-cards {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.node-main > .article.detail-card a.post-nav-card,
.post-nav-card {
  position: relative;
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  min-height: 96px;
  padding: 16px 18px;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  border: 1px solid #eceff1;
  border-radius: 8px;
  background: #fafafa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  color: #1f2937 !important;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background-color .24s ease;
}

.node-main > .article.detail-card a.post-nav-card:hover,
.post-nav-card:hover {
  border-color: rgba(45, 164, 78, .25);
  background: #f6fbf7;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
  color: var(--accent-color, #2da44e) !important;
  transform: translateY(-2px);
}

.post-nav-card--next {
  text-align: right;
  align-items: flex-end;
}

.post-nav-card__eyebrow {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
}

.post-nav-card__title {
  display: -webkit-box;
  overflow: hidden;
  color: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-nav-card.is-disabled {
  opacity: .52;
  cursor: default;
  box-shadow: none;
}

.post-nav-card.is-disabled:hover {
  border-color: #eceff1;
  background: #fafafa;
  color: #1f2937 !important;
  transform: none;
}

/* The comment section is a standalone sibling card below the article. */
.comments-section.comments-card {
  margin: 28px 0 0;
  padding: 24px;
  border: 1px solid #e8ebed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.comments-card .comments-heading h2 {
  margin: 0;
  color: #1f2937;
  font-size: 18px;
  font-weight: 600;
}

.comments-card .comment-form {
  margin: 18px 0 8px;
  overflow: visible;
  border: 0;
  border-radius: 9px;
}

.comments-card .comment-form textarea {
  display: block;
  min-height: 118px;
  border: 1px solid #e5e7eb;
  border-radius: 9px 9px 0 0;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.comments-card .comment-form textarea:focus {
  position: relative;
  z-index: 1;
  border-color: var(--accent-color, #2da44e);
  box-shadow: 0 0 0 3px rgba(45, 164, 78, .12);
}

.comments-card .comment-form > div:last-child {
  min-height: 40px;
  margin-top: -1px;
  border: 1px solid #e5e7eb;
  border-top-color: #eef0f2;
  border-radius: 0 0 9px 9px;
  background: #fafafa;
}

.comments-card .comments-list {
  margin-top: 10px;
}

html[data-theme="dark"] .article-content-divider {
  border-bottom-color: #343a40;
}

html[data-theme="dark"] .article-tag-chip,
html[data-theme="dark"] .node-main > .article.detail-card a.article-tag-chip {
  border-color: #343a40;
  background: #292e33;
  color: #b5bdc5 !important;
}

html[data-theme="dark"] .article-tag-chip:hover,
html[data-theme="dark"] .node-main > .article.detail-card a.article-tag-chip:hover {
  border-color: rgba(67, 182, 99, .3);
  background: rgba(67, 182, 99, .14);
  color: #69cc83 !important;
}

html[data-theme="dark"] .post-nav-card,
html[data-theme="dark"] .node-main > .article.detail-card a.post-nav-card {
  border-color: #373d43;
  background: #252a2f;
  color: #edf0f2 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

html[data-theme="dark"] .post-nav-card:hover,
html[data-theme="dark"] .node-main > .article.detail-card a.post-nav-card:hover {
  border-color: rgba(67, 182, 99, .35);
  background: #29342d;
  color: #69cc83 !important;
}

html[data-theme="dark"] .post-nav-card.is-disabled:hover {
  border-color: #373d43;
  background: #252a2f;
  color: #edf0f2 !important;
}

html[data-theme="dark"] .comments-section.comments-card {
  border-color: #373d43;
  background: #202428;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .comments-card .comments-heading h2 {
  color: #edf0f2;
}

html[data-theme="dark"] .comments-card .comment-form textarea {
  border-color: #3b4249;
  background: #171b1f;
  color: #edf0f2;
}

html[data-theme="dark"] .comments-card .comment-form > div:last-child {
  border-color: #3b4249;
  background: #252a2f;
}

@media (max-width: 720px) {
  .article-content-divider {
    margin: 22px 0 16px;
  }

  .article-footer-tools {
    gap: 20px;
    margin-bottom: 22px;
  }

  .article-tags-bar {
    align-items: flex-start;
    gap: 9px;
  }

  .article-tag-chips {
    gap: 6px;
  }

  .article-tag-chip {
    min-height: 26px;
    padding: 4px 8px;
    font-size: 11px;
  }

  .post-navigation-cards {
    flex-direction: column;
    gap: 12px;
  }

  .post-nav-card {
    min-height: 82px;
    padding: 14px 15px;
  }

  .post-nav-card--next {
    text-align: left;
    align-items: flex-start;
  }

  .post-nav-card__title {
    font-size: 14px;
  }

  .comments-section.comments-card {
    margin-top: 22px;
    padding: 16px;
    border-radius: 10px;
  }

  .comments-card .comment-form textarea {
    min-height: 104px;
  }
}

/* 2026-07-30 v56: Markdown author signature and compact profile editor. */

/* The v55 tag and previous/next footer has been removed from the template. */
.article-content-divider,
.article-footer-tools {
  display: none !important;
}

/* Author signature: lightweight divider, constrained Markdown output. */
.node-main > .article.detail-card .post-signature {
  width: 100%;
  max-width: none;
  max-height: 100px;
  margin: 16px 0 0 !important;
  padding: 12px 16px;
  overflow: hidden;
  border: 0;
  border-top: 1px dashed #e2e8f0;
  border-radius: 0;
  background: transparent;
  color: #4a5568;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.node-main > .article.detail-card .post-signature > :first-child {
  margin-top: 0 !important;
}

.node-main > .article.detail-card .post-signature > :last-child {
  margin-bottom: 0 !important;
}

.node-main > .article.detail-card .post-bottom-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  min-width: 0;
}
.node-main > .article.detail-card .post-bottom-meta .post-signature {
  flex: 1;
  min-width: 0;
  max-width: none;
  margin: 0 !important;
  padding: 12px 16px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.node-main > .article.detail-card .post-bottom-meta .post-signature > * {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.node-main > .article.detail-card .post-tags {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex: 0 0 auto;
  flex-shrink: 0;
  max-width: 45%;
  margin: 0;
  color: #8b969f;
  font-size: 12px;
}
.node-main > .article.detail-card .post-tags a {
  flex-shrink: 0;
  padding: 3px 9px;
  border: 1px solid rgba(45,164,78,.22);
  border-radius: 4px;
  color: var(--green);
  background: rgba(45,164,78,.06);
}
.node-main > .article.detail-card .post-tags a:hover {
  background: rgba(45,164,78,.12);
}
@media (max-width: 560px) {
  .node-main > .article.detail-card .post-bottom-meta { gap: 10px; }
  .node-main > .article.detail-card .post-bottom-meta .post-signature { padding-inline: 8px; }
  .node-main > .article.detail-card .post-tags { max-width: 48%; }
  .node-main > .article.detail-card .post-tags {
    justify-content: flex-start;
  }
}

.node-main > .article.detail-card .post-signature p,
.node-main > .article.detail-card .post-signature ul,
.node-main > .article.detail-card .post-signature ol,
.node-main > .article.detail-card .post-signature blockquote,
.node-main > .article.detail-card .post-signature h1,
.node-main > .article.detail-card .post-signature h2,
.node-main > .article.detail-card .post-signature h3,
.node-main > .article.detail-card .post-signature h4,
.node-main > .article.detail-card .post-signature h5,
.node-main > .article.detail-card .post-signature h6 {
  margin: 0 0 6px;
  color: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
}

.node-main > .article.detail-card .post-signature ul,
.node-main > .article.detail-card .post-signature ol {
  padding-left: 20px;
}

.node-main > .article.detail-card .post-signature a {
  color: var(--accent-color, #2da44e);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.node-main > .article.detail-card .post-signature code {
  padding: 1px 4px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #f7f8f9;
  color: #4a5568;
  font-size: .92em;
}

/* Keep the standalone comment card 28px below the article/signature. */
.comments-section.comments-card {
  margin-top: 28px;
}

/* Profile form controls share one visual language. */
.member-settings-card .member-settings-field {
  display: grid;
  gap: 6px;
}

.member-settings-card textarea {
  width: 100%;
  min-height: 92px;
  padding: 10px 11px;
  resize: vertical;
  border: 1px solid var(--member-border);
  border-radius: var(--radius-md);
  background: var(--member-surface);
  color: var(--member-text);
  font: inherit;
  line-height: 1.55;
  outline: 0;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.member-settings-card input:focus,
.member-settings-card textarea:focus {
  border-color: var(--member-accent);
  box-shadow: 0 0 0 3px rgba(45, 164, 78, .12);
}

.member-signature-field small {
  color: #a0aec0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

/* Native file control: button and selected filename vertically centered. */
.member-avatar-upload-field input[type="file"] {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 8px;
  line-height: 30px;
  cursor: pointer;
}

.member-avatar-upload-field input[type="file"]::file-selector-button {
  height: 30px;
  margin: 0 10px 0 0;
  padding: 0 12px;
  border: 1px solid var(--member-border);
  border-radius: 6px;
  background: var(--member-surface-soft);
  color: var(--member-text);
  font: inherit;
  line-height: 28px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.member-avatar-upload-field input[type="file"]::file-selector-button:hover {
  border-color: var(--member-accent);
  color: var(--member-accent);
  background: var(--member-accent-soft);
}

html[data-theme="dark"] .node-main > .article.detail-card .post-signature {
  border-top-color: #3a424a;
  color: #b6bec7;
}

html[data-theme="dark"] .node-main > .article.detail-card .post-signature code {
  border-color: #3a424a;
  background: #272c31;
  color: #d5dbe1;
}

/* Unified code typography: inline code and fenced code blocks share one scale. */
:root {
  --code-font-family: "Fira Code", "SFMono-Regular", "SF Mono", Consolas, Monaco,
    "Liberation Mono", "Courier New", monospace;
  --code-font-size: 0.92em;
  --code-line-height: 1.7;
  --code-radius: 8px;
  --code-inline-bg: #f3f5f7;
  --code-block-bg: #f6f8fa;
  --code-padding-inline: 0.35em;
  --code-padding-block: 0.12em;
}

/* Remove user-agent code/pre typography differences and inherit the same metrics. */
code,
pre,
pre code,
kbd,
samp {
  box-sizing: border-box;
  font-family: var(--code-font-family);
  font-size: var(--code-font-size);
  line-height: var(--code-line-height);
  font-variant-ligatures: common-ligatures contextual;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  padding: var(--code-padding-block) var(--code-padding-inline);
  border-radius: var(--code-radius);
  background: var(--code-inline-bg);
  color: #24292f;
  vertical-align: baseline;
}

pre {
  display: block;
  margin: 1em 0;
  padding: 1em 1.2em;
  overflow: auto;
  border-radius: var(--code-radius);
  background: var(--code-block-bg);
  color: #24292f;
  white-space: pre;
  tab-size: 4;
  -webkit-overflow-scrolling: touch;
}

pre code {
  display: block;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  white-space: inherit;
  vertical-align: baseline;
}

html[data-theme="dark"] code,
html[data-theme="dark"] pre {
  background: #20252b;
  color: #e6edf3;
}

html[data-theme="dark"] pre code {
  background: transparent;
}

html[data-theme="dark"] .member-signature-field small {
  color: #8f99a4;
}

@media (max-width: 720px) {
  .node-main > .article.detail-card .post-signature {
    max-height: 100px;
    margin-top: 14px !important;
    padding: 10px 12px;
    font-size: 13px;
  }

  .comments-section.comments-card {
    margin-top: 24px;
  }

  .member-settings-card textarea {
    min-height: 88px;
  }
}


/* 2026-07-30 v57: reliable author signature and permanent administrator membership. */
.sidebar-member-identity small b.is-lifetime {
  color: #d9483b !important;
  font-weight: 700 !important;
}

.member-membership-status b,
.member-membership-value {
  font-weight: 600;
}

.member-membership-status.is-lifetime b,
.member-membership-value.is-lifetime {
  color: #d9483b !important;
  font-weight: 700 !important;
}

html[data-theme="dark"] .sidebar-member-identity small b.is-lifetime,
html[data-theme="dark"] .member-membership-status.is-lifetime b,
html[data-theme="dark"] .member-membership-value.is-lifetime {
  color: #ff7668 !important;
}


/* 2026-07-30 v58: compact safe author signature; Markdown headings become green highlights. */
.node-main > .article.detail-card {
  padding-bottom: 10px !important;
}

.node-main > .article.detail-card .post-signature {
  width: 100%;
  max-width: none;
  max-height: 64px;
  margin: 8px 0 0 !important;
  padding: 7px 10px;
  overflow: hidden;
  border: 0;
  border-top: 1px dashed #e2e8f0;
  border-radius: 0;
  background: transparent;
  color: #4a5568;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.node-main > .article.detail-card .post-signature > :first-child {
  margin-top: 0 !important;
}

.node-main > .article.detail-card .post-signature > :last-child {
  margin-bottom: 0 !important;
}

.node-main > .article.detail-card .post-signature p,
.node-main > .article.detail-card .post-signature ul,
.node-main > .article.detail-card .post-signature ol,
.node-main > .article.detail-card .post-signature blockquote {
  margin: 0 0 4px !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: 400 !important;
  line-height: inherit !important;
}

/* Markdown # / ## / ... is deliberately rendered as compact green text, never as an article H1. */
.node-main > .article.detail-card .post-signature .post-signature-highlight,
.node-main > .article.detail-card .post-signature h1,
.node-main > .article.detail-card .post-signature h2,
.node-main > .article.detail-card .post-signature h3,
.node-main > .article.detail-card .post-signature h4,
.node-main > .article.detail-card .post-signature h5,
.node-main > .article.detail-card .post-signature h6 {
  display: block !important;
  margin: 0 0 3px !important;
  padding: 0 !important;
  border: 0 !important;
  color: #2da44e !important;
  background: transparent !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
}

.comments-section.comments-card {
  margin-top: 14px !important;
}

html[data-theme="dark"] .node-main > .article.detail-card .post-signature {
  border-top-color: #3a424a;
  color: #b6bec7;
}

html[data-theme="dark"] .node-main > .article.detail-card .post-signature .post-signature-highlight,
html[data-theme="dark"] .node-main > .article.detail-card .post-signature h1,
html[data-theme="dark"] .node-main > .article.detail-card .post-signature h2,
html[data-theme="dark"] .node-main > .article.detail-card .post-signature h3,
html[data-theme="dark"] .node-main > .article.detail-card .post-signature h4,
html[data-theme="dark"] .node-main > .article.detail-card .post-signature h5,
html[data-theme="dark"] .node-main > .article.detail-card .post-signature h6 {
  color: #67d58b !important;
}

@media (max-width: 720px) {
  .node-main > .article.detail-card {
    padding-bottom: 8px !important;
  }

  .node-main > .article.detail-card .post-signature {
    max-height: 58px;
    margin-top: 7px !important;
    padding: 6px 8px;
    font-size: 13px;
    line-height: 1.45;
  }

  .node-main > .article.detail-card .post-signature .post-signature-highlight,
  .node-main > .article.detail-card .post-signature h1,
  .node-main > .article.detail-card .post-signature h2,
  .node-main > .article.detail-card .post-signature h3,
  .node-main > .article.detail-card .post-signature h4,
  .node-main > .article.detail-card .post-signature h5,
  .node-main > .article.detail-card .post-signature h6 {
    font-size: 13px !important;
  }

  .comments-section.comments-card {
    margin-top: 12px !important;
  }
}

/* 2026-07-30 v59: forum-style comments and a full Markdown comment editor. */
.comments-section.comments-card.comment-board {
  margin-top: 14px !important;
  padding: 22px 24px 24px;
  overflow: hidden;
  border: 1px solid #e7ebee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(15, 23, 42, .045);
}

.comment-board__heading {
  align-items: flex-end;
  padding-bottom: 15px;
  border-bottom: 1px solid #eef1f3;
}

.comment-board__heading > div {
  min-width: 0;
}

.comment-board__heading h2 {
  margin: 0;
  color: #26313d;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.comment-board__heading h2 small {
  margin-left: 3px;
  color: #8a949e;
  font-size: 12px;
  font-weight: 400;
}

.comment-board__heading p {
  margin: 6px 0 0;
  color: #98a1aa;
  font-size: 12px;
  line-height: 1.45;
}

.comment-board__heading > span {
  color: #9aa3ac;
  font-size: 12px;
}

.comment-board__list {
  margin: 0 !important;
}

.comment-empty {
  padding: 34px 12px;
  color: #9aa3ac;
  font-size: 13px;
  text-align: center;
}

.comment-board .comment-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  padding: 22px 0 18px;
  border: 0;
  border-bottom: 1px solid #eef1f3;
  background: transparent;
}

.comment-board .comment-avatar {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 9px;
  background: linear-gradient(135deg, #c7eee0, #8fd3bf);
  box-shadow: 0 2px 7px rgba(15, 23, 42, .07);
  font-size: 16px;
  font-weight: 600;
}

.comment-board .comment-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-board .comment-main {
  min-width: 0;
}

.comment-board .comment-author {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
}

.comment-author__identity {
  min-width: 0;
}

.comment-author__name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.comment-board .comment-author__name strong {
  overflow: hidden;
  color: #27313c;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-owner-badge,
.comment-admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 1px 6px;
  border: 1px solid rgba(45, 164, 78, .45);
  border-radius: 4px;
  color: #2da44e;
  background: rgba(45, 164, 78, .055);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
}

.comment-admin-badge {
  border-color: rgba(14, 165, 233, .38);
  color: #1488b8;
  background: rgba(14, 165, 233, .055);
}

.comment-board .comment-author time {
  display: block;
  margin-top: 4px;
  color: #9099a2;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
}

.comment-board .comment-floor {
  flex: 0 0 auto;
  color: #6f7882;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.comment-board .comment-body {
  margin: 13px 0 15px;
  color: #374151;
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.comment-board .comment-body > :first-child {
  margin-top: 0;
}

.comment-board .comment-body > :last-child {
  margin-bottom: 0;
}

.comment-board .comment-body p {
  margin: 0 0 8px;
}

.comment-board .comment-reply-target {
  display: inline;
  margin-right: 5px;
  color: #228b5a !important;
  font-weight: 500;
  text-decoration: none;
}

.comment-signature {
  max-height: 58px;
  margin-top: 14px;
  padding: 12px 0 0;
  overflow: hidden;
  border-top: 1px dashed #dfe5e8;
  color: #78c4a3;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.comment-signature > :first-child {
  margin-top: 0 !important;
}

.comment-signature > :last-child {
  margin-bottom: 0 !important;
}

.comment-signature p,
.comment-signature strong,
.comment-signature h1,
.comment-signature h2,
.comment-signature h3,
.comment-signature h4,
.comment-signature h5,
.comment-signature h6 {
  margin: 0 !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: 600 !important;
  line-height: inherit !important;
}

.comment-actions,
.comment-main footer.comment-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  color: #8d969f;
  font-size: 12px;
}

.comment-actions button,
.comment-main footer.comment-actions button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 25px;
  margin: 0;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: color .18s ease, transform .18s ease;
}

.comment-actions button:hover,
.comment-main footer.comment-actions button:hover {
  color: var(--accent-color, #2da44e);
  transform: translateY(-1px);
}

.comment-actions button.is-danger:hover {
  color: #d9483b;
}

.comment-actions button:disabled {
  opacity: .55;
  cursor: default;
  transform: none;
}

.comment-composer.comment-form {
  margin: 24px 0 0 !important;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 10px;
  background: transparent;
}

.comment-editor {
  overflow: hidden;
  border: 1px solid #dfe4e7;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .045);
}

.comment-editor__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 45px;
  padding: 0 16px;
  border-bottom: 1px solid #e8ecef;
  background: #fcfcfc;
}

.comment-editor__modes {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 4px;
}

.comment-editor__modes button {
  position: relative;
  min-width: 54px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #6f7882;
  font-size: 13px;
  cursor: pointer;
}

.comment-editor__modes button::after {
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 8px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: transparent;
  content: "";
}

.comment-editor__modes button.is-active {
  color: #27313c;
  font-weight: 600;
}

.comment-editor__modes button.is-active::after {
  background: #27313c;
}

.comment-editor__topbar > span {
  color: #7f8892;
  font-size: 12px;
  white-space: nowrap;
}

.comment-editor textarea {
  width: 100%;
  min-height: 240px;
  border: 0;
  outline: 0;
}

.comment-editor .EasyMDEContainer {
  border: 0;
  background: #fff;
}

.comment-editor .EasyMDEContainer .editor-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1px;
  min-height: 43px;
  padding: 5px 9px;
  border: 0;
  border-bottom: 1px solid #e8ecef;
  border-radius: 0;
  background: #fafafa;
  opacity: 1;
}

.comment-editor .EasyMDEContainer .editor-toolbar::before,
.comment-editor .EasyMDEContainer .editor-toolbar::after {
  display: none;
}

.comment-editor .EasyMDEContainer .editor-toolbar button {
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 5px;
  color: #626c75;
  background: transparent;
  font-size: 14px;
  line-height: 30px;
}

.comment-editor .EasyMDEContainer .editor-toolbar button:hover,
.comment-editor .EasyMDEContainer .editor-toolbar button.active {
  border: 0;
  color: #258d54;
  background: #edf8f1;
}

.comment-editor .EasyMDEContainer .editor-toolbar i.separator {
  display: none !important;
}

.comment-editor .EasyMDEContainer .editor-toolbar i.separator {
  height: 19px;
  margin: 0 4px;
  border-left-color: #dfe4e7;
}

.comment-editor .EasyMDEContainer .CodeMirror,
.comment-editor .EasyMDEContainer .CodeMirror-scroll {
  min-height: 240px;
}

.comment-editor .EasyMDEContainer .CodeMirror {
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #374151;
  font-size: 14px;
  line-height: 1.7;
  box-shadow: none;
}

.comment-editor .EasyMDEContainer .CodeMirror-gutters {
  border-right: 1px solid #eef1f3;
  background: #fbfbfb;
}

.comment-editor .EasyMDEContainer .editor-preview,
.comment-editor .EasyMDEContainer .editor-preview-side {
  padding: 18px;
  background: #fff;
  color: #374151;
  font-size: 14px;
  line-height: 1.75;
}

.comment-editor .EasyMDEContainer.sided--no-fullscreen {
  border: 0;
}

.comment-editor__footer,
.comment-form .comment-editor__footer,
.comment-composer.comment-form > .comment-editor > .comment-editor__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 45px;
  margin: 0 !important;
  padding: 6px 12px !important;
  border: 0 !important;
  border-top: 1px solid #e8ecef !important;
  border-radius: 0 !important;
  background: #fafafa !important;
  color: #8b949e;
  font-size: 12px;
}

.comment-editor__footer .primary-button {
  float: none !important;
  min-width: 100px;
  min-height: 32px !important;
  margin: 0 !important;
  padding: 6px 16px !important;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--accent-color, #2da44e);
  font-size: 12px !important;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.comment-editor__footer .primary-button:hover {
  background: #258d54;
}

.comment-composer .replying-to {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(45, 164, 78, .18);
  border-radius: 6px;
  color: #258d54;
  background: rgba(45, 164, 78, .07);
  font-size: 12px;
}

.comment-composer .replying-to[hidden] {
  display: none !important;
}

.comment-composer .replying-to button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #6f7882;
  background: transparent;
  cursor: pointer;
}

.comment-login-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid #e6eaed;
  border-radius: 9px;
  background: #fafafa;
}

.comment-login-prompt > div {
  display: grid;
  gap: 4px;
}

.comment-login-prompt strong {
  color: #27313c;
  font-size: 14px;
  font-weight: 600;
}

.comment-login-prompt span {
  color: #8b949e;
  font-size: 12px;
}

.comment-login-prompt .primary-button {
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 16px;
  border-radius: 6px;
  color: #fff !important;
}

html[data-theme="dark"] .comments-section.comments-card.comment-board {
  border-color: #373d43;
  background: #202428;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .comment-board__heading,
html[data-theme="dark"] .comment-board .comment-item {
  border-color: #343b42;
}

html[data-theme="dark"] .comment-board__heading h2,
html[data-theme="dark"] .comment-board .comment-author__name strong,
html[data-theme="dark"] .comment-login-prompt strong {
  color: #edf1f4;
}

html[data-theme="dark"] .comment-board .comment-body {
  color: #cbd2d9;
}

html[data-theme="dark"] .comment-signature {
  border-top-color: #3b434b;
  color: #78d0aa;
}

html[data-theme="dark"] .comment-editor,
html[data-theme="dark"] .comment-editor .EasyMDEContainer,
html[data-theme="dark"] .comment-editor .EasyMDEContainer .CodeMirror,
html[data-theme="dark"] .comment-editor .EasyMDEContainer .CodeMirror-scroll,
html[data-theme="dark"] .comment-editor .EasyMDEContainer .editor-preview,
html[data-theme="dark"] .comment-editor .EasyMDEContainer .editor-preview-side {
  border-color: #3a4148;
  background: #171b1f;
  color: #e5e9ed;
}

html[data-theme="dark"] .comment-editor__topbar,
html[data-theme="dark"] .comment-editor .EasyMDEContainer .editor-toolbar,
html[data-theme="dark"] .comment-editor__footer,
html[data-theme="dark"] .comment-form .comment-editor__footer,
html[data-theme="dark"] .comment-composer.comment-form > .comment-editor > .comment-editor__footer {
  border-color: #373e45 !important;
  background: #252a2f !important;
}

html[data-theme="dark"] .comment-editor__modes button.is-active {
  color: #edf1f4;
}

html[data-theme="dark"] .comment-editor__modes button.is-active::after {
  background: #69cc83;
}

html[data-theme="dark"] .comment-editor .EasyMDEContainer .CodeMirror-gutters {
  border-color: #343b42;
  background: #1d2227;
}

html[data-theme="dark"] .comment-editor .EasyMDEContainer .editor-toolbar button {
  color: #aeb7bf;
}

html[data-theme="dark"] .comment-editor .EasyMDEContainer .editor-toolbar button:hover,
html[data-theme="dark"] .comment-editor .EasyMDEContainer .editor-toolbar button.active {
  color: #75d492;
  background: rgba(67, 182, 99, .12);
}

/* Keep every Markdown editor visually plain while typing. Preview/rendered content keeps its styling. */
.EasyMDEContainer .CodeMirror,
.EasyMDEContainer .CodeMirror-scroll,
.EasyMDEContainer .CodeMirror-lines,
.EasyMDEContainer .CodeMirror-code,
.EasyMDEContainer .CodeMirror pre.CodeMirror-line,
.EasyMDEContainer .CodeMirror pre.CodeMirror-line-like {
  background: transparent !important;
  color: var(--text-primary, #2f3337) !important;
  font-family: var(--font-mono, Consolas, monospace) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
}
.EasyMDEContainer .CodeMirror span[class*="cm-"] {
  background: transparent !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  text-decoration: none !important;
  border: 0 !important;
}
.EasyMDEContainer .CodeMirror .cm-header,
.EasyMDEContainer .CodeMirror .cm-header-1,
.EasyMDEContainer .CodeMirror .cm-header-2,
.EasyMDEContainer .CodeMirror .cm-header-3,
.EasyMDEContainer .CodeMirror .cm-header-4,
.EasyMDEContainer .CodeMirror .cm-header-5,
.EasyMDEContainer .CodeMirror .cm-header-6,
.EasyMDEContainer .CodeMirror .cm-formatting-header,
.EasyMDEContainer .CodeMirror .cm-formatting-code,
.EasyMDEContainer .CodeMirror .cm-formatting-code-block {
  font-size: inherit !important;
  font-weight: inherit !important;
}
html[data-theme="dark"] .EasyMDEContainer .CodeMirror,
html[data-theme="dark"] .EasyMDEContainer .CodeMirror-scroll,
html[data-theme="dark"] .EasyMDEContainer .CodeMirror-lines,
html[data-theme="dark"] .EasyMDEContainer .CodeMirror-code,
html[data-theme="dark"] .EasyMDEContainer .CodeMirror pre.CodeMirror-line,
html[data-theme="dark"] .EasyMDEContainer .CodeMirror pre.CodeMirror-line-like {
  background: transparent !important;
  color: var(--text-primary, #edf0f2) !important;
}

html[data-theme="dark"] .comment-login-prompt {
  border-color: #373e45;
  background: #252a2f;
}

@media (max-width: 720px) {
  .comments-section.comments-card.comment-board {
    padding: 16px 14px 18px;
    border-radius: 10px;
  }

  .comment-board__heading {
    align-items: flex-start;
  }

  .comment-board__heading h2 {
    font-size: 18px;
  }

  .comment-board__heading > span,
  .comment-board__heading p {
    display: none;
  }

  .comment-board .comment-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding: 17px 0 14px;
  }

  .comment-board .comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }

  .comment-board .comment-author {
    min-height: 40px;
  }

  .comment-board .comment-author__name strong {
    font-size: 14px;
  }

  .comment-board .comment-floor {
    font-size: 12px;
  }

  .comment-board .comment-body {
    margin: 10px 0 12px;
    font-size: 13px;
    line-height: 1.68;
  }

  .comment-signature {
    margin-top: 10px;
    padding-top: 9px;
    font-size: 12px;
  }

  .comment-actions,
  .comment-main footer.comment-actions {
    justify-content: flex-start;
    gap: 12px;
    margin-top: 9px;
    font-size: 11px;
  }

  .comment-composer.comment-form {
    margin-top: 18px !important;
  }

  .comment-editor__topbar {
    min-height: 40px;
    padding: 0 10px;
  }

  .comment-editor__modes button {
    min-width: 45px;
    padding: 0 7px;
    font-size: 12px;
  }

  .comment-editor__topbar > span {
    font-size: 10px;
  }

  .comment-editor .EasyMDEContainer .editor-toolbar {
    min-height: 38px;
    padding: 4px 6px;
  }

  .comment-editor .EasyMDEContainer .editor-toolbar button {
    width: 27px;
    height: 27px;
    font-size: 12px;
    line-height: 27px;
  }

  .comment-editor .EasyMDEContainer .CodeMirror,
  .comment-editor .EasyMDEContainer .CodeMirror-scroll {
    min-height: 190px;
  }

  .comment-editor .EasyMDEContainer .CodeMirror {
    font-size: 13px;
  }

  .comment-editor__footer,
  .comment-form .comment-editor__footer,
  .comment-composer.comment-form > .comment-editor > .comment-editor__footer {
    min-height: 40px;
    padding: 5px 8px !important;
  }

  .comment-editor__footer .primary-button {
    min-width: 88px;
    min-height: 30px !important;
    padding: 5px 12px !important;
    font-size: 11px !important;
  }

  .comment-login-prompt {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }

  .comment-login-prompt .primary-button {
    align-self: flex-start;
  }
}


/* 2026-07-30 v60: compact article-to-comments rhythm, full-height quote rail and clear @reply mentions. */
.node-main:has(> .article.detail-card + .comments-section.comment-board) {
  gap: 12px !important;
}

.node-main > .article.detail-card + .comments-section.comments-card.comment-board {
  margin-top: 0 !important;
}

.comment-board .comment-body blockquote {
  position: relative !important;
  margin: 10px 0 !important;
  padding: 12px 14px 12px 20px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: #f4f6f8 !important;
  color: #5f6974 !important;
  box-shadow: none !important;
}

.comment-board .comment-body blockquote::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 4px !important;
  min-height: 100% !important;
  border-radius: 4px 0 0 4px !important;
  background: #8c98a4 !important;
}

.comment-board .comment-body blockquote > :first-child {
  margin-top: 0 !important;
}

.comment-board .comment-body blockquote > :last-child {
  margin-bottom: 0 !important;
}

.comment-board .comment-reply-target {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  color: #d9583f !important;
  font-weight: 600;
  line-height: inherit;
}

html[data-theme="dark"] .comment-board .comment-body blockquote {
  background: #292e34 !important;
  color: #c2c9d0 !important;
}

html[data-theme="dark"] .comment-board .comment-body blockquote::before {
  background: #8f9aa5 !important;
}

html[data-theme="dark"] .comment-board .comment-reply-target {
  color: #ff8068 !important;
}

@media (max-width: 720px) {
  .node-main:has(> .article.detail-card + .comments-section.comment-board) {
    gap: 7px !important;
  }

  .comment-board .comment-body blockquote {
    margin: 8px 0 !important;
    padding: 10px 12px 10px 17px !important;
  }

  .comment-board .comment-body blockquote::before {
    width: 3px !important;
  }
}

/* 2026-07-30 v61: remove the guest login panel and refine text-list metadata. */
.comment-board.is-guest .comment-composer,
.comment-board.is-guest .comment-login-prompt {
  display: none !important;
}

.comments-section.comments-card.comment-board.is-guest {
  padding-bottom: 16px;
}

.comment-board.is-guest.is-empty .comment-empty {
  padding: 22px 12px 10px;
}

.comment-board.is-guest.is-empty .comment-board__list {
  min-height: 0;
  margin-bottom: 0 !important;
}

.topic-meta-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.topic-meta-views svg {
  display: block;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topic-meta-category {
  display: none;
  color: inherit;
  text-decoration: none;
}

.topic-meta-category svg {
  display: block;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topic-meta-category:hover {
  color: var(--green, #2da44e);
}

@media (max-width: 720px) {
  .comments-section.comments-card.comment-board.is-guest {
    padding-bottom: 12px;
  }

  .comment-board.is-guest.is-empty .comment-empty {
    padding: 18px 8px 8px;
  }

  .topic-meta {
    align-items: center;
    column-gap: 8px !important;
    row-gap: 4px !important;
  }

  .topic-meta time,
  .topic-meta-views {
    flex: 0 0 auto;
  }

  .topic-meta-category {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
    max-width: 110px;
    color: #929aa2;
    font-size: inherit;
    font-weight: 400;
    line-height: 1.2;
  }

  .topic-meta-category span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topic-category {
    display: none !important;
  }
}

html[data-theme="dark"] .topic-meta-category {
  color: #a5adb5;
}

html[data-theme="dark"] .topic-meta-category:hover {
  color: #62c77d;
}

/* 2026-07-30 v62: subtle rounded corners for the article detail main card. */
.node-main > article.article.detail-card,
.node-main > .article.detail-card {
  border-radius: 10px !important;
  overflow: hidden !important;
}

@media (max-width: 720px) {
  .node-main > article.article.detail-card,
  .node-main > .article.detail-card {
    border-radius: 8px !important;
  }
}


/* 2026-07-30 v63: simplify text-list metadata and use consistent SVG comment actions. */
.topic-meta-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  color: inherit;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.topic-meta-date svg {
  display: block;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topic-meta-date time {
  color: inherit;
  font: inherit;
}

.comment-actions button .comment-action-icon,
.comment-main footer.comment-actions button .comment-action-icon {
  display: block;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}

.comment-actions button:hover .comment-action-icon,
.comment-main footer.comment-actions button:hover .comment-action-icon {
  transform: scale(1.06);
}

.comment-actions button span,
.comment-main footer.comment-actions button span {
  line-height: 1;
}

@media (max-width: 720px) {
  .topic-meta-date {
    flex: 0 0 auto;
  }

  .topic-meta-date svg {
    width: 11px;
    height: 11px;
    flex-basis: 11px;
  }

  .comment-actions button .comment-action-icon,
  .comment-main footer.comment-actions button .comment-action-icon {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }
}

/* =========================================================
   2026-07-30 v64: modern dark-mode contrast and surface system
   Dark-mode-only overrides. Layout dimensions remain unchanged.
   ========================================================= */
html[data-theme="dark"] {
  color-scheme: dark;

  /* Core color ladder */
  --paper: #0d1117;
  --card: #161b22;
  --ink: #e6edf3;
  --muted: #9ca3af;
  --line: rgba(255, 255, 255, 0.08);
  --green: #3fb950;
  --green-soft: rgba(63, 185, 80, 0.13);
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  --shadow-hover: 0 14px 34px rgba(0, 0, 0, 0.36);

  /* Component aliases used throughout the theme */
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #1c232d;
  --text-primary: #e6edf3;
  --text-secondary: #9ca3af;
  --border: rgba(255, 255, 255, 0.08);
  --accent-color: #3fb950;
  --accent-soft: rgba(63, 185, 80, 0.13);
  --yellow: #20251d;
}

html[data-theme="dark"] body {
  color: var(--text-primary);
  background-color: #0d1117;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
}

/* Header and navigation */
html[data-theme="dark"] .node-header {
  color: var(--text-primary);
  background: rgba(13, 17, 23, 0.9);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
}

html[data-theme="dark"] .node-nav,
html[data-theme="dark"] .node-nav a,
html[data-theme="dark"] .node-brand,
html[data-theme="dark"] .node-search input {
  color: var(--text-primary);
}

html[data-theme="dark"] .node-brand small,
html[data-theme="dark"] .node-nav,
html[data-theme="dark"] .node-search input::placeholder {
  color: var(--text-secondary);
}

html[data-theme="dark"] .node-search,
html[data-theme="dark"] .node-nav.is-open {
  background: #161b22;
  border-color: var(--line);
  box-shadow: none;
}

html[data-theme="dark"] .node-search:focus-within {
  border-color: rgba(63, 185, 80, 0.52);
  box-shadow: 0 0 0 3px rgba(63, 185, 80, 0.12);
}

/* Unified elevated surfaces */
html[data-theme="dark"] :is(
  .feed-card,
  .detail-card,
  .message-card,
  .node-main > .article,
  .user-card,
  .side-card,
  .node-sidebar-profile .profile-card,
  .comments-section.comments-card,
  .comments-section.comments-card.comment-board,
  .member-card,
  .member-panel,
  .member-content-card,
  .member-recharge-card,
  .member-asset-header,
  .landscape-card,
  .horizontal-card,
  .vertical-card,
  .square-card,
  .list-horizontal .post-card,
  .list-vertical .post-card
) {
  color: var(--text-primary);
  background: #161b22;
  border-color: var(--line);
  box-shadow: var(--shadow);
}

html[data-theme="dark"] :is(
  .feed-tabs,
  .detail-hero,
  .topic-item,
  .comment-board__heading,
  .comment-board .comment-item,
  .side-profile-stats,
  .member-card-header,
  .member-section-header
) {
  border-color: var(--line);
}

html[data-theme="dark"] .topic-item:hover {
  background: #1c232d;
  box-shadow: inset 3px 0 0 rgba(63, 185, 80, 0.72);
}

/* Primary and secondary text hierarchy */
html[data-theme="dark"] :is(
  h1, h2, h3, h4, h5, h6,
  .post-title,
  .topic-title,
  .landscape-card h3,
  .comment-board__heading h2,
  .comment-author__name strong,
  .side-profile-name,
  .side-card h3,
  .side-card h4,
  .profile-card h4,
  .member-title
) {
  color: #e6edf3;
}

html[data-theme="dark"] :is(
  .topic-meta,
  .topic-meta-date,
  .topic-meta-category,
  .article-meta,
  .detail-meta,
  .vertical-card-meta,
  .horizontal-card-meta,
  .landscape-card-meta,
  .comment-board__heading p,
  .comment-board .comment-author time,
  .comment-floor,
  .comment-actions,
  .side-profile-stats small,
  .side-card p,
  .side-category-list a,
  .side-hot-card li a,
  .side-tag-cloud a,
  .member-help,
  .member-subtext,
  .form-help,
  small
) {
  color: #9ca3af;
}

html[data-theme="dark"] .node-main > .article .article-body,
html[data-theme="dark"] .markdown-content,
html[data-theme="dark"] .comment-board .comment-body,
html[data-theme="dark"] .comment-signature,
html[data-theme="dark"] .post-signature {
  color: #d8dee4;
}

html[data-theme="dark"] :is(.markdown-content strong, .article-body strong) {
  color: #f3f4f6;
}

html[data-theme="dark"] :is(.topic-category, .pin, .category-tabs a, .side-tag-cloud a, .landscape-tags a) {
  color: #aeb6c0;
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line);
}

html[data-theme="dark"] :is(.topic-category, .category-tabs a, .side-tag-cloud a, .landscape-tags a):hover {
  color: #6edb81;
  background: rgba(63, 185, 80, 0.11);
  border-color: rgba(63, 185, 80, 0.28);
}

/* Sidebar distinction */
html[data-theme="dark"] .node-sidebar-profile .profile-card,
html[data-theme="dark"] .side-card {
  background: #161b22;
}

html[data-theme="dark"] :is(.stats, .member-stats, .side-member-stats) {
  color: #c6cdd5;
  background: #18231d;
  border: 1px solid rgba(63, 185, 80, 0.12);
}

html[data-theme="dark"] :is(.stats b, .member-stats b, .side-member-stats b) {
  color: #e6edf3;
}

/* Forms and editor controls */
html[data-theme="dark"] :is(input, textarea, select, .CodeMirror) {
  color: #e6edf3;
  background: #0f141b;
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] :is(input, textarea)::placeholder {
  color: #7f8995;
  opacity: 1;
}

html[data-theme="dark"] :is(input, textarea, select):focus {
  border-color: rgba(63, 185, 80, 0.62);
  box-shadow: 0 0 0 3px rgba(63, 185, 80, 0.12);
  outline: none;
}

html[data-theme="dark"] .comment-editor,
html[data-theme="dark"] .comment-editor .EasyMDEContainer,
html[data-theme="dark"] .comment-editor .EasyMDEContainer .CodeMirror,
html[data-theme="dark"] .comment-editor .EasyMDEContainer .CodeMirror-scroll,
html[data-theme="dark"] .comment-editor .EasyMDEContainer .editor-preview,
html[data-theme="dark"] .comment-editor .EasyMDEContainer .editor-preview-side {
  color: #d8dee4;
  background: #0f141b;
}

html[data-theme="dark"] .comment-editor__topbar,
html[data-theme="dark"] .comment-editor .EasyMDEContainer .editor-toolbar,
html[data-theme="dark"] .comment-editor__footer {
  background: #161b22;
  border-color: var(--line);
}

html[data-theme="dark"] .comment-editor .EasyMDEContainer .editor-toolbar button {
  color: #9ca3af;
  background: transparent;
  border-color: transparent;
}

html[data-theme="dark"] .comment-editor .EasyMDEContainer .editor-toolbar button:hover,
html[data-theme="dark"] .comment-editor .EasyMDEContainer .editor-toolbar button.active {
  color: #e6edf3;
  background: #242c36;
  border-color: var(--line);
}

/* Code and technical content */
html[data-theme="dark"] :is(
  .markdown-content pre,
  .article-body pre,
  .node-main > .article pre
) {
  color: #d8dee4 !important;
  background: #0b0f14 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 9px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

html[data-theme="dark"] :is(
  .markdown-content :not(pre) > code,
  .article-body :not(pre) > code,
  .comment-body :not(pre) > code
) {
  color: #e6edf3;
  background: #242c36;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

html[data-theme="dark"] .code-copy-button {
  color: #b8c0ca;
  background: rgba(22, 27, 34, 0.94);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .code-copy-button:hover {
  color: #ffffff;
  background: #238636;
  border-color: #3fb950;
  box-shadow: 0 0 0 3px rgba(63, 185, 80, 0.11);
}

html[data-theme="dark"] .markdown-content blockquote,
html[data-theme="dark"] .comment-board .comment-body blockquote {
  color: #b7c0ca;
  background: #1c232d;
  border-color: #3fb950;
}

html[data-theme="dark"] :is(.md-panel, .md-alert, .md-collapse, .md-download, .md-highlight) {
  background: #161b22;
  border-color: var(--line);
}

/* Tables and separators */
html[data-theme="dark"] :is(table, .md-table) {
  color: #d8dee4;
  border-color: var(--line);
}

html[data-theme="dark"] :is(th, td, .md-table th, .md-table td) {
  border-color: var(--line);
}

html[data-theme="dark"] :is(th, .md-table th) {
  color: #e6edf3;
  background: #1c232d;
}

/* Accent buttons with restrained glow */
html[data-theme="dark"] :is(
  .primary-button,
  .publish-button,
  .comment-editor__footer .primary-button,
  .node-resource-box__button--primary,
  button[type="submit"],
  input[type="submit"]
) {
  color: #ffffff !important;
  background: #238636;
  border-color: #2ea043;
  box-shadow: 0 4px 12px rgba(35, 134, 54, 0.22);
}

html[data-theme="dark"] :is(
  .primary-button,
  .publish-button,
  .comment-editor__footer .primary-button,
  .node-resource-box__button--primary,
  button[type="submit"],
  input[type="submit"]
):hover {
  color: #ffffff !important;
  background: #2ea043;
  border-color: #3fb950;
  box-shadow:
    0 6px 16px rgba(35, 134, 54, 0.28),
    0 0 0 3px rgba(63, 185, 80, 0.11);
  transform: translateY(-1px);
}

html[data-theme="dark"] :is(a, button):focus-visible {
  outline: 2px solid rgba(63, 185, 80, 0.7);
  outline-offset: 2px;
}

/* Softer secondary buttons */
html[data-theme="dark"] :is(
  .node-resource-box__button--secondary,
  .secondary-button,
  .ghost-button
) {
  color: #c7ced6 !important;
  background: #1c232d;
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] :is(
  .node-resource-box__button--secondary,
  .secondary-button,
  .ghost-button
):hover {
  color: #6edb81 !important;
  background: rgba(63, 185, 80, 0.09);
  border-color: rgba(63, 185, 80, 0.28);
}

/* Scrollbars kept subtle but visible */
html[data-theme="dark"] * {
  scrollbar-color: #39414b #11161d;
}

html[data-theme="dark"] *::-webkit-scrollbar-thumb {
  background: #39414b;
  border: 2px solid #11161d;
  border-radius: 999px;
}

html[data-theme="dark"] *::-webkit-scrollbar-track {
  background: #11161d;
}

/* =========================================================
   2026-07-31 v65: prevent the desktop dark navigation surface
   from extending below the compact 42px header.
   ========================================================= */
@media (min-width: 721px) {
  .node-header-inner,
  .node-nav,
  .node-nav > a {
    height: 42px;
    min-height: 42px;
  }

  .node-nav {
    align-self: stretch;
    align-items: center;
    overflow: hidden;
    background: transparent !important;
    box-shadow: none !important;
  }

  .node-nav > a {
    display: inline-flex;
    align-items: center;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: transparent !important;
  }

  html[data-theme="dark"] .node-nav {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }
}

/* 2026-08-02 v2: refined compact cloud download card */
.markdown-content .md-download{
  position:relative;
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  margin:15px 0;
  padding:9px 11px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:10px;
  background:linear-gradient(135deg,var(--card) 0%,var(--bg-tertiary) 165%);
  box-shadow:0 3px 12px rgba(35,43,49,.045);
}
.markdown-content .md-download-icon{
  position:relative;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid rgba(45,164,78,.14);
  border-radius:9px;
  background:var(--accent-soft);
  color:var(--green);
}
.markdown-content .md-download-icon svg{
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
  transform:translateY(-2px);
}
.markdown-content .md-download-icon span{
  position:absolute;
  right:3px;
  bottom:3px;
  max-width:28px;
  overflow:hidden;
  padding:1px 3px;
  border-radius:3px;
  background:var(--green);
  color:#fff;
  font:800 6px/1.15 var(--font-sans);
  letter-spacing:.025em;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.markdown-content .md-download-main{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:3px;
}
.markdown-content .md-download-heading{
  min-width:0;
  display:flex;
  align-items:center;
  gap:7px;
  overflow:hidden;
}
.markdown-content .md-download-name{
  min-width:0;
  overflow:hidden;
  color:var(--ink);
  font-size:14px;
  font-weight:800;
  line-height:1.3;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.markdown-content .md-download-status{
  flex:none;
  display:inline-flex;
  align-items:center;
  gap:4px;
  color:var(--green);
  font-size:9.5px;
  font-weight:700;
  line-height:1.2;
  white-space:nowrap;
}
.markdown-content .md-download-status::before{
  content:"";
  width:5px;
  height:5px;
  flex:none;
  border-radius:50%;
  background:currentColor;
  box-shadow:0 0 0 3px rgba(45,164,78,.08);
}
.markdown-content .md-download-status.is-protected{
  color:#ad7000;
}
.markdown-content .md-download-status.is-protected::before{
  box-shadow:0 0 0 3px rgba(208,135,0,.09);
}
.markdown-content .md-download-meta{
  min-width:0;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:3px 0;
  color:var(--muted);
  font-size:10.5px;
  line-height:1.3;
}
.markdown-content .md-download-meta>span{
  display:inline-flex;
  align-items:center;
  min-width:0;
}
.markdown-content .md-download-meta>span+span::before{
  content:"";
  width:3px;
  height:3px;
  margin:0 7px;
  border-radius:50%;
  background:var(--muted);
  opacity:.38;
}
.markdown-content .md-download-code code{
  margin-left:4px;
  padding:1px 5px;
  border:0;
  border-radius:4px;
  background:var(--accent-soft);
  color:var(--green);
  font-size:9.5px;
  font-weight:800;
}
.markdown-content .md-download-action,
.markdown-content .md-download>a.md-download-action{
  min-width:84px;
  height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:0 10px;
  border:1px solid var(--green);
  border-radius:8px;
  background:var(--green);
  color:#fff!important;
  font-size:11px;
  font-weight:800;
  line-height:1;
  text-decoration:none!important;
  white-space:nowrap;
  box-shadow:0 2px 7px rgba(45,164,78,.13);
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease;
}
.markdown-content .md-download-action svg{
  width:13px;
  height:13px;
  flex:none;
  fill:currentColor;
}
.markdown-content .md-download-action:hover{
  color:#fff!important;
  transform:translateY(-1px);
  filter:brightness(.96);
  box-shadow:0 4px 10px rgba(45,164,78,.18);
}
html[data-theme="dark"] .markdown-content .md-download{
  border-color:#303842;
  background:linear-gradient(135deg,#161b22 0%,#1b232c 100%);
  box-shadow:0 4px 14px rgba(0,0,0,.15);
}
html[data-theme="dark"] .markdown-content .md-download-status.is-protected{
  color:#e1a63a;
}
@media(max-width:560px){
  .markdown-content .md-download{
    grid-template-columns:32px minmax(0,1fr) 32px;
    gap:8px;
    padding:8px 9px;
  }
  .markdown-content .md-download-icon{
    width:32px;
    height:32px;
  }
  .markdown-content .md-download-heading{
    gap:6px;
  }
  .markdown-content .md-download-name{
    font-size:13px;
  }
  .markdown-content .md-download-status{
    font-size:9px;
  }
  .markdown-content .md-download-action,
  .markdown-content .md-download>a.md-download-action{
    width:32px;
    min-width:32px;
    height:32px;
    padding:0;
    border-radius:8px;
  }
  .markdown-content .md-download-action span{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
  }
  .markdown-content .md-download-meta{
    font-size:10px;
  }
}

/* 2026-08-04: mobile single-video player blank-space fix */
.node-video-section > .node-video-item[hidden],
.node-video-playlist[hidden],
.node-video-message[hidden]{
  display:none!important;
}

.node-video-shell{
  position:relative;
}

.node-video-player{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  min-height:0;
}

@media(max-width:720px){
  .node-video-section.is-single-video{
    background:#050505;
  }

  .node-video-section.is-single-video .node-video-shell{
    width:100%;
    height:auto;
    min-height:0!important;
    aspect-ratio:16/9;
  }

  .node-video-section.is-single-video .node-video-player{
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    object-fit:contain;
  }
}

/* Inline member authentication modal */
.member-auth-modal[hidden]{display:none!important}
.member-auth-modal{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:20px}
.member-auth-modal__backdrop{position:absolute;inset:0;background:rgba(15,23,42,.48);backdrop-filter:blur(8px)}
.member-auth-modal__dialog{position:relative;width:min(430px,100%);max-height:calc(100vh - 40px);overflow:auto;padding:32px;background:var(--bg-secondary,#fff);color:var(--text-main,#1e293b);border:1px solid var(--border,rgba(0,0,0,.08));border-radius:22px;box-shadow:0 24px 80px rgba(15,23,42,.24);animation:auth-modal-in .18s ease-out}
.member-auth-modal__close{position:absolute;top:14px;right:16px;width:34px;height:34px;border:0;border-radius:50%;background:transparent;color:var(--text-muted,#64748b);font-size:28px;line-height:1;cursor:pointer}
.member-auth-modal__close:hover{background:var(--bg-tertiary,#f1f5f9);color:var(--text-main,#1e293b)}
.member-auth-modal__brand{color:var(--accent,#2e9d67);font-size:12px;font-weight:800;letter-spacing:.16em;text-transform:uppercase}
.member-auth-modal__dialog h2{margin:8px 0 6px;font-size:28px}
.member-auth-modal__subtitle{margin:0 0 24px;color:var(--text-muted,#64748b);font-size:14px}
.member-auth-modal__dialog form{display:grid;gap:15px}
.member-auth-modal__dialog label{display:grid;gap:7px;color:var(--text-main,#1e293b);font-size:14px;font-weight:650}
.member-auth-modal__dialog input{width:100%;box-sizing:border-box;padding:13px 14px;border:1px solid var(--border,rgba(0,0,0,.08));border-radius:12px;background:var(--bg-primary,#fff);color:var(--text-main,#1e293b);font:inherit;outline:none;transition:border-color .18s,box-shadow .18s}
.member-auth-modal__dialog input:focus{border-color:var(--accent,#2e9d67);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent,#2e9d67) 16%,transparent)}
.member-auth-modal__status{min-height:20px;margin:0;color:var(--accent,#2e9d67);font-size:13px}
.member-auth-modal__status.is-error{color:#dc5b5b}.member-auth-modal__status.is-success{color:var(--accent,#2e9d67)}
.member-auth-modal__submit{padding:13px 16px;border:0;border-radius:12px;background:var(--accent,#2e9d67);color:#fff;font:inherit;font-weight:750;cursor:pointer;transition:filter .18s,transform .18s}
.member-auth-modal__submit:hover{filter:brightness(1.06);transform:translateY(-1px)}.member-auth-modal__submit:disabled{opacity:.65;cursor:wait;transform:none}
.member-auth-modal__switch{margin:20px 0 0;text-align:center;color:var(--text-muted,#64748b);font-size:14px}.member-auth-modal__switch button{padding:0;border:0;background:none;color:var(--accent,#2e9d67);font:inherit;cursor:pointer}
html.has-auth-modal{overflow:hidden}
@keyframes auth-modal-in{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
[data-theme='dark'] .member-auth-modal__backdrop,.dark-mode .member-auth-modal__backdrop{background:rgba(0,0,0,.66)}
[data-theme='dark'] .member-auth-modal__dialog,.dark-mode .member-auth-modal__dialog{background:#18181b;color:#f1f5f9;border-color:rgba(255,255,255,.1);box-shadow:0 24px 80px rgba(0,0,0,.46)}
[data-theme='dark'] .member-auth-modal__dialog input,.dark-mode .member-auth-modal__dialog input{background:#202023;color:#f1f5f9;border-color:rgba(255,255,255,.1)}
[data-theme='dark'] .member-auth-modal__close:hover,.dark-mode .member-auth-modal__close:hover{background:#202023;color:#f1f5f9}
@media (max-width:520px){.member-auth-modal{padding:12px}.member-auth-modal__dialog{padding:28px 20px;border-radius:18px;max-height:calc(100vh - 24px)}}

/* Final mobile override: keep code readable on narrow screens. */
@media (max-width: 720px) {
  .markdown-content code,
  .article-body code,
  .node-main > .article code,
  .markdown-content pre,
  .markdown-content pre code,
  .markdown-content pre code.hljs,
  .article-body pre,
  .article-body pre code,
  .node-main > .article pre,
  .node-main > .article pre code,
  .hljs {
    font-family: var(--code-font-family) !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
    font-variant-ligatures: common-ligatures contextual !important;
    -webkit-font-smoothing: antialiased;
  }

  .markdown-content pre,
  .article-body pre,
  .node-main > .article pre {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 1em 0 !important;
    padding: 12px 14px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: pre !important;
  }

  .markdown-content pre code,
  .markdown-content pre code.hljs,
  .article-body pre code,
  .node-main > .article pre code {
    display: block !important;
    min-width: max-content !important;
    padding: 0 !important;
    white-space: inherit !important;
  }
}
