/* FlowCAD3D admin portal: the content calendar (js/admin/admin-content.js, 2026.10.71). The status of a post is always
   written out (chip or text); the coloured edge of a calendar item only repeats it. */
.cnt-state { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.cnt-state .cp-chip { margin-left: 0; }
.cnt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 14px; }
.cnt-card .cnt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cnt-card .cp-chip, .cnt-editor .cp-chip { margin-left: 0; }
.cnt-preview { color: var(--fg2); white-space: pre-line; overflow-wrap: anywhere; }
.cnt-chans { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.cnt-ch { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line); color: var(--fg2); background: var(--bg); }

/* month */
.cnt-monthbar { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; }
.cnt-monthbar h3 { margin: 0 6px; min-width: 150px; text-align: center; }
.cnt-next svg { transform: rotate(180deg); }
.cnt-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cnt-dow { font-size: 12px; font-weight: 600; color: var(--fg3); text-transform: capitalize; padding: 2px 4px; }
.cnt-day { min-height: 104px; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); padding: 4px; display: flex; flex-direction: column; gap: 3px; }
.cnt-day.other { opacity: .55; }
.cnt-day.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cnt-dnum { font-size: 12px; font-weight: 600; color: var(--fg3); }
.cnt-dlong { display: none; }
.cnt-item { display: flex; flex-direction: column; align-items: flex-start; gap: 0; width: 100%; min-width: 0; text-align: left; cursor: pointer; font: inherit;
  border: 1px solid var(--line); border-left: 4px solid var(--fg3); border-radius: 5px; background: var(--bg); color: var(--fg); padding: 3px 5px; }
.cnt-item:hover { border-color: var(--accent); border-left-color: inherit; }
.cnt-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cnt-item.st-review, .cnt-item.st-partial { border-left-color: var(--warn); }
.cnt-item.st-scheduled, .cnt-item.st-publishing { border-left-color: var(--accent); }
.cnt-item.st-published { border-left-color: var(--ok); }
.cnt-item.st-failed { border-left-color: var(--err); }
.cnt-item.st-rejected .cnt-it-top { text-decoration: line-through; color: var(--fg3); }
.cnt-it-time { font-size: 11px; color: var(--fg3); font-variant-numeric: tabular-nums; }
.cnt-it-top { font-size: 12px; font-weight: 600; line-height: 1.25; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cnt-it-meta { font-size: 11px; color: var(--fg2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* editor */
.cnt-modal .mb { max-height: min(76vh, 900px); overflow: auto; }
.cnt-editor .grid2 > .field.full, .cnt-editor .full { grid-column: 1 / -1; }
.cnt-editor .grid2 > .field.full .inp { width: 100%; }
.cnt-editor .cnt-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.cnt-chanpick { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.cnt-chanpick .lbl { width: 100%; color: var(--fg2); font-weight: 600; }
.cnt-cb { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.cnt-cb input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.cnt-texts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; }
.cnt-texts .field { position: relative; }
.cnt-texts .field .inp { width: 100%; }
.cnt-texts .field[hidden] { display: none; }
.cnt-count { display: block; text-align: right; margin-top: 2px; }
.cnt-count.over { color: var(--danger-fg); font-weight: 600; }
.cnt-mediapanel { border: 1px dashed var(--line); border-radius: 8px; padding: 10px; margin: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.cnt-mediapanel p { margin: 0; }
.cnt-media { display: flex; flex-wrap: wrap; gap: 10px; }
.cnt-mtile { width: 150px; display: flex; flex-direction: column; gap: 4px; }
.cnt-mthumb { width: 150px; height: 110px; border-radius: 6px; background: var(--bg4); display: grid; place-items: center; overflow: hidden; color: var(--fg3); }
.cnt-mthumb img { width: 100%; height: 100%; object-fit: cover; }
.cnt-mthumb svg { width: 28px; height: 28px; }
.cnt-mname { overflow-wrap: anywhere; color: var(--fg2); }
.cnt-mtile .btn { align-self: flex-start; }
.cnt-results { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }

/* settings */
.cnt-settings .grid2 > .field.full { grid-column: 1 / -1; }
.cnt-settings .grid2 > .field.full .inp { width: 100%; }
.cnt-chrows { display: flex; flex-direction: column; gap: 6px; }
.cnt-chrow { display: grid; grid-template-columns: 170px 200px 120px; gap: 14px; align-items: end; }
.cnt-chrow .field, .cnt-prow .field { grid-template-columns: 1fr; gap: 3px; margin: 0; }
.cnt-chrow .field:first-child { grid-template-columns: auto auto; justify-content: start; align-items: center; gap: 8px; padding-bottom: 8px; }
.cnt-chrow .inp, .cnt-chrow select { width: 100%; }
.cnt-pillars { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.cnt-prow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: 10px; align-items: end; }
.cnt-prow .inp { width: 100%; }
.cnt-check { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.cnt-check svg { width: 14px; height: 14px; vertical-align: -2px; }

/* connections with the platforms (2026.10.78) */
.cnt-conns { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); gap: 12px; align-items: start; }
.cnt-conn { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; background: var(--bg2); }
.cnt-conn p { margin: 0; }
.cnt-conn-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cnt-conn-head .cp-chip { margin-left: 0; }
.cnt-conn .grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cnt-conn .grid2 .field { grid-template-columns: 1fr; gap: 3px; margin: 0; }
.cnt-conn .grid2 .inp, .cnt-li-extra .inp { width: 100%; }
.cnt-li-extra { display: flex; flex-direction: column; gap: 6px; }
.cnt-li-extra .field { grid-template-columns: 1fr; gap: 3px; margin: 0; }
.cnt-conn-acts { gap: 8px; flex-wrap: wrap; }
.cnt-redirect { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.cnt-redirect code { font-size: 12px; padding: 3px 6px; border-radius: 4px; background: var(--bg4); overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .cnt-texts { grid-template-columns: 1fr; }
  /* phone and small tablet: the month as a list of the days that have posts */
  .cnt-cal { grid-template-columns: 1fr; }
  .cnt-dow, .cnt-day.other { display: none; }
  .cnt-day { min-height: 0; }
  .cnt-dnum .n { display: none; }
  .cnt-dlong { display: inline; }
  .cnt-day:not(:has(.cnt-item)):not(.today) { display: none; }
  .cnt-chrow, .cnt-prow { grid-template-columns: 1fr 1fr; }
  .cnt-conn .grid2 { grid-template-columns: minmax(0, 1fr); }
}
