.article-page { background: var(--bg-primary, #f5f7fb); }
.article-shell { width: min(1040px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 56px; }
.article-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 8px 0 24px; border-bottom: 1px solid var(--border-color, #dcdfe6); }
.article-page-head h1 { margin: 0; font-size: 30px; line-height: 1.2; letter-spacing: 0; }
.article-page-head p { margin: 8px 0 0; color: var(--text-muted, #86909c); font-size: 14px; }
.article-search { display: grid; gap: 8px; padding: 24px 0; }
.article-search > label { color: var(--text-secondary, #4e5969); font-size: 13px; font-weight: 700; }
.article-search > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.article-results { padding-top: 10px; }
.article-results > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; border-bottom: 2px solid var(--text-primary, #1f2329); }
.article-results > header h2 { margin: 0; font-size: 18px; letter-spacing: 0; }
.article-results > header span { color: var(--text-muted, #86909c); font-size: 12px; }
.article-list, .tree-list { display: grid; }
.article-row, .tree-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; min-height: 112px; padding: 20px 4px; border-bottom: 1px solid var(--border-light, #edf0f5); }
.article-row h3, .tree-row h3 { margin: 0; font-size: 18px; line-height: 1.4; letter-spacing: 0; }
.article-row h3 a, .tree-row h3 a { color: var(--text-primary, #1f2329); text-decoration: none; }
.article-row h3 a:hover, .tree-row h3 a:hover { color: var(--accent, #0052d9); }
.article-row p, .tree-row p { max-width: 760px; margin: 8px 0; color: var(--text-secondary, #4e5969); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--text-muted, #86909c); font-size: 12px; }
.article-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.article-state { margin: 0; padding: 44px 8px; color: var(--text-muted, #86909c); text-align: center; }
.article-tabs { display: inline-flex; margin: 24px 0 6px; padding: 3px; border: 1px solid var(--border-color, #dcdfe6); border-radius: 6px; background: var(--bg-surface, #fff); }
.article-tabs button { min-height: 34px; padding: 0 15px; border: 0; border-radius: 4px; background: transparent; color: var(--text-secondary, #4e5969); font: inherit; font-size: 13px; cursor: pointer; }
.article-tabs button.active { background: var(--accent, #0052d9); color: #fff; }
.article-back { display: inline-flex; margin-bottom: 24px; color: var(--text-secondary, #4e5969); text-decoration: none; font-size: 13px; }
.article-detail { width: min(800px, 100%); margin: 0 auto; }
.article-detail-head { padding-bottom: 24px; border-bottom: 1px solid var(--border-color, #dcdfe6); }
.article-detail-head h1 { margin: 0; font-size: 34px; line-height: 1.3; letter-spacing: 0; overflow-wrap: anywhere; }
.article-detail-head .article-meta { margin-top: 14px; }
.article-detail-actions { display: flex; gap: 8px; margin-top: 18px; }
.article-content { padding: 30px 0; color: var(--text-primary, #1f2329); font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.article-content img { max-width: 100%; height: auto; }
.article-content pre { max-width: 100%; overflow: auto; padding: 14px; border-radius: 6px; background: #111827; color: #f9fafb; }
.article-content a { color: var(--accent, #0052d9); }
.tree-create-form { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(260px, 1.2fr) auto; gap: 14px; align-items: end; margin: 22px 0 8px; padding: 18px; border: 1px solid var(--border-color, #dcdfe6); border-radius: 6px; background: var(--bg-surface, #fff); }
.tree-create-form label { display: grid; gap: 7px; color: var(--text-secondary, #4e5969); font-size: 13px; font-weight: 700; }
.tree-create-form textarea { min-height: 40px; }
.tree-create-form > div { display: flex; gap: 8px; }
.tree-row { min-height: 96px; }
.status-private { color: var(--text-muted, #86909c); }
.status-public { color: var(--td-success-color, #00a870); }
.status-moderated { color: var(--td-error-color, #d54941); }
@media (max-width: 720px) {
  .article-shell { width: min(100% - 24px, 1040px); padding-top: 22px; }
  .article-page-head { align-items: flex-start; }
  .article-page-head h1 { font-size: 25px; }
  .article-row, .tree-row { grid-template-columns: 1fr; gap: 10px; }
  .article-actions { justify-content: flex-start; }
  .article-detail-head h1 { font-size: 28px; }
  .tree-create-form { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .article-page-head { display: grid; }
  .article-page-head .td-button { justify-self: start; }
  .article-search > div { grid-template-columns: 1fr; }
  .article-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; box-sizing: border-box; }
}
