/* scheduled scene: content bank feeds a week calendar, days fill like dominoes */
.scheduled { width: 100%; padding: 14px; display: grid; gap: 12px; font-family: var(--sans); color: var(--ink); }
.scheduled-rs, .scheduled-rs * { transition: none !important; animation: none !important; }
.scheduled svg { display: block; }

.scheduled-bank, .scheduled-cal { padding: 12px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line-2); }
.scheduled-bh, .scheduled-ch { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; font-size: 12.5px; line-height: 1; white-space: nowrap; }
.scheduled-bh svg { align-self: center; width: 15px; height: 15px; fill: none; stroke: var(--mute); stroke-width: 1.6; }
.scheduled-bh b, .scheduled-ch b { font-weight: 600; }
.scheduled-bh small, .scheduled-ch small { font-size: 11px; color: var(--dim); }
.scheduled-ch em { margin-left: auto; font: 500 10.5px var(--mono); font-style: normal; color: var(--mute); transition: color .4s; }
.scheduled-cal.is-full .scheduled-ch em { color: var(--ok); }

.scheduled-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.scheduled-chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); font-size: 11.5px; font-weight: 500; line-height: 1; white-space: nowrap; transition: opacity .5s, transform .5s var(--ease), border-color .4s; }
.scheduled-chip i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--a); }
.scheduled-bank .scheduled-chip.is-used { opacity: .28; transform: scale(.94); border-color: transparent; }
.scheduled-more { display: inline-flex; align-items: center; height: 24px; padding: 0 6px; font: 500 10.5px var(--mono); color: var(--dim); white-space: nowrap; }

/* week */
.scheduled-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.scheduled-next { display: none; }
.scheduled-day { min-width: 0; }
.scheduled-dl { display: flex; justify-content: center; align-items: baseline; gap: 4px; margin-bottom: 6px; font-size: 10px; line-height: 1; color: var(--dim); white-space: nowrap; transition: color .4s; }
.scheduled-dl b { font-weight: 600; font-size: 11px; color: var(--mute); transition: color .4s; }
.scheduled-day.is-in .scheduled-dl, .scheduled-day.is-in .scheduled-dl b { color: var(--ink); }
.scheduled-cell { position: relative; height: 150px; perspective: 700px; }
.scheduled-cell::before { content: ''; position: absolute; inset: 0; border-radius: 11px; border: 1px dashed rgba(255,255,255,.13); transition: opacity .4s; }
.scheduled-day.is-in .scheduled-cell::before { opacity: 0; }
.scheduled-flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.scheduled-day.is-posted .scheduled-flip { transform: rotateY(180deg); }
.scheduled-front, .scheduled-back { position: absolute; inset: 0; border-radius: 11px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }

.scheduled-front { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; background: var(--paper-2); border: 1px solid var(--line); opacity: 0; transition: opacity .35s; }
.scheduled-day.is-in .scheduled-front { opacity: 1; }
.scheduled-front .scheduled-chip { height: 19px; max-width: 100%; padding: 0 6px; font-size: 9px; letter-spacing: -.01em; background: #26262B; opacity: 0; transform: translateY(-96px) scale(1.12); transition: opacity .25s, transform .7s cubic-bezier(.3, 1.35, .5, 1); }
.scheduled-front .scheduled-chip i { width: 5px; height: 5px; }
.scheduled-day.is-in .scheduled-front .scheduled-chip { opacity: 1; transform: none; }
.scheduled-th { position: relative; flex: none; width: 100%; max-width: 56px; aspect-ratio: 1; border-radius: 7px; overflow: hidden; background: #202024; }
.scheduled-th::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.1) 50%, transparent 70%); background-size: 220% 100%; animation: scheduled-shim 1.1s linear infinite; }
@keyframes scheduled-shim { from { background-position: 120% 0; } to { background-position: -100% 0; } }
.scheduled-th u { position: absolute; inset: 0; background: radial-gradient(70% 60% at 72% 26%, rgba(255,255,255,.55), rgba(255,255,255,0) 60%), radial-gradient(60% 60% at 20% 90%, rgba(0,0,0,.25), rgba(0,0,0,0) 70%), linear-gradient(150deg, var(--a), var(--b)); opacity: 0; filter: blur(7px) saturate(.2); transform: scale(1.25); transition: opacity .45s, filter .75s, transform .8s var(--ease); }
.scheduled-day.is-img .scheduled-th u { opacity: 1; filter: none; transform: none; }
.scheduled-day.is-img .scheduled-th::before { opacity: 0; animation: none; }
.scheduled-ck { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 8.5px; line-height: 1.05; font-weight: 500; text-align: center; color: var(--ok); opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .4s var(--ease); }
.scheduled-ck i { width: 14px; height: 14px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; transform: scale(.3); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.scheduled-ck svg, .scheduled-back svg { width: 10px; height: 10px; fill: none; stroke: #06140D; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.scheduled-day.is-chk .scheduled-ck { opacity: 1; transform: none; } .scheduled-day.is-chk .scheduled-ck i { transform: none; }

.scheduled-back { transform: rotateY(180deg); overflow: hidden; display: flex; flex-direction: column; padding: 7px 6px 6px; color: #fff; background: radial-gradient(70% 50% at 76% 18%, rgba(255,255,255,.5), rgba(255,255,255,0) 60%), radial-gradient(70% 50% at 10% 100%, rgba(0,0,0,.35), rgba(0,0,0,0) 70%), linear-gradient(150deg, var(--a), var(--b)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 10px 22px -12px #000; }
.scheduled-back .scheduled-ig { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 1.9; opacity: .95; }
.scheduled-back strong { margin-top: auto; font: 400 14px/1.02 var(--serif); letter-spacing: -.005em; white-space: nowrap; text-shadow: 0 1px 6px rgba(0,0,0,.25); }
.scheduled-back > div { margin: 6px -6px -6px; padding: 5px 5px 6px; background: rgba(9,9,11,.82); display: grid; gap: 3px; justify-items: start; }
.scheduled-back span { display: flex; align-items: center; gap: 3px; font-size: 9.5px; font-weight: 600; line-height: 1; color: var(--ok); white-space: nowrap; }
.scheduled-back span svg { width: 11px; height: 11px; stroke: var(--ok); margin-left: -1px; }
.scheduled-back small { font: 500 9px var(--mono); line-height: 1; color: rgba(255,255,255,.7); padding-left: 1px; }

.scheduled-out { justify-self: center; display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 16px 6px 10px; border-radius: 999px; background: var(--ok-bg); border: 1px solid rgba(61,214,140,.3); font-size: 13.5px; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .6s var(--ease); }
.scheduled-out.on { opacity: 1; transform: none; } .scheduled-out b { font-weight: 600; color: var(--ok); }
.scheduled-out svg { flex: none; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--ok); fill: none; stroke: #06140D; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 600px) {
  .scheduled { padding: 10px; gap: 10px; }
  .scheduled-bank, .scheduled-cal { padding: 10px; border-radius: 14px; }
  .scheduled-bh small { display: none; } .scheduled-ch small { display: none; }
  .scheduled-chips { gap: 5px; } .scheduled-chip { height: 22px; font-size: 10.5px; padding: 0 8px 0 6px; } .scheduled-more { height: 22px; font-size: 9.5px; }
  .scheduled-days { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 6px; }
  .scheduled-next { display: block; }
  .scheduled-cell { height: 128px; }
  .scheduled-back strong { font-size: 15px; }
  .scheduled-front .scheduled-chip { font-size: 9.5px; transform: translateY(-120px) scale(1.1); }
  .scheduled-nx { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font: 500 9.5px/1.4 var(--mono); color: var(--dim); opacity: 0; transition: opacity .5s; }
  .scheduled-cal.is-full .scheduled-nx { opacity: 1; }
  .scheduled-out { font-size: 12.5px; }
}
