/* Blog CMS styles for admin.netigo.in (blog-admin.js). Builds on admin.css
   tokens. `bl-` prefix throughout. */

/* ── Shell additions: mobile sidebar toggle ──────────────────────────────── */
.sidebar-toggle {
  display: none; width: 38px; height: 38px; margin-right: 10px; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; color: var(--text); align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
}
.sidebar-toggle svg { width: 20px; height: 20px; }
.sidebar-scrim { position: fixed; inset: 0; background: rgba(13, 27, 62, 0.45); z-index: 150; }
.sidebar-scrim[hidden] { display: none; }
.topbar { gap: 4px; }
.sidebar-nav { overflow-y: auto; }

@media (max-width: 768px) {
  .sidebar-toggle { display: inline-flex; }
  .sidebar { z-index: 200; transition: transform 0.2s ease; box-shadow: 0 0 40px rgba(13, 27, 62, 0.25); }
  #page-title-bar { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-right .btn { display: none; }
}

/* ── Common ─────────────────────────────────────────────────────────────── */
.bl-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.bl-head h2 { font-family: 'Syne', sans-serif; font-size: 1.4rem; margin-bottom: 4px; }
.bl-head p { color: var(--text-sec); font-size: 0.9rem; max-width: 640px; }
.bl-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bl-hint { color: var(--text-sec); font-size: 0.8rem; }
.bl-hint code, .bl-row-meta code { background: var(--bg); padding: 1px 5px; border-radius: 4px; font-size: 0.78rem; }
.bl-spacer { flex: 1; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.btn-danger-solid { background: var(--danger); color: #fff; }
.btn-danger-solid:hover { background: #b91c1c; }
.bl-link, .bl-link-danger {
  background: none; border: 0; padding: 0; font: inherit; font-size: 0.84rem; font-weight: 600; cursor: pointer; color: var(--brand);
}
.bl-link:hover, .bl-link-danger:hover { text-decoration: underline; }
.bl-link-danger { color: var(--danger); }
.bl-icon-btn { background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--text-sec); cursor: pointer; width: 36px; height: 36px; border-radius: 8px; }
.bl-icon-btn:hover { background: var(--bg); color: var(--text); }
.bl-check { display: flex; align-items: flex-start; gap: 8px; font-size: 0.86rem; cursor: pointer; margin: 6px 0; }
.bl-check input { margin-top: 3px; accent-color: var(--brand); }
.bl-warn { display: block; color: #b45309; font-size: 0.78rem; margin-top: 6px; }
.field textarea.bl-plain, .bl-panel textarea { font-family: inherit; font-size: 0.9rem; }

.bl-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; white-space: nowrap; }
.bl-badge--published { background: #dcfce7; color: #15803d; }
.bl-badge--scheduled { background: #e0e7ff; color: #3730a3; }
.bl-badge--draft { background: #f1f5f9; color: #475569; }
.bl-badge--pending { background: #fef3c7; color: #92400e; }
.bl-badge--trash { background: #fee2e2; color: #991b1b; }

.bl-empty { text-align: center; padding: 48px 20px; color: var(--text-sec); }
.bl-empty__title { font-weight: 700; color: var(--text); font-size: 1rem; margin-bottom: 8px; }
.bl-empty .btn { margin-top: 12px; }

/* ── Posts list ─────────────────────────────────────────────────────────── */
.bl-tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 12px; scrollbar-width: none; }
.bl-tabs::-webkit-scrollbar { display: none; }
.bl-tab {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; border: 0; background: transparent;
  font: inherit; font-weight: 600; font-size: 0.86rem; color: var(--text-sec); cursor: pointer; white-space: nowrap;
}
.bl-tab span { background: #e2e8f0; color: #475569; border-radius: 999px; padding: 1px 8px; font-size: 0.74rem; }
.bl-tab:hover { background: #fff; color: var(--text); }
.bl-tab.is-active { background: #fff; color: var(--brand); box-shadow: 0 1px 4px rgba(17, 45, 110, 0.08); }
.bl-tab.is-active span { background: var(--brand-light); color: var(--brand); }

.bl-list-card { padding: 0; overflow: hidden; }
.bl-toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.bl-toolbar__group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bl-toolbar select, .bl-toolbar input {
  padding: 8px 10px; border: 1.5px solid var(--border); border-radius: 8px; font: inherit; font-size: 0.86rem; background: #fff; color: var(--text); outline: none;
}
.bl-toolbar select:focus, .bl-toolbar input:focus { border-color: var(--brand); }
.bl-toolbar input[type="search"] { min-width: 200px; }
.card > .bl-toolbar { padding: 0 0 14px; margin-bottom: 14px; }

.bl-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.bl-table th { text-align: left; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-sec); padding: 10px 14px; border-bottom: 1px solid var(--border); background: #fafcff; }
.bl-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.bl-table tr:last-child td { border-bottom: 0; }
.bl-table tr:hover td { background: #fafcff; }
.bl-col-check { width: 36px; }
.bl-col-date { font-size: 0.82rem; color: var(--text-sec); white-space: nowrap; }
.bl-col-date span { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.bl-title-cell { display: flex; gap: 12px; align-items: flex-start; }
.bl-title-cell img, .bl-thumb-empty { width: 64px; height: 42px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: var(--bg); }
.bl-title-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; font-size: 0.95rem; color: var(--text); cursor: pointer; text-align: left; }
.bl-title-link:hover { color: var(--brand); }
.bl-star { color: #f59e0b; margin-left: 4px; }
.bl-row-meta { color: var(--text-sec); font-size: 0.78rem; margin-top: 2px; }
.bl-row-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.bl-row-actions a, .bl-row-actions button { background: none; border: 0; padding: 0; font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--brand); cursor: pointer; text-decoration: none; }
.bl-row-actions .is-danger { color: var(--danger); }
.bl-row-actions a:hover, .bl-row-actions button:hover { text-decoration: underline; }
@media (hover: hover) and (min-width: 769px) {
  .bl-row-actions { opacity: 0; transition: opacity 0.12s; }
  .bl-table tr:hover .bl-row-actions, .bl-table tr:focus-within .bl-row-actions { opacity: 1; }
}
.bl-actions-cell { white-space: nowrap; text-align: right; }
.bl-actions-cell .btn { margin-left: 4px; }
.bl-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; color: var(--text-sec); font-size: 0.84rem; border-top: 1px solid var(--border); }
.card:not(.bl-list-card) .bl-pager { border-top: 0; padding: 14px 0 0; }

@media (max-width: 768px) {
  .bl-col-hide { display: none; }
  .bl-toolbar__filters { width: 100%; }
  .bl-toolbar__filters > * { flex: 1 1 140px; }
  .bl-toolbar input[type="search"] { min-width: 0; }
  .bl-title-cell img, .bl-thumb-empty { width: 52px; height: 36px; }
  .bl-actions-cell { white-space: normal; }
  .bl-actions-cell .btn { margin: 2px; }
}

/* ── Editor ─────────────────────────────────────────────────────────────── */
.page--editor.active { padding-top: 0; }
.bl-editor-bar {
  position: sticky; top: var(--topbar-h); z-index: 20; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 -28px 20px; padding: 10px 28px; background: rgba(240, 244, 251, 0.94); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.bl-editor-bar__status { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.bl-editor-bar__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bl-save-state { font-size: 0.8rem; color: var(--text-sec); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-save-state.is-dirty { color: #b45309; }

.bl-editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.bl-editor__main { min-width: 0; }
.bl-title-input {
  width: 100%; border: 0; background: transparent; resize: none; overflow: hidden; outline: none;
  font-family: 'Syne', sans-serif; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.2; color: var(--text); padding: 4px 0;
}
.bl-title-input::placeholder { color: #9aa9c4; }
.bl-permalink { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 0.84rem; color: var(--text-sec); margin: 4px 0 14px; }
.bl-permalink__base { color: var(--text-sec); }
.bl-permalink input {
  border: 1px dashed transparent; background: transparent; font: inherit; font-weight: 600; color: var(--brand); padding: 2px 4px;
  border-radius: 6px; min-width: 120px; max-width: 100%; outline: none;
}
.bl-permalink input:hover, .bl-permalink input:focus { border-color: var(--border); background: #fff; }
.bl-slug-state { font-size: 0.78rem; }
.bl-slug-state.is-warn { color: #b45309; }
.bl-media-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.bl-wordcount { font-size: 0.8rem; color: var(--text-sec); padding: 8px 2px; }

/* CKEditor surface */
.bl-ck-wrap { background: #fff; border-radius: 12px; border: 1px solid var(--border); overflow: visible; }
.bl-ck-wrap .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content { border-radius: 12px 12px 0 0; }
.bl-ck-wrap .ck.ck-toolbar { border: 0 !important; border-bottom: 1px solid var(--border) !important; background: #fafcff; padding: 4px 6px; }
.bl-ck-wrap .ck.ck-editor__main > .ck-editor__editable {
  min-height: 460px; border: 0 !important; box-shadow: none !important; padding: 16px clamp(16px, 4vw, 48px) 40px;
  font-size: 17px; line-height: 1.75; color: #1e293b; border-radius: 0 0 12px 12px;
}
.bl-ck-wrap .ck-content h2 { font-family: 'Syne', sans-serif; font-size: 1.6rem; margin: 1.4em 0 0.5em; }
.bl-ck-wrap .ck-content h3 { font-size: 1.28rem; margin: 1.3em 0 0.5em; }
.bl-ck-wrap .ck-content h4 { font-size: 1.1rem; margin: 1.2em 0 0.4em; }
.bl-ck-wrap .ck-content p { margin: 0.8em 0; }
.bl-ck-wrap .ck-content blockquote { border-left: 4px solid var(--brand); padding-left: 16px; font-style: italic; }
.bl-ck-wrap .ck-content pre { background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: 14px; }
.bl-ck-wrap .ck-content .callout { padding: 12px 14px 12px 42px; border-radius: 12px; border: 1px solid; position: relative; }
.bl-ck-wrap .ck-content .callout::before { position: absolute; left: 14px; top: 11px; }
.bl-ck-wrap .ck-content .callout-info { background: #eff6ff; border-color: #bfdbfe; }
.bl-ck-wrap .ck-content .callout-info::before { content: "ℹ️"; }
.bl-ck-wrap .ck-content .callout-tip { background: #f0fdf4; border-color: #bbf7d0; }
.bl-ck-wrap .ck-content .callout-tip::before { content: "💡"; }
.bl-ck-wrap .ck-content .callout-warning { background: #fffbeb; border-color: #fde68a; }
.bl-ck-wrap .ck-content .callout-warning::before { content: "⚠️"; }
.bl-ck-wrap .ck-content .callout-note { background: #f8fafc; border-color: #e2e8f0; }
.bl-ck-wrap .ck-content .callout-note::before { content: "📝"; }
.bl-ck-wrap .ck-content a.cta-button { display: inline-block; background: var(--brand); color: #fff; padding: 8px 16px; border-radius: 10px; text-decoration: none; }
.ck.ck-balloon-panel, .ck.ck-dropdown__panel { z-index: 10050 !important; }
.ck-body-wrapper { position: relative; z-index: 10050; }

/* Sidebar panels */
.bl-editor__side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: calc(var(--topbar-h) + 70px); max-height: calc(100vh - var(--topbar-h) - 90px); overflow-y: auto; padding-bottom: 20px; }
.bl-panel { background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.bl-panel[hidden] { display: none; }
.bl-panel__title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text); }
.bl-panel__body { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.bl-panel__body .field { margin-bottom: 4px; }
.bl-panel__body > select, .bl-panel__body > input, .bl-panel__body > textarea {
  width: 100%; padding: 8px 10px; border: 1.5px solid var(--border); border-radius: 8px; font: inherit; font-size: 0.88rem; background: #fff; color: var(--text); outline: none;
}
.bl-panel__body > select:focus, .bl-panel__body > input:focus, .bl-panel__body > textarea:focus { border-color: var(--brand); }
.bl-panel__body .bl-link, .bl-panel__body .bl-link-danger { align-self: flex-start; }
.bl-panel__meta { display: flex; flex-direction: column; gap: 3px; font-size: 0.78rem; color: var(--text-sec); border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px; }
.bl-panel__meta:empty { display: none; }
.bl-panel__meta a { color: var(--brand); font-weight: 600; text-decoration: none; }
.bl-counter { font-size: 0.76rem; color: var(--text-sec); }
.bl-counter.is-good { color: #15803d; }
.bl-counter.is-warn { color: #b45309; }
#bl-date-hint { display: block; margin-top: 4px; color: var(--text-sec); font-size: 0.76rem; }

.bl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bl-chips:empty { display: none; }
.bl-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--brand-light); color: var(--brand); padding: 3px 4px 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.bl-chip button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 1rem; line-height: 1; width: 20px; height: 20px; border-radius: 50%; }
.bl-chip button:hover { background: rgba(43, 99, 217, 0.15); }

.bl-img-pick img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; background: var(--bg); border: 1px solid var(--border); }
.bl-img-pick--wide img { max-width: 480px; }
.bl-img-pick__actions { display: flex; gap: 14px; margin-top: 8px; }
.bl-img-empty {
  width: 100%; padding: 28px 12px; border: 2px dashed var(--border); border-radius: 10px; background: #fafcff; color: var(--brand);
  font: inherit; font-weight: 600; font-size: 0.86rem; cursor: pointer;
}
.bl-img-empty:hover { border-color: var(--brand); background: var(--brand-light); }
#bl-og-box .bl-img-pick img { aspect-ratio: 1.91 / 1; }

.bl-serp { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: #fff; font-family: Arial, sans-serif; }
.bl-serp__url { font-size: 0.74rem; color: #4d5156; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-serp__title { color: #1a0dab; font-size: 1rem; line-height: 1.3; margin: 3px 0; }
.bl-serp__desc { color: #4d5156; font-size: 0.8rem; line-height: 1.45; }

.bl-revs { list-style: none; display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; }
.bl-revs li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.8rem; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.bl-revs li div { display: flex; flex-direction: column; }
.bl-revs li span { color: var(--text-sec); font-size: 0.74rem; }

@media (max-width: 1100px) {
  .bl-editor { grid-template-columns: minmax(0, 1fr); }
  .bl-editor__side { position: static; max-height: none; overflow: visible; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-items: start; }
}
@media (max-width: 768px) {
  .bl-editor-bar { margin: 0 -16px 14px; padding: 8px 16px; }
  .bl-editor-bar__actions { width: 100%; }
  .bl-editor-bar__actions .btn { flex: 1; justify-content: center; }
  .bl-editor__side { grid-template-columns: 1fr; }
  .bl-ck-wrap .ck.ck-editor__main > .ck-editor__editable { min-height: 320px; font-size: 16px; }
  .bl-media-row .bl-hint { display: none; }
}

/* ── Media ──────────────────────────────────────────────────────────────── */
.bl-dropzone {
  border: 2px dashed var(--border); border-radius: 12px; padding: 22px; text-align: center; color: var(--text-sec);
  font-size: 0.86rem; margin-bottom: 14px; background: #fafcff; transition: border-color 0.15s, background 0.15s;
}
.bl-dropzone.is-drag { border-color: var(--brand); background: var(--brand-light); color: var(--brand); }
.bl-dropzone--small { padding: 12px; }
.bl-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.bl-media-grid--picker { max-height: 52vh; overflow-y: auto; padding: 2px; }
.bl-media-tile {
  position: relative; aspect-ratio: 1; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; padding: 0; cursor: pointer; background: var(--bg);
}
.bl-media-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-media-tile:hover, .bl-media-tile:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; }
.bl-media-tile__flag { position: absolute; left: 6px; bottom: 6px; background: rgba(180, 83, 9, 0.9); color: #fff; font-size: 0.66rem; font-weight: 700; padding: 2px 6px; border-radius: 6px; }
.bl-media-detail { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
.bl-media-detail__img { background: repeating-conic-gradient(#f1f5f9 0% 25%, #fff 0% 50%) 50% / 20px 20px; border-radius: 10px; display: flex; align-items: center; justify-content: center; min-height: 200px; }
.bl-media-detail__img img { max-width: 100%; max-height: 60vh; display: block; }
.bl-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 0.82rem; margin-bottom: 14px; }
.bl-dl dt { color: var(--text-sec); }
.bl-dl dd { word-break: break-all; }
.bl-copy-row { display: flex; gap: 6px; }
.bl-copy-row input { flex: 1; min-width: 0; }
.bl-picker__bar { display: flex; gap: 8px; margin-bottom: 10px; }
.bl-picker__bar input { flex: 1; padding: 8px 10px; border: 1.5px solid var(--border); border-radius: 8px; font: inherit; outline: none; }
.bl-picker__bar input:focus { border-color: var(--brand); }
@media (max-width: 700px) {
  .bl-media-detail { grid-template-columns: 1fr; }
  .bl-media-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}

.bl-upload-tray { position: fixed; right: 16px; bottom: 16px; z-index: 10100; width: min(340px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 6px; }
.bl-upload-row { background: #0d1b3e; color: #fff; border-radius: 10px; padding: 10px 12px; font-size: 0.8rem; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); }
.bl-upload-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-upload-row progress { width: 100%; height: 6px; accent-color: #60a5fa; }
.bl-upload-row.is-done { background: #14532d; }
.bl-upload-row.is-error { background: #7f1d1d; }
.bl-upload-row.is-error span { white-space: normal; }

/* ── Modal ──────────────────────────────────────────────────────────────── */
body.bl-modal-open { overflow: hidden; }
.bl-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.bl-modal__scrim { position: absolute; inset: 0; background: rgba(13, 27, 62, 0.5); }
.bl-modal__dialog { position: relative; background: #fff; border-radius: 16px; width: min(520px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 24px 70px rgba(13, 27, 62, 0.3); }
.bl-modal__dialog--wide { width: min(980px, 100%); }
.bl-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.bl-modal__head h3 { font-family: 'Syne', sans-serif; font-size: 1.1rem; }
.bl-modal__body { padding: 18px; overflow-y: auto; }
.bl-modal__foot { display: flex; align-items: center; gap: 8px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.bl-confirm { font-size: 0.95rem; line-height: 1.55; margin-bottom: 8px; }

/* ── Authors / settings ─────────────────────────────────────────────────── */
.bl-author-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.bl-author-card { display: flex; flex-direction: column; gap: 10px; }
.bl-author-card__top { display: flex; gap: 12px; align-items: center; }
.bl-author-card__top img, .bl-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.bl-author-card__top div { display: flex; flex-direction: column; }
.bl-author-card__top span { color: var(--text-sec); font-size: 0.82rem; }
.bl-author-card p { color: var(--text-sec); font-size: 0.86rem; flex: 1; }
.bl-author-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-sec); }
.bl-author-card__foot .btn { margin-left: 4px; }
.bl-avatar { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2b63d9, #0fa3b1); color: #fff; font-weight: 700; }
.bl-avatar--lg { width: 72px; height: 72px; font-size: 1.4rem; }
.bl-avatar-pick { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.bl-avatar-pick img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.bl-settings { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.bl-settings .bl-hint { margin: -6px 0 12px; }

/* Flex children default to min-width:auto, which let a wide table push the
   whole page past the viewport on phones. */
.main-content { min-width: 0; }
.page { min-width: 0; }
.bl-list-card { overflow-x: auto; }
.bl-title-link { overflow-wrap: anywhere; }
@media (max-width: 768px) {
  .bl-table { font-size: 0.84rem; }
  .bl-table td, .bl-table th { padding: 10px 8px; }
  .bl-col-check { width: 28px; }
  .bl-title-cell img, .bl-title-cell .bl-thumb-empty { display: none; }
  .bl-row-actions { gap: 10px; }
  .bl-permalink input { flex: 1 1 100%; }
}
