/* The shop site's colours (site/styles.css :root). */
:root {
  --bg: #07090d; --card: #141925; --card-2: #1a2030; --line: #242c3b; --line-2: #2f3a4d;
  --text: #eaf0fb; --muted: #97a1b5; --accent: #f5c518; --accent-ink: #1a1500;
  --amber-soft: #2b2816; --amber-line: #5c4d12; --green: #3ad14f; --bad: #ef5a6b;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1 { font-size: 34px; line-height: 1.1; font-weight: 850; letter-spacing: -0.01em; margin: 6px 0 8px; }
h2 { font-size: 16px; font-weight: 800; margin: 0; }
p { margin: 0; }
.muted { color: var(--muted); }
.bad { color: var(--bad); margin: 8px 0; }
.narrow { max-width: 420px; margin: 12vh auto; padding: 0 20px; }
.wide { max-width: 1280px; margin: 0 auto; padding: 32px 40px 64px; }
.wordmark { color: var(--accent); font-weight: 900; letter-spacing: .25em; font-size: 13px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 11px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.primary { min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.ghost { min-height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px;
  background: transparent; font-weight: 700; }
.link { min-height: 36px; padding: 0 10px; border: 0; background: transparent; font-weight: 700;
  font-size: 13px; color: var(--accent); }
.link.quiet { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px;
  padding: 0 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: 14px; text-decoration: none; white-space: nowrap; }
input[type=text], input[type=search], input[type=password] { height: 44px; padding: 0 16px;
  background: #0b0e14; border: 1px solid var(--line-2); border-radius: 999px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.small { font-size: 13px; }
.crumbs { font-size: 14px; margin-bottom: 10px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); }
.section-title { font-size: 20px; margin: 36px 0 4px; }

/* The bar along the top of every page */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(7, 9, 13, .94);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.topbar-in { max-width: 1280px; margin: 0 auto; padding: 10px 40px; display: flex;
  align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.tabs { display: flex; gap: 4px; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border-radius: 999px; color: #c9d1e0; font-weight: 700; text-decoration: none; }
.tabs a:hover { background: var(--card); }
.tabs a[aria-current=page] { background: var(--card-2); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2); }
.badge { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--accent);
  color: var(--accent-ink); font-size: 12px; font-weight: 800; text-align: center; }
.health { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px;
  color: var(--muted); white-space: nowrap; }
.health .sep { color: var(--line-2); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.dot.ok { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot.warn { background: var(--accent); }
.dot.bad { background: var(--bad); }

/* Page headings */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.page-head .tools { display: flex; align-items: flex-end; gap: 10px; }
.page-head .tools label { display: block; font-size: 13px; font-weight: 700; color: var(--muted);
  margin-bottom: 6px; }
.banner { margin: 18px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--card-2);
  border: 1px solid var(--line-2); color: #c9d1e0; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; margin-top: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chips button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-weight: 700; }
.chips button[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chips .n { font-weight: 600; color: var(--muted); }
.chips button[aria-pressed=true] .n { color: #5a4a00; }
.day { margin-bottom: 20px; }
.day-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 6px; }
.day-head h2 .n { color: var(--muted); font-weight: 600; }
ul.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
ul.rows li { display: flex; align-items: center; gap: 12px; padding: 0 14px 0 4px; border-radius: 12px;
  border: 1px solid transparent; }
ul.rows li.on { background: var(--card-2); border-color: var(--amber-line); }
.switch { width: 60px; height: 44px; flex-shrink: 0; padding: 0; border: 0; background: transparent;
  display: flex; align-items: center; justify-content: center; }
.switch .track { position: relative; width: 44px; height: 24px; border-radius: 999px; background: var(--line-2); }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 999px;
  background: var(--muted); transition: left .12s; }
.switch[aria-pressed=true] .track { background: var(--accent); }
.switch[aria-pressed=true] .knob { left: 23px; background: var(--accent-ink); }
.time { width: 52px; flex-shrink: 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lg { flex-shrink: 0; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; max-width: 140px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teams { flex-grow: 1; min-width: 0; font-weight: 500; color: #c9d1e0; }
li.on .teams { font-weight: 700; color: var(--text); }
.teams .v { color: var(--muted); font-weight: 500; }
.tag { font-size: 12px; font-weight: 700; color: var(--accent); border: 1px solid var(--amber-line);
  border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.empty { padding: 24px 4px; color: var(--muted); }
aside { display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px;
  display: flex; flex-direction: column; gap: 10px; }
.big { display: flex; align-items: baseline; gap: 10px; }
.big b { font-size: 48px; line-height: 1; font-weight: 850; color: var(--accent); }
.clubs { display: flex; flex-wrap: wrap; gap: 8px; }
.club { display: inline-flex; align-items: center; padding-left: 12px; border-radius: 999px;
  background: var(--amber-soft); border: 1px solid var(--amber-line); color: var(--accent); font-weight: 700; font-size: 14px; }
.club button { width: 36px; height: 36px; border: 0; background: transparent; color: var(--accent); }
.add { display: flex; gap: 8px; }
.add input { flex-grow: 1; }
fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 2px; }
legend { padding: 0; margin-bottom: 8px; font-size: 16px; font-weight: 800; }
.check { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.status-line { font-size: 13px; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--card-2);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 16px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }

/* Clips: rows by day */
#filters { margin-top: 20px; }
.day-group { margin-top: 18px; }
.day-title { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
  margin: 0 0 8px 4px; }
.clip-row { display: grid; grid-template-columns: 176px minmax(0, 1fr) auto; gap: 18px;
  align-items: center; padding: 10px; margin-bottom: 8px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; }
.clip-row[hidden], .day-group[hidden] { display: none; }
.thumb { display: block; width: 176px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 9px;
  background: #000; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb.none { background: repeating-linear-gradient(135deg, var(--card-2) 0 10px, var(--card) 10px 20px); }
.what { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.what h3 { margin: 0; font-size: 17px; }
.what .tags { display: flex; align-items: center; gap: 10px; }
.what .note { font-size: 13px; }
.acts { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-right: 6px; }
.dl summary { cursor: pointer; font-size: 13px; color: var(--muted); list-style: none; }
.dl summary::-webkit-details-marker { display: none; }
.dl p { display: flex; gap: 10px; margin-top: 4px; font-size: 13px; }
.status { font-size: 12px; font-weight: 700; color: var(--muted); }
.s-ready, .s-posted { color: var(--green); }
.s-delete_needed, .s-failed { color: var(--bad); }

/* Settings */
.settings { max-width: 860px; }
.settings .card { margin-top: 16px; }
.settings h2 { font-size: 18px; }

/* Preview & post */
.clip-head h1 { margin-top: 4px; }
.act-grid { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr); gap: 16px;
  margin-top: 20px; align-items: start; }
.post-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px; border-top: 1px solid var(--line); padding-top: 8px; }
.post-row b { white-space: nowrap; }
.post-row .bad { margin: 0; font-size: 13px; }
.post-row .primary { min-height: 40px; }

/* How it looks posted: each platform's post around the real clip. */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px;
  margin-top: 24px; align-items: start; }
.post { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.post figcaption, .post-tools { align-self: stretch; display: flex; justify-content: space-between;
  align-items: baseline; gap: 8px; font-size: 13px; }
.post figcaption b { font-size: 15px; }
.post-states { font-size: 13px; color: var(--muted); }
.ps-posted, .ps-posted a { color: var(--green); }
.ps-failed, .ps-delete_failed, .ps-delete_failed a { color: var(--bad); }
.ic { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.ic.fill { fill: currentColor; stroke: none; }
.ht { font-weight: 700; }
.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  white-space: pre-line; }
.clamp.one { -webkit-line-clamp: 1; }
.clamp.three { -webkit-line-clamp: 3; }
.post .avatar { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px;
  border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 900;
  text-shadow: none; }

.phone { position: relative; width: 260px; aspect-ratio: 9 / 19.5; overflow: hidden; color: #fff;
  background: #000; border: 8px solid #20252f; border-radius: 34px; font-size: 12px; line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.phone video { position: absolute; top: 0; left: 0; width: 100%; height: calc(100% - 46px);
  object-fit: cover; }
.phone .appnav { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; display: flex;
  justify-content: space-around; align-items: center; background: #000; color: #ccc; font-size: 10px;
  text-shadow: none; }
.phone .appnav .plus { display: grid; place-items: center; width: 34px; height: 22px; border-radius: 7px;
  background: #fff; color: #000; font-size: 16px; font-weight: 800; }
/* Where the apps put their buttons: TikTok's start about half-way down, centred
   ~6% in from the right edge; Reels' sit lower. (Published safe zones, 1080x1920:
   TikTok keeps the right ~140px and bottom ~400px; Reels the right ~120px and
   bottom ~420px.) */
.phone .rail { position: absolute; right: 0; width: 32px; bottom: 72px; display: flex;
  flex-direction: column; align-items: center; gap: 11px; }
.phone .rail .ic { width: 24px; height: 24px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.phone .rail .avatar { width: 28px; height: 28px; border: 1.5px solid #fff; font-size: 13px; }
.phone .cap { position: absolute; left: 10px; right: 56px; bottom: 56px; display: flex;
  flex-direction: column; gap: 4px; }
.phone .cap b { font-size: 13px; }
.phone .sound { display: flex; align-items: center; gap: 4px; overflow: hidden; white-space: nowrap;
  font-size: 11px; }
.phone .sound .ic { width: 12px; height: 12px; }
.tt-top { position: absolute; top: 30px; left: 0; right: 0; display: flex; justify-content: center;
  gap: 14px; color: #ddd; font-size: 13px; }
.tt-top b { color: #fff; border-bottom: 2px solid #fff; padding-bottom: 2px; }
.tt .disc { width: 24px; height: 24px; border-radius: 50%; border: 5px solid #222;
  background: var(--accent); }
.ig-top { position: absolute; top: 28px; left: 12px; right: 12px; display: flex;
  justify-content: space-between; align-items: center; font-size: 18px; }
.ig .rail { gap: 18px; bottom: 58px; }
.ig .rail .tile { width: 22px; height: 22px; border: 2px solid #fff; border-radius: 6px;
  background: var(--accent); }
.ig .who { display: flex; align-items: center; gap: 8px; }
.ig .who .avatar { width: 28px; height: 28px; font-size: 13px; }
.ig .follow { padding: 1px 8px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 8px;
  font-size: 11px; font-weight: 700; }

.feed { width: 280px; overflow: hidden; font-size: 13px; line-height: 1.4; }
.fb { background: #242526; color: #e4e6eb; border-radius: 12px; }
.fb .muted { color: #b0b3b8; }
.fb header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.fb header div { display: flex; flex-direction: column; flex-grow: 1; line-height: 1.25; }
.fb header .muted { font-size: 11px; }
.fb .text { margin: 0 12px 10px; }   /* margin, not padding: padding shows the clamped line */
.fb .ht { color: #4599ff; font-weight: 600; }
.fb video { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #000; }
.fb footer { display: flex; justify-content: space-around; padding: 6px 4px; border-top: 1px solid #3e4042;
  color: #b0b3b8; font-weight: 600; }
.fb footer span { display: flex; align-items: center; gap: 5px; }
.fb footer .ic { width: 18px; height: 18px; }
.xx { display: flex; gap: 10px; padding: 12px; background: #000; color: #e7e9ea;
  border: 1px solid #2f3336; border-radius: 4px; }
.xx .avatar { width: 34px; height: 34px; }
.xx .muted { color: #71767b; }
.xx .body { display: flex; flex-direction: column; gap: 6px; flex-grow: 1; min-width: 0; }
.xx .text { white-space: pre-line; }
.xx .ht { color: #1d9bf0; font-weight: 400; }
.xx video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000;
  border: 1px solid #2f3336; border-radius: 14px; }
.xx footer { display: flex; justify-content: space-between; padding-right: 8px; color: #71767b; }
.xx footer .ic { width: 17px; height: 17px; }

/* End-card photos */
.lib-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px;
  margin-top: 20px; align-items: start; }
.lib-tools { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.upload { display: inline-flex; align-items: center; cursor: pointer; }
.card select { height: 36px; margin-left: 6px; border-radius: 8px; background: #0b0e14;
  border: 1px solid var(--line-2); color: var(--text); font: inherit; }
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px;
  margin-top: 20px; }
.photo { margin: 0; overflow: hidden; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; }
.photo.fav { border-color: var(--accent); }
.photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo figcaption { display: flex; justify-content: space-between; align-items: center;
  padding: 0 0 0 10px; font-size: 12px; }
.photo figcaption .link { min-height: 30px; font-size: 12px; }
.ec-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ec { display: grid; place-items: center; width: 96px; height: 72px; padding: 0; overflow: hidden;
  background: var(--card); border: 2px solid var(--line-2); border-radius: 10px; color: var(--muted);
  font-weight: 700; }
.ec img { width: 100%; height: 100%; object-fit: cover; }
.ec[aria-pressed=true] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.ec:disabled { cursor: default; opacity: .55; }
.ec[aria-pressed=true]:disabled { opacity: 1; }

@media (max-width: 1100px) {
  .health .sep, .health .where { display: none; }
}
@media (max-width: 900px) {
  .wide { padding: 20px 16px 48px; }
  .topbar-in { flex-wrap: wrap; gap: 8px 16px; padding: 8px 16px; }
  .health { margin-left: 0; order: 3; width: 100%; }
  .lib-head, .act-grid { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; align-items: stretch; }
  .layout { grid-template-columns: 1fr; }
  .clip-row { grid-template-columns: 120px minmax(0, 1fr); }
  .thumb { width: 120px; }
  .acts { grid-column: 1 / -1; flex-direction: row; justify-content: space-between;
    align-items: center; padding: 0; }
}
