/* Content calendar (features/calendar). Drawn only from the design's own variables (--bg --panel --line --fg --muted
   --faint --accent --bad --hover --r and the kit's --x-*), so it looks native in every design, light and dark. */
.ofc-i { width: 14px; height: 14px; flex: none; vertical-align: -2px; }
.x-page.is-busy .ofc-cal, .x-page.is-busy .ofc-side { opacity: .55; transition: opacity .2s; }
.ofc-banner { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 10px 12px 10px 16px; border: 1px solid var(--line); border-radius: var(--x-card-r, calc(var(--r) + 4px)); background: var(--panel); color: var(--muted); font-size: 13.5px; }
.ofc-banner b { color: var(--fg); font-weight: 600; }
.ofc-banner .btn { margin-left: auto; }
.ofc-note { margin: 0; color: var(--muted); font-size: 13px; }
.ofc-note.is-bad { color: var(--bad); }
.ofc-small { margin: 12px 0 0; font-size: 12.5px; line-height: 1.55; }
.ofc-small .ofc-i { width: 13px; height: 13px; }
.bar .ofc-nav { display: inline-flex; align-items: center; gap: 4px; }
.ofc-range button { white-space: nowrap; }

/* layout: the calendar, with the month map and key beside it when there's room, else under it */
.ofc-wrap { container-type: inline-size; min-width: 0; }
.ofc-main { display: grid; gap: var(--x-gap, 20px); align-items: start; }
.ofc-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--x-gap, 20px); align-items: start; }
@container (min-width: 1400px) { .ofc-main { grid-template-columns: minmax(0, 1fr) 300px; } .ofc-side { grid-template-columns: 1fr; } }

/* the grid: models down, days across */
.ofc-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.ofc-grid { display: grid; grid-template-columns: minmax(150px, 200px) repeat(var(--n), minmax(118px, 1fr)); min-width: min-content; border-top: 1px solid var(--line); }
.ofc-grid.is-wide { grid-template-columns: minmax(140px, 180px) repeat(var(--n), minmax(88px, 1fr)); }
.ofc-corner, .ofc-dow { padding: 8px; border-bottom: 1px solid var(--line); background: var(--panel); color: var(--faint); font-size: 12.5px; }
.ofc-corner { position: sticky; left: 0; z-index: 2; }
.ofc-dow { display: flex; align-items: baseline; gap: 6px; border-left: 1px solid var(--line); }
.ofc-dow b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.ofc-dow.is-today, .ofc-dow.is-today b { color: var(--accent); }
.ofc-model { position: sticky; left: 0; z-index: 1; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 8px; border-bottom: 1px solid var(--line); background: var(--panel); color: var(--fg); text-decoration: none; }
.ofc-model:hover b { text-decoration: underline; text-underline-offset: 3px; }
.ofc-model > span { display: grid; min-width: 0; }
.ofc-model b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ofc-model small { color: var(--faint); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ofc-av { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 13%, var(--panel)); color: color-mix(in srgb, var(--accent) 75%, var(--fg)); font-size: 11.5px; font-weight: 700; }
.ofc-cell { container-type: inline-size; display: flex; flex-direction: column; gap: 4px; min-width: 0; min-height: 100px; padding: 6px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ofc-grid.is-wide .ofc-cell { min-height: 86px; padding: 5px; }
.ofc-cell.is-today { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.ofc-cell.is-past { background: color-mix(in srgb, var(--hover) 40%, transparent); }
.ofc-cell.is-empty { background: color-mix(in srgb, var(--bad) 6%, transparent); }
.ofc-cell.is-drop, .ofc-col.is-drop { outline: 2px dashed var(--accent); outline-offset: -3px; }

/* a chip: one post or mass message */
/* what doesn't fit wraps onto a hidden second line, so a narrow day drops the price and count whole, never half a word */
.ofc-chip { position: relative; display: flex; flex-wrap: wrap; align-content: flex-start; align-items: center; gap: 12px 5px; width: 100%; min-width: 0; height: 26px; flex: none; padding: 0 7px 0 6px; border: 1px solid transparent; border-left: 3px solid var(--accent); border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 9%, var(--panel)); color: var(--fg); font: inherit; font-size: 12.5px; text-align: left; white-space: nowrap; overflow: hidden; cursor: pointer; }
.ofc-chip:hover { background: color-mix(in srgb, var(--accent) 15%, var(--panel)); }
.ofc-chip:focus-visible, .ofc-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ofc-chip[draggable="true"] { cursor: grab; }
.ofc-chip > * { flex: none; line-height: 24px; }
.ofc-chip time { font-family: var(--x-mono, inherit); font-variant-numeric: tabular-nums; font-weight: 600; }
.ofc-chip .ofc-pr, .ofc-chip .ofc-n { color: var(--muted); }
.ofc-chip .ofc-n { display: inline-flex; align-items: center; gap: 2px; }
.ofc-chip .ofc-n .ofc-i { width: 12px; height: 12px; }
.ofc-chip em, .ofc-chip .ofc-ok { position: absolute; top: 0; right: 7px; display: inline-flex; align-items: center; height: 24px; font-style: normal; font-size: 11.5px; font-weight: 600; }
.ofc-chip.is-posted { padding-right: 24px; }
.ofc-chip.is-draft { padding-right: 46px; }
.ofc-chip.is-failed { padding-right: 52px; }
.ofc-chip.is-posted { border-left-color: var(--faint); background: color-mix(in srgb, var(--fg) 4%, var(--panel)); color: var(--muted); }
.ofc-chip.is-posted time { color: var(--fg); font-weight: 500; }
.ofc-chip.is-draft { border: 1px dashed var(--muted); border-left: 3px dashed var(--muted); background: var(--panel); }
.ofc-chip.is-draft em { color: var(--muted); }
.ofc-chip.is-failed { border-left-color: var(--bad); background: color-mix(in srgb, var(--bad) 9%, var(--panel)); }
.ofc-chip.is-failed em { color: var(--bad); }
.is-dragging { opacity: .45; }
@container (max-width: 112px) { .ofc-chip em, .ofc-chip .ofc-ok { display: none; } .ofc-chip.ofc-chip { padding-right: 7px; } }

.ofc-gap { flex: 1; display: grid; place-items: center; width: 100%; min-height: 40px; padding: 6px; border: 1px dashed color-mix(in srgb, var(--bad) 45%, transparent); border-radius: 6px;
  background: none; color: var(--bad); font: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.25; text-align: center; cursor: pointer; }
.ofc-gap:hover { background: color-mix(in srgb, var(--bad) 8%, transparent); }
.ofc-gap.is-sample { display: inline-grid; flex: none; width: auto; min-height: 26px; padding: 0 8px; white-space: nowrap; cursor: default; }
.ofc-plus { display: grid; place-items: center; align-self: flex-end; width: 24px; height: 24px; margin-top: auto; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--faint); cursor: pointer; opacity: 0; }
.ofc-cell:hover .ofc-plus, .ofc-plus:focus-visible { opacity: 1; }
.ofc-plus:hover { background: var(--hover); color: var(--fg); }
@media (hover: none) { .ofc-plus { opacity: 1; } }
.ofc-more { align-self: flex-start; padding: 0 4px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.ofc-more:hover { color: var(--fg); text-decoration: underline; }
.ofc-dash { margin: auto; color: var(--faint); font-size: 12.5px; }

/* month map + key */
.ofc-month .x-card-h .icon-btn { width: 28px; height: 28px; }
.ofc-mgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.ofc-mgrid > span { padding-bottom: 4px; color: var(--faint); font-size: 11.5px; }
.ofc-mday { position: relative; height: 32px; padding: 0 0 4px; border: 0; border-radius: 8px; background: none; color: var(--fg); font: inherit; font-size: 12.5px; font-variant-numeric: tabular-nums; cursor: pointer; }
.ofc-mday:hover { background: var(--hover); }
.ofc-mday.is-other { color: var(--faint); }
.ofc-mday.is-in { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.ofc-mday.is-today { color: var(--accent); font-weight: 700; }
.ofc-mday.is-gap::after, .ofc-mday.is-full::after { content: ""; position: absolute; left: calc(50% - 2.5px); bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--bad); }
.ofc-mday.is-full::after { background: var(--x-good, #2F855A); }
.ofc-mkey { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.ofc-mkey > span { display: inline-flex; align-items: center; gap: 6px; }
.ofc-mkey i { position: static; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--bad); }
.ofc-mkey i.is-full { background: var(--x-good, #2F855A); }
.ofc-key { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.ofc-key li { display: grid; grid-template-columns: 124px 1fr; align-items: center; gap: 10px; }
.ofc-key .ofc-chip, .ofc-key .ofc-gap { cursor: default; }

/* one model's week */
.ofc-one-h { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; }
.ofc-one-h .btn { display: inline-flex; align-items: center; gap: 4px; }
.ofc-one-h .ofc-av { width: 38px; height: 38px; font-size: 13px; }
.ofc-one-h h2 { margin: 0; font: var(--x-h2, 600 17px/1.3 var(--font)); }
.ofc-one-h small { color: var(--faint); font-size: 12.5px; }
.ofc-one-h p { margin: 0 0 0 auto; font-size: 13px; }
.ofc-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.ofc-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 380px; padding: 10px 8px; border-left: 1px solid var(--line); }
.ofc-col:first-child { border-left: 0; }
.ofc-col h4 { display: flex; align-items: baseline; gap: 6px; margin: 0 0 2px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ofc-col h4 span { color: var(--faint); font-weight: 500; }
.ofc-col.is-today h4, .ofc-col.is-today h4 span { color: var(--accent); }
.ofc-col.is-past { background: color-mix(in srgb, var(--hover) 40%, transparent); }
.ofc-col .ofc-gap { flex: none; min-height: 64px; }
.ofc-gapbox { display: grid; gap: 8px; }
.ofc-gapbox p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; color: var(--muted); font-size: 12.5px; }
.ofc-col .ofc-dash { margin: 0; }
.ofc-addrow { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; padding: 4px 8px 4px 4px; border: 0; border-radius: 6px; background: none; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; }
.ofc-addrow:hover { background: var(--hover); color: var(--fg); }
@media (max-width: 900px) { .ofc-week { grid-template-columns: 1fr; } .ofc-col { min-height: 0; border-left: 0; border-top: 1px solid var(--line); } .ofc-col:first-child { border-top: 0; } }

/* a card: one item, bigger (one model's week, a day's list) */
.ofc-card { display: grid; gap: 6px; width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; background: var(--panel); color: var(--fg); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.ofc-card:hover { background: color-mix(in srgb, var(--hover) 50%, var(--panel)); }
.ofc-card[draggable="true"] { cursor: grab; }
.ofc-card-h { display: flex; align-items: center; gap: 5px; min-width: 0; color: var(--muted); font-size: 12px; white-space: nowrap; }
.ofc-card-h time { color: var(--fg); font-family: var(--x-mono, inherit); font-weight: 600; font-variant-numeric: tabular-nums; }
.ofc-card-h > span { overflow: hidden; text-overflow: ellipsis; }
.ofc-card-h em { margin-left: auto; font-style: normal; font-weight: 600; }
.ofc-card-t { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; overflow-wrap: anywhere; }
.ofc-card-t i { color: var(--faint); }
.ofc-card-f { color: var(--muted); font-size: 12px; }
.ofc-card-f:empty { display: none; }
.ofc-strip { display: flex; gap: 4px; }
.ofc-strip .ofc-th { width: 40px; height: 48px; }
.ofc-card.is-scheduled em { color: var(--accent); }
.ofc-card.is-posted { border-left-color: var(--faint); }
.ofc-card.is-draft { border-style: dashed; border-left-color: var(--muted); }
.ofc-card.is-failed { border-left-color: var(--bad); }
.ofc-card.is-failed em { color: var(--bad); }
.ofc-daylist { display: grid; gap: 8px; }

/* pictures */
.ofc-th { position: relative; display: block; flex: none; overflow: hidden; border-radius: 6px; background: var(--hover); }
.ofc-th img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ofc-ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--faint); }
.ofc-th-more { display: grid; place-items: center; color: var(--muted); font-size: 12px; font-weight: 600; }
.ofc-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ofc-thumbs .ofc-th { aspect-ratio: 4 / 5; }
.ofc-thumbs small { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px; padding: 1px 5px; border-radius: 4px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; }

/* an item's drawer */
.ofc-status { margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; background: var(--panel); line-height: 1.45; }
.ofc-status.is-posted { border-left-color: var(--faint); }
.ofc-status.is-draft { border-style: dashed; border-left-color: var(--muted); }
.ofc-status.is-failed { border-left-color: var(--bad); }
.ofc-caption { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.ofc-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* the composer */
.ofc-composer .x-drawer-body { padding-bottom: 0; }
.ofc-compose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: 28px; align-items: start; }
@media (max-width: 860px) { .ofc-compose { grid-template-columns: 1fr; } }
.ofc-form .seg { justify-self: start; }
.ofc-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.ofc-form .ofc-row input[type=date], .ofc-form .ofc-row input[type=time] { width: auto; }
.ofc-money { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.ofc-form .ofc-money input[type=number] { width: 96px; }
.ofc-picked { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ofc-picked .ofc-th { width: 64px; height: 78px; }
.ofc-unpick { position: absolute; top: 3px; right: 3px; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; }
.ofc-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.ofc-opt { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--panel); color: var(--fg); font: inherit; font-size: 13px; cursor: pointer; }
.ofc-opt:hover { border-color: var(--muted); }
.ofc-opt small { color: var(--faint); font-variant-numeric: tabular-nums; }
.ofc-opt.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--panel)); }
.ofc-opt.is-out { border-color: color-mix(in srgb, var(--bad) 60%, transparent); color: var(--bad); }
.ofc-good { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ofc-good span { color: var(--faint); }
.ofc-time { padding: 2px 7px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--panel); color: var(--fg); font: inherit; font-family: var(--x-mono, inherit); font-size: 12px; cursor: pointer; }
.ofc-time:hover, .ofc-time.on { border-color: var(--accent); color: var(--accent); }
.ofc-foot { position: sticky; bottom: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin: 0 -20px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--bg); }
.ofc-foot p { margin: 0; max-width: 62ch; font-size: 13px; }
.ofc-foot .x-actions { display: flex; gap: 8px; margin-left: auto; }

/* the preview: roughly how it reads on OnlyFans */
.ofc-preview { position: sticky; top: 0; display: grid; gap: 8px; }
.ofc-preview h4 { margin: 0; color: var(--faint); font-size: 12.5px; font-weight: 600; }
.ofc-pv { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.ofc-pv-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ofc-pv-h > div { display: grid; min-width: 0; }
.ofc-pv-h small { color: var(--faint); font-size: 12px; }
.ofc-pv-h time { margin-left: auto; color: var(--muted); font-family: var(--x-mono, inherit); font-size: 12px; text-align: right; }
.ofc-pv-t { margin: 0; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.ofc-pv-media { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; overflow: hidden; border-radius: 10px; }
.ofc-pv-media.n1 { grid-template-columns: 1fr; }
.ofc-pv-media.n3 .ofc-th:first-child { grid-row: span 2; aspect-ratio: auto; }
.ofc-pv-media .ofc-th { aspect-ratio: 4 / 5; border-radius: 0; }
.ofc-pv-media.n1 .ofc-th { aspect-ratio: 4 / 3; }
.ofc-pv-media.is-locked img { filter: blur(12px); transform: scale(1.15); }
.ofc-lock { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; background: rgba(0, 0, 0, .3); color: #fff; font-size: 13px; }
.ofc-lock .ofc-i { width: 22px; height: 22px; }
.ofc-lock small { opacity: .85; }
.ofc-pv.is-msg .ofc-bubble { justify-self: end; display: grid; gap: 8px; max-width: 90%; padding: 8px; border-radius: 14px 14px 4px 14px; background: color-mix(in srgb, var(--accent) 12%, var(--panel)); }
.ofc-bubble .ofc-pv-t { padding: 0 4px 2px; }
.ofc-pv-f { margin: 0; color: var(--muted); font-size: 12.5px; }

/* the vault picker */
.ofc-pick-top { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; }
.ofc-pick-top > .btn:first-child { display: inline-flex; align-items: center; gap: 4px; }
.ofc-pick-top .x-field { width: 190px; }
.ofc-pick-top [data-count-picked] { margin-left: auto; align-self: center; font-size: 13px; }
.ofc-vault { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 12px 10px; }
.ofc-vitem { position: relative; display: grid; gap: 5px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.ofc-vitem .ofc-th { aspect-ratio: 4 / 5; outline: 2px solid transparent; outline-offset: 2px; }
.ofc-vitem:hover .ofc-th { outline-color: var(--line-strong); }
.ofc-vitem.on .ofc-th { outline-color: var(--accent); }
.ofc-vitem:focus-visible { outline: none; }
.ofc-vitem:focus-visible .ofc-th { outline-color: var(--accent); }
.ofc-vitem .ofc-th small { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px; padding: 1px 5px; border-radius: 4px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; }
.ofc-tick { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent, #fff); }

@media (max-width: 600px) {
  .ofc-grid { grid-template-columns: 116px repeat(var(--n), minmax(108px, 1fr)); }
  .ofc-grid.is-wide { grid-template-columns: 116px repeat(var(--n), minmax(92px, 1fr)); }
  .ofc-model .ofc-av { display: none; }
  .ofc-banner .btn { margin-left: 0; }
  .ofc-one-h p { margin-left: 0; }
}
