/* OnlyFans → Today and the model pages. Only the design's own variables, so it sits right in every design. */
.cmd-banner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 10px 12px 10px 18px;
  border: 1px dashed var(--line-strong); border-radius: var(--x-card-r, calc(var(--r) + 4px)); color: var(--muted); }
.cmd-banner p { margin: 0; }
.cmd-banner b { color: var(--fg); font-weight: 600; }
.cmd-main { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(300px, 1fr); gap: var(--x-gap, 20px); align-items: start; }
.cmd-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--x-gap, 20px); align-items: start; }
@media (max-width: 1500px) { .cmd-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cmd-main { grid-template-columns: minmax(0, 1fr); } }  /* a laptop: the models table gets the full width, alerts go under it */
@media (max-width: 1100px) { .cmd-main, .cmd-cols { grid-template-columns: minmax(0, 1fr); } }
.cmd-foot { margin: 0; color: var(--faint); font-size: 12.5px; }
.cmd-bad { color: var(--bad); }
.cmd-link, .cmd-linkbtn { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.cmd-link:hover, .cmd-linkbtn:hover { text-decoration: underline; }
.cmd-text { display: block; max-width: 32ch; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cmd-msg { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.cmd-msg .cmd-text { min-width: 0; }
.cmd-msg .x-muted { flex: none; }

/* a model: round photo (initials under it while it loads or if it fails), name, @ */
.cmd-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cmd-who > span:last-child:not(.cmd-av) { display: grid; min-width: 8em; }
.cmd-who b { overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.cmd-who small { color: var(--faint); font-size: 12.5px; }
.cmd-av { position: relative; flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; overflow: hidden; border-radius: 50%;
  background: var(--hover); color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.cmd-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmd-av.big { width: 56px; height: 56px; font-size: 18px; }

.cmd-spark { display: block; overflow: visible; }
.cmd-spark polyline { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.cmd-spark circle { fill: var(--accent); }

/* Needs attention: a small dot (red = urgent), what, why, and where to fix it */
.cmd-alerts { display: grid; }
.cmd-alert { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.cmd-alert:first-child { padding-top: 2px; border-top: 0; }
.cmd-alert > i { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--faint); }
.cmd-alert.bad > i { background: var(--bad); }
.cmd-alert p { margin: 0; }
.cmd-alert-t b { font-weight: 600; }
.cmd-alert-w { margin-top: 2px !important; color: var(--muted); font-size: 13px; }
.cmd-clamp .cmd-alert-w { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cmd-alert a { display: inline-block; margin-top: 4px; color: var(--accent); font-size: 13px; font-weight: 600; text-decoration: none; }
.cmd-alert a:hover { text-decoration: underline; }

/* model header */
.cmd-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; }
.cmd-head h2 { margin: 0; font: var(--x-h2, 600 17px/1.3 var(--font)); }
.cmd-head p { margin: 2px 0 0; }
.cmd-facts { display: flex; gap: 28px; margin: 0 0 0 auto; }
.cmd-facts div { display: grid; gap: 2px; }
.cmd-facts dt { color: var(--muted); font-size: 12.5px; }
.cmd-facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* next 7 days */
.cmd-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cmd-day { display: grid; align-content: start; gap: 4px; min-width: 0; min-height: 92px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r);
  background: none; color: var(--fg); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.cmd-day:hover { background: var(--hover); }
.cmd-day b { margin-bottom: 2px; font-weight: 600; }
.cmd-day span { overflow: hidden; color: var(--muted); font-family: var(--x-mono, inherit); font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; }
.cmd-day small { color: var(--faint); font-size: 12.5px; }
.cmd-day.cmd-gap { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.cmd-day.cmd-gap span { color: var(--bad); font-family: inherit; }

.cmd-note { padding: 10px 0; border-top: 1px solid var(--line); }
.cmd-note:first-child { padding-top: 0; border-top: 0; }
.cmd-note p { margin: 0 0 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cmd-note small { color: var(--faint); font-size: 12.5px; }
.cmd-note button { margin-left: 10px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.cmd-note button:hover { color: var(--bad); }

@media (max-width: 760px) {
  .cmd-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmd-day { min-height: 0; }
  .cmd-facts { margin-left: 0; }
  .cmd-text { max-width: 20ch; }
}
