/* scheduling: styles for this feature. Uses the tokens in /app.css. */

/* Studio: Publish now or schedule */
.pub { display: grid; gap: 10px; padding: 16px; border-radius: 12px; background: var(--sunken); }
.pub-label { font: 700 14px/1.4 Lato, sans-serif; color: var(--deep); }
.pub-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; border-radius: 11px; background: var(--card); box-shadow: var(--shadow-1); }
.pub-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 6px 12px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); font: 600 14px/1.4 Lato, sans-serif; cursor: pointer; transition: background-color var(--dur-1), color var(--dur-1), box-shadow var(--dur-1); }
.pub-seg button:hover { color: var(--deep); }
.pub-seg button[aria-checked="true"] { background: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(9, 48, 77, .2); }
.pub-seg button:focus-visible { outline: none; box-shadow: var(--focus); }
.pub-when { display: grid; gap: 8px; }
.pub-when[hidden] { display: none; }
.pub-fields { display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px; }
.pub-fields label { display: grid; gap: 4px; font: 700 12px/1.4 Lato, sans-serif; letter-spacing: .02em; color: var(--muted); }
.pub-fields .field { min-height: 40px; padding: 8px 10px; font: 400 14px/1.4 Lato, sans-serif; font-variant-numeric: tabular-nums; color: var(--ink); }
.pub-zone { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.pub-zone svg { flex: none; }
.pub-summary { margin: 0; font-size: 13px; line-height: 1.45; font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }
.pub-summary:empty { display: none; }
.pub-summary.bad { color: var(--danger); }
.studio-top .pub-draft { margin-left: 0; }
@media (max-width: 560px) {
  .studio-top .pub-draft { padding: 9px 12px; }
  .studio-top:has(.pub-draft) .studio-where { display: none; }
}

/* Banner above a space's feed */
.sched-banner-slot:empty { display: none; }
.sched-banner { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 16px; padding: 12px 16px; border: 0; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-1); color: var(--ink); text-align: left; font: inherit; cursor: pointer; transition: box-shadow var(--dur-2) var(--ease-out), transform 100ms var(--ease-out); }
.sched-banner:hover { box-shadow: var(--shadow-2); }
.sched-banner:active { transform: scale(.995); }
.sched-banner:focus-visible { outline: none; box-shadow: var(--shadow-1), var(--focus); }
.sched-banner-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--tint); color: var(--blue); }
.sched-banner-text { display: grid; gap: 1px; min-width: 0; flex: 1; }
.sched-banner-text strong { font-size: 15px; line-height: 1.4; color: var(--deep); font-variant-numeric: tabular-nums; }
.sched-banner-text span { font-size: 13px; line-height: 1.4; color: var(--muted); }
.sched-banner-go { display: inline-flex; align-items: center; gap: 2px; flex: none; font-size: 14px; line-height: 1.4; font-weight: 700; color: var(--blue); }

/* The list (sheet over the feed, and the admin section) */
.sched-sheet { width: min(760px, calc(100vw - 32px)); max-height: min(86vh, 900px); display: none; }
.sched-sheet[open] { display: grid; grid-template-rows: auto 1fr; }
.sched-sheet-head { display: flex; align-items: flex-start; gap: 12px; padding: 22px 24px 14px; box-shadow: 0 1px 0 var(--line); }
.sched-sheet-head > div { flex: 1; display: grid; gap: 4px; }
.sched-sheet-head h2 { margin: 0; font-size: 22px; line-height: 1.3; }
.sched-sheet-head p { margin: 0; line-height: 1.45; }
.sched-sheet-body { overflow-y: auto; padding: 8px 24px 24px; }
.sched-group h3 { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; font: 700 12px/1.4 Lato, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sched-group h3 .num { padding: 1px 8px; border-radius: 99px; background: var(--sunken); color: var(--ink-2); letter-spacing: 0; }
.sched-group:first-child h3 { margin-top: 10px; }
.sched-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sched-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow-1); transition: box-shadow var(--dur-2) var(--ease-out); }
.sched-row:hover { box-shadow: var(--shadow-2); }
.sched-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.sched-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sched-tags .pill { font-size: 12px; line-height: 1.4; }
.sched-notify { display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 189, 89, .25); color: #7a4b00; }
.sched-space { font-size: 13px; line-height: 1.4; font-weight: 700; color: var(--sky); }
.sched-title { font-size: 15.5px; line-height: 1.4; color: var(--deep); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sched-excerpt { font-size: 14px; line-height: 1.45; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sched-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.sched-when { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }
.sched-when.draft { color: var(--ink-2); font-weight: 600; }
.sched-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.sched-actions .btn { min-height: 34px; padding: 6px 12px; font-size: 13.5px; }
.sched-delete { width: 34px; height: 34px; color: var(--muted); }
.sched-delete:hover { background: rgba(179, 38, 30, .08); color: var(--danger); }
.sched-admin { padding: 6px 20px 20px; }
.sched-admin .empty-state { padding: 36px 16px; }
.sched-filter { justify-content: space-between; }
.sched-pick form { gap: 10px; }
.sched-pick p { margin: 0; line-height: 1.5; }
.sched-pick .error:empty { display: none; }

@media (max-width: 720px) {
  .sched-row { position: relative; flex-direction: column; align-items: stretch; gap: 12px; }
  .sched-tags { padding-right: 36px; min-height: 26px; }
  .sched-actions .btn { flex: 1 1 auto; padding: 6px 10px; }
  .sched-delete { position: absolute; top: 8px; right: 8px; }
  .sched-title, .sched-excerpt { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .sched-sheet-head { padding: 18px 16px 12px; }
  .sched-sheet-body { padding: 4px 16px 20px; }
  .sched-admin { padding: 4px 14px 16px; }
}
