.latest-blog-panel { margin-top:26px; padding:clamp(20px,4vw,34px); }
.latest-blog-top { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:18px; }
.latest-blog-top h2 { margin:0; font-size:1.55rem; font-weight:400; }
.blog-link-button,.top-link { color:var(--text); text-decoration:none; border:1px solid var(--line-soft); padding:9px 12px; font-size:.82rem; }
.blog-link-button:hover,.top-link:hover { border-color:var(--line); background:#151313; }
.latest-blog-card { border-top:1px solid var(--line-soft); padding-top:18px; }
.latest-blog-card h3 { margin:0 0 7px; font-size:1.25rem; font-weight:400; }
.latest-blog-card time,.blog-post time { color:var(--muted); font-size:.76rem; }
.latest-blog-card p { color:var(--muted); line-height:1.65; margin:12px 0 0; }
.latest-blog-media { margin-top:14px; max-width:420px; }
.latest-blog-media img,.latest-blog-media video { width:100%; max-height:260px; object-fit:cover; border:1px solid var(--line-soft); display:block; }
.latest-blog-media audio { width:100%; }

.simple-topbar { grid-template-columns:1fr auto 1fr; }
.blog-shell,.admin-shell { width:min(900px,calc(100% - 32px)); margin:38px auto 70px; }
.blog-header-panel { padding:clamp(26px,5vw,50px); margin-bottom:24px; }
.blog-title { margin:0; font-size:clamp(2rem,7vw,4rem); font-weight:400; }
.blog-subtitle { color:var(--muted); line-height:1.6; margin:12px 0 0; }
.blog-list { display:flex; flex-direction:column; gap:22px; }
.blog-post { padding:clamp(22px,4vw,38px); }
.blog-post-head { display:flex; align-items:start; justify-content:space-between; gap:20px; padding-bottom:15px; margin-bottom:18px; border-bottom:1px solid var(--line-soft); }
.blog-post-head h2 { margin:0; font-weight:400; font-size:clamp(1.35rem,4vw,2rem); }
.blog-post time { white-space:nowrap; padding-top:4px; }
.blog-body { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.8; color:var(--text); }
.blog-media-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:24px; }
.blog-attachment { min-width:0; }
.blog-attachment img,.blog-attachment video { width:100%; max-height:520px; object-fit:contain; display:block; background:#050505; border:1px solid var(--line-soft); }
.blog-attachment audio { width:100%; display:block; }
.blog-attachment small { display:block; color:var(--muted); font-size:.7rem; margin-top:7px; overflow-wrap:anywhere; }
.blog-empty { padding:30px; color:var(--muted); }
.blog-empty h2 { color:var(--text); font-weight:400; }

.admin-shell { width:min(820px,calc(100% - 32px)); display:flex; flex-direction:column; gap:22px; }
.admin-login,.composer,.preview-panel { padding:clamp(22px,4vw,38px); }
.admin-help { color:var(--muted); line-height:1.65; max-width:680px; }
.field-label { display:block; margin:22px 0 8px; color:var(--muted); font-size:.78rem; text-transform:uppercase; letter-spacing:.1em; }
.token-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; }
.token-row input,.editor-input,.editor-textarea { width:100%; border:1px solid var(--line-soft); background:#080808; color:var(--text); font:inherit; padding:13px 14px; outline:none; border-radius:0; }
.token-row input:focus,.editor-input:focus,.editor-textarea:focus { border-color:var(--accent); }
.editor-textarea { resize:vertical; min-height:220px; line-height:1.6; }
.editor-button { border:1px solid var(--accent); background:#171313; color:var(--text); font:inherit; padding:12px 18px; cursor:pointer; }
.editor-button.secondary { border-color:var(--line-soft); background:#0b0b0b; }
.editor-button:disabled { opacity:.45; cursor:not-allowed; }
.text-button { border:0; background:transparent; color:var(--muted); font:inherit; cursor:pointer; text-decoration:underline; }
.composer-head { display:flex; justify-content:space-between; align-items:start; gap:20px; }
.composer-head h2 { margin:0; font-weight:400; }
.file-picker { display:flex; flex-direction:column; gap:3px; border:1px dashed var(--line); padding:18px; cursor:pointer; background:#0a0a0a; }
.file-picker small { color:var(--muted); }
.attachment-list { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.attachment-chip { border:1px solid var(--line-soft); padding:7px 9px; color:var(--muted); font-size:.72rem; }
.attachment-chip.too-large { border-color:#8c4848; color:#d08e8e; }
.composer-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:24px; }
.editor-status { min-height:1.4em; margin:12px 0 0; color:var(--muted); font-size:.8rem; line-height:1.5; }
.editor-status.error { color:#d08e8e; }
.editor-status.success { color:#8fb88f; }
.preview-panel .blog-post { padding:0; border:0; background:transparent; box-shadow:none; }

@media (max-width:700px) {
  .simple-topbar nav { display:none; }
  .simple-topbar { grid-template-columns:1fr auto; }
  .top-link { justify-self:end; }
  .blog-shell,.admin-shell { width:calc(100% - 16px); margin-top:18px; }
  .blog-post-head { display:block; }
  .blog-post time { display:block; margin-top:8px; }
  .blog-media-grid { grid-template-columns:1fr; }
  .latest-blog-top { align-items:start; }
  .token-row { grid-template-columns:1fr; }
  .composer-head { align-items:center; }
  .composer-actions { display:grid; grid-template-columns:1fr 1fr; }
  .editor-button { width:100%; }
}
