*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,sans-serif;background:#f5f6f8;color:#1a1d21}.layout{display:flex;min-height:100vh}.sidebar{width:220px;background:#1a1d21;color:#fff;padding:24px 16px}.sidebar h1{font-size:18px;margin:0 0 24px}.sidebar nav a{display:block;color:#c7c9cc;text-decoration:none;padding:8px 0}.sidebar nav a.active,.sidebar nav a:hover{color:#fff}.content{flex:1;padding:32px;max-width:900px}table{width:100%;border-collapse:collapse;background:#fff}th,td{text-align:left;padding:8px 12px;border-bottom:1px solid #e5e7eb;font-size:14px}form{display:flex;flex-direction:column;gap:12px;max-width:480px}input,textarea,select{padding:8px;border:1px solid #d1d5db;border-radius:4px;font-size:14px;font-family:inherit}button{padding:8px 16px;border:none;border-radius:4px;background:#2563eb;color:#fff;cursor:pointer;font-size:14px;width:fit-content}button:hover{background:#1d4ed8}.status-badge{display:inline-block;padding:2px 8px;border-radius:10px;font-size:12px;background:#e5e7eb}.error{color:#dc2626;font-size:14px}.login-screen{display:flex;align-items:center;justify-content:center;min-height:100vh}button.secondary{background:#fff;color:#2563eb;border:1px solid #2563eb}button.secondary:hover{background:#eff6ff}button.danger{background:#fff;color:#dc2626;border:1px solid #dc2626}button.danger:hover{background:#fef2f2}button:disabled{cursor:not-allowed;opacity:.45;pointer-events:none}.hint{color:#6b7280;font-size:13px;margin:0}.actions-cell{display:flex;gap:8px}.telegram-auth{display:flex;flex-direction:column;align-items:flex-start;gap:10px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:6px;padding:12px 14px}.telegram-auth .hint,.telegram-auth .check-ok,.telegram-auth .error{margin:0}.check-ok{color:#16a34a;font-size:14px}.form-with-preview{display:flex;gap:32px;align-items:flex-start;flex-wrap:wrap}.preview-pane{flex:1;min-width:280px;max-width:420px}.preview-pane h3{margin-top:0}.tg-message{background:#fff;border:1px solid #e5e7eb;border-radius:12px 12px 12px 4px;padding:12px 14px;font-size:14px;line-height:1.45;overflow-wrap:break-word}.tg-message code{background:#f3f4f6;padding:1px 4px;border-radius:3px;font-size:13px}.tg-photo{max-width:100%;border-radius:8px;margin-bottom:8px;display:block}.char-counter{margin-top:8px;font-size:13px;color:#6b7280}.publication-body{background:#fff;border:1px solid #e5e7eb;border-radius:4px;padding:12px;white-space:pre-wrap;font-family:inherit;font-size:14px;max-width:640px}
