:root {
  --bg: #ffffff;
  --card: #f5f5f3;
  --ink: #17181c;
  --soft: rgba(23, 24, 28, 0.55);
  --quiet: rgba(23, 24, 28, 0.06);
  --photo: #f0705a;
  --video: #7a63f0;
  --story: #e39a1b;
  --news: #169c8a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 8px;
}

.pc { position: relative; width: min(324px, 100%); display: grid; grid-template-columns: minmax(0, 1fr); padding: 14px 10px 12px; border-radius: 28px; background: linear-gradient(180deg, #fbfbfa, var(--card)); box-shadow: inset 0 0 0 1px rgba(23, 24, 28, 0.07), inset 0 1px 0 #ffffff, 0 1px 2px rgba(23, 24, 28, 0.05), 0 26px 44px -30px rgba(23, 24, 28, 0.4); -webkit-user-select: none; user-select: none; }
.pc__roll { display: block; overflow: hidden; }
.pc__roll > span { display: block; white-space: nowrap; }

.pc__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 6px; }
.pc__title { font-size: 16px; line-height: 22px; font-weight: 740; font-stretch: 102%; letter-spacing: -0.01em; white-space: nowrap; }
.pc__info { height: 18px; line-height: 18px; font-size: 12px; font-weight: 580; color: var(--soft); text-align: right; }

/* the channels: each has its colour and how many posts it has this week */
.pc__channels { display: flex; gap: 4px; margin-top: 8px; padding: 0 4px; }
.pc__ch { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 5px; height: 24px; border-radius: 12px; background: color-mix(in srgb, var(--c) 13%, #ffffff); font-size: 11px; font-weight: 700; color: color-mix(in srgb, var(--c) 68%, #17181c); white-space: nowrap; }
.pc__ch b { font-weight: 760; color: var(--ink); }

.pc__week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 10px; }
.pc__day { position: relative; display: grid; grid-template-rows: auto auto 1fr; justify-items: center; height: 92px; padding: 6px 3px 4px; border-radius: 13px; background: #ffffff; box-shadow: inset 0 0 0 1px rgba(23, 24, 28, 0.07); transition: box-shadow 0.2s, background-color 0.2s; }
.pc__day.is-over { background: #ffffff; box-shadow: inset 0 0 0 2px var(--ink), 0 10px 18px -12px rgba(23, 24, 28, 0.5); }
.pc__dow { font-size: 9.500px; line-height: 12px; font-weight: 640; color: rgba(23, 24, 28, 0.42); }
.pc__num { font-size: 14px; line-height: 18px; font-weight: 740; }
.pc__slot { display: grid; align-content: start; gap: 3px; width: 100%; padding-top: 4px; }
.pc__tile { width: 100%; height: 15px; border: 0; border-radius: 6px; background: var(--c); cursor: grab; outline: none; touch-action: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.pc__tile:focus-visible, .pc__draft:focus-visible { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--ink); }

.pc__tray { margin-top: 10px; padding: 0 4px; }
.pc__traylabel { display: block; font-size: 11px; line-height: 14px; font-weight: 640; color: var(--soft); padding: 0 2px; }
.pc__drafts { display: flex; gap: 5px; height: 36px; margin-top: 5px; }
.pc__draft { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 8px 0 7px; border: 0; border-radius: 12px; background: #ffffff; color: var(--ink); font: inherit; font-size: 11.500px; font-weight: 660; cursor: grab; outline: none; touch-action: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; box-shadow: inset 0 0 0 1px rgba(23, 24, 28, 0.08), 0 4px 10px -6px rgba(23, 24, 28, 0.3); overflow: hidden; }
.pc__draft i { flex: none; width: 5px; height: 20px; border-radius: 3px; background: var(--c); }
.pc__draft span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc__empty { align-self: center; padding: 0 2px; font-size: 12px; font-weight: 560; color: var(--soft); }

/* the post in the hand: a copy that follows the pointer */
.pc__fly { position: absolute; left: 0; top: 0; z-index: 4; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px 0 7px; border-radius: 12px; background: #ffffff; font-size: 11.500px; font-weight: 660; white-space: nowrap; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(23, 24, 28, 0.08), 0 16px 26px -12px rgba(23, 24, 28, 0.5); overflow: hidden; }
.pc__fly i { flex: none; width: 5px; height: 20px; border-radius: 3px; background: var(--c); }

.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; pointer-events: none; opacity: 0; fill: var(--ink); stroke: #ffffff; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(23, 24, 28, 0.3)); z-index: 6; }
