/* Simple modern responsive styles for the board */
*{box-sizing:border-box;font-family:Inter,Arial,Helvetica,sans-serif}
body{margin:0;background:#f6f8fb;color:#222}
.site-header{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;background:#0b5cff;color:#fff;border-bottom:1px solid rgba(255,255,255,0.18);box-shadow:0 6px 18px rgba(11,92,255,0.12)}
.site-header .brand{display:flex;align-items:center;gap:10px;flex:1}
.site-header .logo{font-weight:700}
.site-header .logo a{color:inherit;text-decoration:none}
.site-header .brand-links{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.site-header .brand-link{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,0.18);color:#fff;text-decoration:none;font-weight:700;font-size:14px;line-height:1;border:1px solid rgba(255,255,255,0.2)}
.site-header .brand-link:hover{background:rgba(255,255,255,0.28)}
.site-header .menu{display:flex;align-items:center;gap:10px;justify-content:flex-end;flex:1;flex-wrap:wrap}
.site-header .menu a{color:#ffffff;text-decoration:none;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,0.14);font-weight:700;font-size:14px;line-height:1;border:1px solid rgba(255,255,255,0.16)}
.site-header .menu a:hover{background:rgba(255,255,255,0.24)}
.termux-card{background:#f8fafc;border:1px solid #e5e7eb;border-radius:10px;padding:16px;margin-top:14px}
.termux-card ul,.termux-card ol{margin:8px 0 0 18px;padding:0}
.termux-card li{margin-bottom:8px}
.termux-card pre{background:#111827;color:#f9fafb;padding:12px;border-radius:8px;overflow-x:auto;white-space:pre-wrap}
.termux-card code{background:#e5e7eb;padding:2px 6px;border-radius:4px;font-family:monospace}
.termux-card a{color:#0b5cff;text-decoration:none}
.container{max-width:900px;margin:24px auto 28px;padding:16px}
.hero{background:#fff;padding:24px;border-radius:10px;box-shadow:0 6px 18px rgba(11,92,255,0.08)}
.recent{list-style:none;padding:0;margin:0}
.recent li{padding:10px 0;border-bottom:1px solid #f0f2f6}
.recent-title{display:block;color:#0b5cff;text-decoration:none;font-weight:600}
.recent .meta{display:block;color:#8890a6;font-size:13px;margin:2px 0 0}
.recent-preview{margin-top:6px;color:#4b5563;font-size:14px;line-height:1.5}
.meta{color:#8890a6;font-size:13px;margin-left:8px}
.site-footer{margin-top:24px;padding:20px 18px 28px;text-align:center;color:#8890a6;font-size:14px;border-top:1px solid #e5e7eb;background:#f8fafc}
.posts{list-style:none;padding:0}
.posts li{padding:12px 0;border-bottom:1px solid #eef2fb}
.post{background:#fff;padding:20px;border-radius:8px}
.comment{background:#fff;padding:10px;border-radius:6px;margin-bottom:8px}
form label{display:block;margin:10px 0}
input[type=text],input[type=password],input[type=email],textarea{width:100%;padding:10px;border:1px solid #d7dbe7;border-radius:6px}
button{background:#0b5cff;color:#fff;border:0;padding:10px 14px;border-radius:6px;cursor:pointer}
.auth-page{max-width:520px;margin:36px auto;padding:24px;background:#fff;border-radius:12px;box-shadow:0 10px 30px rgba(11,92,255,0.08)}
.auth-card h2{margin-top:0;color:#0b5cff}
.auth-card .hint{margin-bottom:10px}
.auth-card .message{padding:10px;border-radius:8px;background:#eef4ff;color:#1d4ed8;margin-bottom:12px}
.auth-card .message.error{background:#fee2e2;color:#b91c1c}
.user-chip{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,0.18);color:#fff;font-size:13px}
.admin-panel{background:#fff;padding:24px;border-radius:12px;box-shadow:0 10px 30px rgba(11,92,255,0.08)}
.admin-panel table{width:100%;border-collapse:collapse;margin-top:10px}
.admin-panel th,.admin-panel td{padding:10px;border-bottom:1px solid #e5e7eb;text-align:left}
.admin-panel .pill{display:inline-block;padding:4px 8px;border-radius:999px;background:#eff6ff;color:#2563eb;font-size:12px}
.admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;margin:16px 0 24px}
.admin-card{background:#f8fafc;border:1px solid #e5e7eb;border-radius:10px;padding:16px}
.admin-card h3{margin-top:0;color:#0b5cff}
.info-list{list-style:none;padding:0;margin:0}
.info-list li{margin-bottom:8px;word-break:break-all}
.admin-form label{display:block;margin-bottom:10px}
.admin-form textarea{min-height:110px}
.admin-form button,.danger{background:#ef4444;color:#fff;border:0;padding:8px 12px;border-radius:6px;cursor:pointer}
.editor-shell{border:1px solid #d7dbe7;border-radius:8px;padding:8px;background:#fff}
.editor-shell .ck-editor__main{min-height:260px}
.editor-shell .ck-editor__editable{min-height:260px}
.editor-fallback{display:none;margin-top:8px;color:#6b7280;font-size:13px}
.write-form textarea{min-height:260px}

@media(max-width:600px){.site-header{flex-direction:column;align-items:flex-start}.site-header .menu{justify-content:flex-start;margin-top:8px}.container{margin:16px}}

/* Board styles */
.board{background:transparent}
.board-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.board-header h2{margin:0;color:#0b5cff}
.board-actions .btn{background:#0b5cff;color:#fff;padding:8px 12px;border-radius:6px;text-decoration:none}
.board-list{background:#fff;border-radius:10px;padding:8px;box-shadow:0 6px 18px rgba(11,92,255,0.04)}
.board-item{display:flex;justify-content:space-between;align-items:center;padding:14px;border-bottom:1px solid #f0f2f6}
.board-item:last-child{border-bottom:0}
.board-item .title{font-weight:700;color:#0b5cff;text-decoration:none}
.board-item .meta{color:#8890a6;font-size:13px}
.board-item .thumb{width:72px;height:48px;flex:0 0 72px;display:flex;align-items:center;justify-content:center;margin-right:12px}
.board-item .thumb-img{max-width:72px;max-height:48px;border-radius:6px;object-fit:cover}
.board-item .info{flex:1;display:flex;flex-direction:column}
.file-indicator{color:#0b5cff;text-decoration:none;font-weight:700}
.empty{padding:24px;text-align:center;color:#8890a6}
.pager{display:flex;justify-content:flex-end;gap:10px;margin-top:12px}
.pager-link{display:inline-block;padding:8px 12px;border-radius:6px;background:#eef4ff;color:#0b5cff;text-decoration:none}
.pager-link:hover{background:#e1ecff}

/* upload hint and attachments */
.hint{color:#6b7280;font-size:13px;margin:6px 0}
.attachments{margin-top:12px;display:flex;gap:10px;flex-wrap:wrap}
.attachment{background:#f8fafc;padding:8px;border-radius:8px}
.attachment-img{max-width:240px;border-radius:8px}

/* environment block above footer */
.env-block{background:#fff;padding:12px;border-top:1px solid #eef2fb;color:#374151;font-size:13px;border-radius:8px;margin:12px 0}
.env-block .item{margin:3px 0}

.btn{display:inline-block;background:#2563eb;color:#fff;padding:8px 12px;border-radius:6px;text-decoration:none;margin-right:8px}
.btn.danger{background:#ef4444}
.btn.secondary{background:#6b7280}
