/* Guide and Finnish Sniper X blog sections of the command centre: lists and the editor.
   Tokens only (/ds/tokens.css). Red only on the primary button. The help centre's classes (hc-) are reused. */

.kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1279.98px) { .kpis--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- the editor ---------- */
.ce-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.ce-cols.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ce-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ce-col-head { display: flex; align-items: center; gap: 10px; }
.ce-col-t { font-size: var(--fs-lg, 18px); font-weight: 800; }
.ce-col-foot { display: flex; justify-content: flex-end; padding-top: 4px; border-top: 1px solid var(--line); }
.ce-status { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel-2); }
.ce-shared { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px 24px; align-items: start; }
.ce-ctl { display: flex; flex-direction: column; gap: 4px; }
.ce-checks { min-width: 0; margin: 0; padding: 0; border: 0; }
.ce-checks-in { display: grid; gap: 6px; max-height: 220px; margin-top: 6px; padding: 8px 10px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.ce-text { display: flex; flex-direction: column; gap: 8px; }
.ce-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.ce-tools .field--select { margin: 0; }
.ce-tools .select-i { min-width: 170px; height: 32px; font-size: var(--fs-sm); }
.ce-count { font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.ce-body { width: 100%; min-height: 560px; padding: 14px 16px; border-radius: var(--r-md); background: var(--field); font: 500 14px/1.65 ui-monospace, 'Cascadia Mono', Consolas, monospace; resize: vertical; white-space: pre-wrap; overflow-wrap: anywhere; }
.ce-langs { margin: 0; padding: 0; border: 0; }
.ce-langs-in { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 6px; }

/* ---------- the preview ---------- */
.ce-pv-notes { display: flex; flex-direction: column; gap: 4px; }
.ce-pv-notes:empty { display: none; }
.ce-pv-notes .hc-note-line svg { color: var(--warning); }
.ce-frame-box { position: relative; height: calc(100vh - var(--pb-h, 96px) - 200px); min-height: 520px; overflow: hidden; background: #F4F5F7; }
.ce-frame { display: block; border: 0; background: #fff; transform-origin: 0 0; }
.ce-pane-empty { padding: 24px; }

@media (max-width: 1279.98px) {
  .ce-cols.is-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 719.98px) {
  .ce-body { min-height: 420px; font-size: 13px; }
  .ce-frame-box { height: 70vh; min-height: 420px; }
  .ce-tools .select-i { min-width: 0; }
}

/* Pictures: the uploaded cover in the shared fields, and the upload dialog. */
.ce-pic-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.ce-pic-thumb { display: block; width: 160px; max-width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--field); }
.ce-pic-thumb--lg { width: 100%; max-width: 420px; height: auto; aspect-ratio: auto; }
.ce-pic-none { display: grid; place-items: center; width: 160px; aspect-ratio: 16 / 9; border: 1px dashed var(--line-strong); border-radius: var(--r-md); font-size: var(--fs-sm); text-align: center; padding: var(--s2); }
.ce-pic-act { display: flex; flex-wrap: wrap; gap: var(--s2); }
.ce-pic-input { min-height: 44px; font: inherit; color: var(--text); }
.ce-pic-input::file-selector-button { min-height: 36px; margin-right: var(--s3); padding: 0 var(--s4); border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--panel); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.ce-pic-dialog { display: grid; gap: var(--s3); }
