/* Outbox — the small stylesheet on top of 00.css.
 *
 * Everything below styles against the same tokens 00.css defines, so the week wears the window's
 * colours in light and dark without a second palette. 360 px first: the seven columns collapse to
 * ONE day plus a day strip, which is the only way a week grid is usable on a phone. */

/* A week needs more room than a page of text, which is what 00.css's 860 px is for. */
.app {
  max-width: 1200px;
}

/* ── header ───────────── */

.ob-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--s2);
}
.ob-head-main {
  flex: 1 1 220px;
  min-width: 0;
}
#file-path {
  font-size: 12px;
}

/* ── the day strip (phone) ───────────── */

.day-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--s1);
  overflow-x: auto;
}
.day-pick {
  flex: 1 1 0;
  min-width: 44px;
  padding: 0 var(--s1);
  flex-direction: column;
  gap: 0;
  line-height: 1.15;
}
.day-pick-name {
  font-size: 13px;
}
.day-pick-count {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

/* ── the week ───────────── */

.week {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s2);
  align-items: start;
}
.day {
  display: none;
  min-width: 0;
  padding: var(--s2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.day.day-current {
  display: block;
}
.day-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s2);
  margin: 0 0 var(--s2);
  font-size: 14px;
  font-weight: 600;
}
.day-date {
  font-size: 12px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.day-list {
  gap: 0;
}
.day-none {
  margin: var(--s1) 0 0;
}
.add-slot {
  width: 100%;
  margin-top: var(--s2);
  font-size: 13px;
}

/* Above this width all seven days fit side by side and the strip is redundant. */
@media (min-width: 880px) {
  .week {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .day {
    display: block;
  }
  .day.day-current {
    border-color: var(--edge);
  }
  .day-strip {
    display: none;
  }
}

/* ── a planned post ───────────── */

.item {
  display: block;
  min-height: var(--tap);
  padding: var(--s2);
  background: var(--surface-2);
  cursor: pointer;
}
.item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.item-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s1);
  margin-bottom: var(--s1);
}
.at {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.chip {
  padding: 1px 7px;
  border: 1px solid hsl(var(--h, 210) 40% 42%);
  border-radius: 999px;
  color: hsl(var(--h, 210) 55% 62%);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.pill {
  margin-left: auto;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--raised);
  color: var(--ink-dim);
  font-size: 11px;
}
/* The three statuses the format defines. An unknown one keeps the neutral pill above — a plan is
   allowed to say something this app has not heard of. */
.pill[data-status="queued"] {
  border-color: var(--info);
  color: var(--info);
}
.pill[data-status="sent"] {
  border-color: var(--accent-dim);
  color: var(--accent);
}
.item .row-title {
  font-size: 13px;
}
.item .row-meta {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

/* The move buttons: on the SELECTED row, never on hover — a phone has no hover and a keyboard
   should not need one either. */
.move {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin-top: var(--s2);
}
.move .btn {
  flex: 1 1 44px;
}

/* ── drop zones ───────────── */

/* Invisible until something is being dragged, then a labelled 32 px target saying the exact time it
   would give the post. */
.zone {
  list-style: none;
  height: 6px;
  border-radius: var(--radius);
  color: transparent;
  font-size: 11px;
  line-height: 6px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.week.dragging .zone {
  height: 32px;
  line-height: 30px;
  margin: 2px 0;
  border: 1px dashed var(--line);
  color: var(--ink-dim);
}
.week.dragging .zone.over {
  border-color: var(--accent);
  border-style: solid;
  color: var(--accent);
}

/* ── the empty state ───────────── */

#empty {
  text-align: left;
}
#empty p:last-of-type {
  margin-bottom: var(--s3);
}

@media (prefers-reduced-motion: reduce) {
  .zone,
  .week.dragging .zone {
    transition: none;
  }
}
