:root {
    --bg: #0c0c10;
    --sidebar: #121218;
    --card: #1a1a22;
    --border: #2a2a35;
    --text: #f0f0f5;
    --text-muted: #8a8a9a;
    --accent: #6c5ce7;
    --accent-hover: #7f71ef;
    --danger: #e74c3c;
    --success: #2ecc71;
    --warning: #f39c12;
    --blue: #3498db;
    --radius: 12px;
    --chat-bg: linear-gradient(180deg, #0f0f13 0%, #1a1a22 100%);
    --msg-mine: #3d2f8c;
    --msg-other: #1e1e28;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }
.muted { color: var(--text-muted); }

/* AUTH */
.auth-screen {
    position: fixed; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(ellipse at 30% 20%, #1a1530 0%, var(--bg) 60%);
    z-index: 100;
    padding: 16px;
}
.auth-box {
    width: 100%; max-width: 360px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
}
.auth-logo {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--accent), #a29bfe);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
}
.auth-logo svg { width: 28px; height: 28px; color: #fff; }
.auth-box h1 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.auth-err { color: var(--danger); font-size: 13px; min-height: 20px; margin-bottom: 8px; }
.input-group {
    display: flex; align-items: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}
.input-group .prefix {
    padding: 0 4px 0 14px;
    color: var(--text-muted);
    font-size: 15px;
}
.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    padding: 12px 14px;
    font-size: 15px;
}
.auth-btn {
    width: 100%;
    padding: 13px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
}
.auth-btn:hover { background: var(--accent-hover); }
.auth-switch { margin-top: 18px; font-size: 14px; color: var(--text-muted); }
.auth-switch a { color: var(--accent); cursor: pointer; margin-left: 6px; }

/* FROZEN */
.frozen-banner {
    position: fixed; top: 0; left: 0; right: 0;
    background: #5c3a00;
    color: #ffeaa7;
    z-index: 90;
    padding: 10px 16px;
    font-size: 13px;
}
.frozen-content { display: flex; align-items: center; gap: 10px; justify-content: center; }
.frozen-content svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Custom rotating snowflake */
@keyframes snowflake-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.snowflake-spin {
    display: inline-block;
    vertical-align: -3px;
    color: #7ec8ff;
    animation: snowflake-rotate 4s linear infinite;
    flex-shrink: 0;
}
.frozen-nick {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9ec9e8;
    font-weight: 600;
}
.frozen-about {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8ab4d4;
}
.frozen-about-line { color: #8ab4d4; }
.frozen-status {
    font-size: 13px;
    color: #8a93a3;
    margin: 4px 0 8px;
}
.profile-card-frozen .profile-avatar-lg,
.is-frozen-avatar,
.avatar.is-frozen-avatar,
.avatar-sm.is-frozen-avatar,
.msg-avatar.is-frozen-avatar,
.profile-avatar-lg.is-frozen-avatar {
    background-color: #6b7280 !important;
    background-image: none !important;
    color: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ghost-avatar-svg {
    display: block;
    width: 70%;
    height: 70%;
    pointer-events: none;
}
.msg-avatar.is-frozen-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}
.msg-avatar.is-frozen-avatar .ghost-avatar-svg {
    width: 72%;
    height: 72%;
}

/* Undelivered message notice */
.msg-undelivered {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    color: #e74c3c;
    font-weight: 500;
}
.msg-undelivered-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}
.frozen-chat-item .chat-name { color: #9ec9e8; }

/* LAYOUT */
.app-layout {
    display: flex;
    height: 100%;
    height: 100dvh;
}
.sidebar {
    width: 320px;
    min-width: 280px;
    background: var(--sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.sidebar-header { padding: 12px; border-bottom: 1px solid var(--border); }
.nav-tabs { display: flex; gap: 4px; }
.nav-tab {
    flex: 1;
    padding: 8px 4px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
}
.nav-tab.active { background: var(--card); color: var(--text); }

.search-container { padding: 10px 12px; position: relative; }
.search-input-wrap {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 12px;
}
.search-input-wrap svg { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
.search-input-wrap input {
    flex: 1; background: transparent; border: none; outline: none;
    color: var(--text); padding: 10px 0; font-size: 14px;
}
.search-result {
    position: absolute; left: 12px; right: 12px; top: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    z-index: 20;
    margin-top: 4px;
    overflow: hidden;
}
.search-hit {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; cursor: pointer;
}
.search-hit:hover { background: var(--bg); }
.search-miss { padding: 12px; color: var(--text-muted); font-size: 13px; }

.chat-list { flex: 1; overflow-y: auto; padding: 4px 0; }
.chat-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; cursor: pointer;
}
.chat-item:hover, .chat-item.active { background: var(--card); }
.avatar, .avatar-sm {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--accent);
    background-size: cover;
    background-position: center;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 16px; color: #fff;
    flex-shrink: 0;
}
.avatar-sm { width: 36px; height: 36px; font-size: 14px; }
.chat-info { flex: 1; min-width: 0; }
.chat-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-preview { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.global-tag {
    font-size: 10px; font-weight: 500;
    background: var(--accent); color: #fff;
    padding: 1px 6px; border-radius: 6px;
}
.verified-badge { color: #3498db; vertical-align: middle; flex-shrink: 0; }

.sidebar-footer {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid var(--border);
    cursor: pointer;
}
.sidebar-footer:hover { background: var(--card); }
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 14px; font-weight: 600; }
.user-status { font-size: 12px; color: var(--success); }

/* MAIN */
.main-content { flex: 1; display: flex; flex-direction: column; height: 100%; min-width: 0; }
.view { flex: 1; display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.view.hidden { display: none !important; }

.chat-empty {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: var(--text-muted); gap: 8px;
}
.empty-icon svg { width: 48px; height: 48px; opacity: 0.4; }
.chat-empty h2 { font-size: 18px; color: var(--text); }
.chat-empty p { font-size: 14px; }

.chat-area { flex: 1; display: flex; flex-direction: column; height: 100%; }
.chat-header {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--sidebar);
}
.chat-header-info { flex: 1; cursor: pointer; min-width: 0; }
.chat-title { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.chat-status { font-size: 12px; color: var(--text-muted); }

.chat-messages {
    flex: 1; overflow-y: auto;
    padding: 16px;
    background: var(--chat-bg);
    display: flex; flex-direction: column; gap: 8px;
}
.msg-row { display: flex; gap: 8px; max-width: 85%; }
.msg-row.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600; color: #fff;
    flex-shrink: 0; cursor: pointer; overflow: hidden;
}
.msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.msg-bubble {
    background: var(--msg-other);
    border-radius: 14px;
    padding: 8px 12px;
    max-width: 100%;
}
.msg-row.mine .msg-bubble { background: var(--msg-mine); }
.msg-author {
    font-size: 12px; font-weight: 600; margin-bottom: 2px;
    cursor: pointer; color: var(--accent);
    display: flex; align-items: center; gap: 4px;
}
.msg-login { font-weight: 400; color: var(--text-muted); font-size: 11px; }
.msg-text { font-size: 14px; line-height: 1.4; word-break: break-word; white-space: pre-wrap; }
.msg-time { font-size: 10px; color: var(--text-muted); margin-top: 4px; text-align: right; }
.msg-img { max-width: 220px; border-radius: 10px; display: block; cursor: pointer; }

.chat-input-area {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    background: var(--sidebar);
}
.chat-input-area input {
    flex: 1; background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 10px 16px;
    color: var(--text); outline: none; font-size: 14px;
}
.icon-btn {
    width: 40px; height: 40px;
    border: none; background: transparent;
    color: var(--text-muted);
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: var(--card); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }
.send-btn { color: var(--accent); }
.back-btn { display: none; }

/* PAGE HEADER */
.page-header {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--sidebar);
}
.page-header h2 { flex: 1; font-size: 16px; font-weight: 600; }
.btn-primary {
    background: var(--accent); color: #fff;
    border: none; border-radius: 8px;
    padding: 8px 14px; font-size: 13px; font-weight: 600;
    cursor: pointer;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
    background: transparent; color: var(--text-muted);
    border: 1px solid var(--border); border-radius: 8px;
    padding: 8px 14px; font-size: 13px; cursor: pointer;
}
.btn-red, .btn-green, .btn-blue, .btn-orange {
    border: none; border-radius: 6px;
    padding: 6px 10px; font-size: 12px; font-weight: 500;
    cursor: pointer; color: #fff;
}
.btn-red { background: var(--danger); }
.btn-green { background: var(--success); }
.btn-blue { background: var(--blue); }
.btn-orange { background: var(--warning); color: #1a1a1a; }

/* EDITOR */
.editor-container { flex: 1; overflow-y: auto; padding: 16px; }
.editor-title {
    width: 100%; background: transparent;
    border: none; border-bottom: 1px solid var(--border);
    color: var(--text); font-size: 20px; font-weight: 600;
    padding: 8px 0; outline: none; margin-bottom: 12px;
}
.editor-toolbar { display: flex; gap: 6px; margin-bottom: 12px; }
.editor-toolbar button {
    width: 36px; height: 36px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text); cursor: pointer;
}
.editor-content {
    min-height: 200px; padding: 12px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 10px; outline: none; font-size: 15px; line-height: 1.5;
}
.editor-content:empty:before {
    content: attr(data-placeholder);
    color: var(--text-muted);
}
.publish-result { margin-top: 12px; font-size: 14px; color: var(--success); }
.publish-result a { color: var(--accent); cursor: pointer; }

/* BG */
.bg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px; padding: 16px; overflow-y: auto;
}
.bg-card {
    border: 2px solid var(--border);
    border-radius: 12px; overflow: hidden;
    cursor: pointer;
}
.bg-card.selected { border-color: var(--accent); }
.bg-preview { height: 80px; }
.bg-name { padding: 8px; font-size: 13px; text-align: center; background: var(--card); }
.admin-quick { display: flex; flex-wrap: wrap; gap: 8px; }

/* PROFILE */
.profile-view-container { flex: 1; overflow-y: auto; padding: 24px 16px; }
.profile-card { text-align: center; max-width: 360px; margin: 0 auto; }
.profile-avatar-lg {
    width: 96px; height: 96px; border-radius: 50%;
    background: var(--accent); background-size: cover; background-position: center;
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; font-weight: 700; color: #fff;
}
.profile-card h2 { font-size: 22px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.profile-login { color: var(--text-muted); font-size: 14px; margin: 4px 0 12px; }
.profile-about { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.official-badge {
    display: inline-block;
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    font-size: 12px; font-weight: 600;
    padding: 4px 10px; border-radius: 20px;
    margin-bottom: 16px;
}
.profile-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.admin-profile-actions {
    display: flex; flex-wrap: wrap; gap: 6px;
    justify-content: center; margin-top: 12px;
}

/* ADMIN */
.admin-content { flex: 1; overflow-y: auto; padding: 12px; }
.admin-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
}
.admin-user { font-size: 14px; margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.status-tag {
    font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 500;
}
.status-active { background: rgba(46, 204, 113, 0.15); color: var(--success); }
.status-frozen { background: rgba(243, 156, 18, 0.15); color: var(--warning); }
.status-blocked { background: rgba(231, 76, 60, 0.15); color: var(--danger); }

/* MODAL */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center;
    z-index: 200; padding: 16px;
}
.modal-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    width: 100%; max-width: 420px;
    max-height: 80vh; overflow-y: auto;
    position: relative;
}
.modal-close {
    position: absolute; top: 12px; right: 14px;
    background: none; border: none; color: var(--text-muted);
    font-size: 22px; cursor: pointer;
}
.article-meta { font-size: 12px; color: var(--text-muted); margin: 8px 0 12px; }
.article-body { font-size: 14px; line-height: 1.6; }
.article-body img { max-width: 100%; border-radius: 8px; margin: 8px 0; }

/* TOAST */
.toast {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 300;
    opacity: 0;
    transition: all 0.25s ease;
    pointer-events: none;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* MOBILE */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        min-width: 0;
        position: absolute;
        inset: 0;
        z-index: 10;
    }
    .main-content {
        position: absolute;
        inset: 0;
        z-index: 5;
    }
    .app-layout.chat-open .sidebar { display: none; }
    .app-layout.chat-open .main-content { z-index: 15; }
    .back-btn { display: flex; }
    .chat-area:not(.hidden) ~ .chat-empty { display: none; }
}

/* When chat is open on mobile, hide sidebar via JS helper if needed — keep simple */
@media (max-width: 768px) {
    body.chat-active .sidebar { transform: translateX(-100%); pointer-events: none; }
    body.chat-active .main-content { z-index: 20; }
}

.chat-item.panel-item .avatar {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}
.chat-item.panel-item:nth-of-type(2) .avatar {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}
.admin-tag { background: #6c5ce7 !important; }
.mod-tag { background: #f39c12 !important; color: #1a1a1a !important; }

.msg-row.mine .msg-text { color: #fff; }

/* Isolated FernoGraph article/background screens: preserve the messenger, hide its chrome only while these screens are active. */
.app-layout.editor-isolated { display:block; }
.app-layout.editor-isolated .sidebar { display:none !important; }
.app-layout.editor-isolated .main-content { width:100%; max-width:none; margin:0; position:fixed; inset:0; z-index:30; overflow:auto; }

.app-layout.editor-isolated #createView,
.app-layout.editor-isolated #bgView { min-height:100vh; width:100%; }
.app-layout.editor-isolated #createView .page-header,
.app-layout.editor-isolated #bgView .page-header { position:sticky; top:0; z-index:2; }
.app-layout.editor-isolated #createView .editor-container { width:min(850px,100%); margin:0 auto; min-height:calc(100vh - 72px); box-sizing:border-box; padding:clamp(16px,4vw,48px); }
.app-layout.editor-isolated #createView .editor-title { width:100%; box-sizing:border-box; }
.app-layout.editor-isolated #createView .editor-content { min-height:55vh; }
.app-layout.editor-isolated #bgView .bg-grid { max-width:1100px; margin:0 auto; padding:16px; }
@media (max-width:768px) {
  .app-layout.editor-isolated .main-content { inset:0; width:100vw; height:100dvh; }
  .app-layout.editor-isolated #createView .page-header,
  .app-layout.editor-isolated #bgView .page-header { gap:8px; padding:10px; }
  .app-layout.editor-isolated #createView .editor-container { padding:14px; min-height:calc(100dvh - 60px); }
  .app-layout.editor-isolated #createView .editor-toolbar { flex-wrap:wrap; }
  .app-layout.editor-isolated #createView .editor-content { min-height:50dvh; }
}


/* FernoGraph rich editor and Telegraph-like public articles */
:root { --messenger-bg: var(--chat-bg); --chat-text: var(--text); }
.chat-messages { background: var(--messenger-bg); color: var(--chat-text); }
.chat-area { background: var(--messenger-bg); }
.editor-container {
    width: min(920px, 100%);
    margin: 0 auto;
    padding: clamp(18px, 4vw, 48px);
    background: #fff;
    color: #202124;
    min-height: calc(100% - 56px);
}
.editor-title {
    color: #202124;
    border-bottom-color: #e7e7e7;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    padding: 12px 0 18px;
}
.editor-title::placeholder { color: #a0a0a0; }
.editor-title.editor-title-dark { background: #111; color: #f5f5f5; padding-left: 12px; padding-right: 12px; }
.editor-content {
    min-height: 55vh;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #222;
    padding: 18px 0 40px;
    font-size: 18px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.editor-content.editor-dark { background: #111; color: #f5f5f5; padding: 18px 14px 40px; }
.editor-toolbar-rich { flex-wrap: wrap; align-items: center; }
.editor-toolbar-rich select {
    max-width: 180px; min-height: 36px; padding: 0 8px;
    border: 1px solid #ddd; border-radius: 7px; background: #fff; color: #222;
}
.editor-toolbar-rich button { background: #fff; color: #222; border-color: #ddd; }
.editor-toolbar-rich button:hover { background: #eef7ff; }
.editor-settings { display:flex; flex-wrap:wrap; align-items:center; gap:8px; color:#555; font-size:13px; margin:8px 0; }
.article-theme-option { border:1px solid #ccc; border-radius:7px; padding:6px 12px; background:#fff; color:#222; cursor:pointer; }
.article-theme-option.selected { border-color:#3498db; box-shadow:0 0 0 2px #3498db22; }
.article-link, .article-body a { color:#159be8 !important; text-decoration:underline; text-decoration-color:#159be8; cursor:pointer; }
.article-link:hover, .article-body a:hover { color:#55c7ff !important; text-shadow:0 0 8px #24baff88; }
.publish-result button { margin-left:8px; }

.bg-grid {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:7px;
    padding:12px;
    max-width:380px;
    width:100%;
    margin:0 auto;
}
.bg-card {
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
    min-height:48px;
    padding:5px 8px;
    text-align:left;
    background:var(--card);
    color:var(--text);
    border:1px solid var(--border);
    border-radius:9px;
}
.bg-card.selected { border-color:var(--accent); }
.bg-preview {
    display:block;
    width:46px;
    height:30px;
    flex:0 0 46px;
    border-radius:6px;
}
.bg-name { padding:0; font-size:13px; text-align:left; background:transparent; }

.article-full-view {
    position:fixed;
    inset:0;
    z-index:50;
    overflow-y:auto !important;
    display:block;
    height:100dvh;
    background:#fff;
}
.article-view-top {
    position:sticky;
    top:0;
    z-index:2;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:12px max(16px, calc((100vw - 760px)/2));
    background:rgba(255,255,255,.94);
    border-bottom:1px solid #eee;
    backdrop-filter:blur(12px);
}
.article-view-brand { font-weight:700; color:#222; letter-spacing:.2px; }
.full-article-paper {
    width:min(740px,100%);
    min-height:calc(100dvh - 55px);
    margin:0 auto;
    padding:clamp(30px,7vw,76px) clamp(20px,5vw,42px);
    color:#222;
    background:#fff;
}
.full-article-header h1 {
    font-size:clamp(32px,5vw,46px);
    line-height:1.15;
    font-weight:700;
    letter-spacing:-1px;
    overflow-wrap:anywhere;
}
.full-article-header .article-meta { margin:18px 0 34px; color:#999; font-size:13px; }
.full-article-body { font-size:18px; line-height:1.75; overflow-wrap:anywhere; }
.full-article-body p { margin:0 0 1em; }
.full-article-body img { display:block; max-width:100%; height:auto; margin:24px auto; border-radius:3px; }
.full-article-body h1,.full-article-body h2,.full-article-body h3 { line-height:1.25; margin:1.2em 0 .5em; }
.full-article-body blockquote { border-left:3px solid #159be8; padding-left:18px; color:#666; margin:20px 0; }
.article-paper-dark { background:#111; color:#eee; }
.article-paper-dark .article-meta { color:#aaa; }
.article-paper-dark .full-article-body blockquote { color:#bbb; }
.article-blocked-view { background:#fff; }
.article-blocked-view .article-view-top { display:none; }
.article-blocked-view .full-article-paper {
    width:100%; min-height:100dvh; padding:24px; display:flex; align-items:center; justify-content:center;
}
.blocked-article-message { display:flex; flex-direction:column; align-items:center; gap:14px; text-align:center; color:#222; }
.blocked-article-message strong { font-size:clamp(72px,15vw,130px); line-height:1; font-weight:800; letter-spacing:-5px; }
.blocked-article-message span { font-size:clamp(16px,2vw,21px); }

.app-layout.editor-isolated .main-content { overflow:hidden; }
.app-layout.editor-isolated #createView { overflow-y:auto; }
.app-layout.editor-isolated #createView .editor-container { min-height:calc(100dvh - 60px); }
.app-layout.editor-isolated #articleView { overflow-y:auto; }
@media(max-width:768px) {
    .editor-toolbar-rich select { max-width:145px; }
    .full-article-body { font-size:17px; }
    .article-view-top { padding:10px 12px; }
}
