:root {
  color-scheme: dark;

  --bg: #0a0a0d;
  --card: #131318;
  --card-2: #1a1a21;
  --line: rgb(255 255 255 / 7%);
  --line-2: rgb(255 255 255 / 13%);

  --text: #f2f3f5;
  --text-2: #a0a2ad;
  --text-3: #6e7078;

  --lime: #c4f24a;
  --lime-ink: #12160a;
  --lime-soft: rgb(196 242 74 / 10%);
  --lime-line: rgb(196 242 74 / 38%);

  --bad: #ff6b4a;
  --bad-soft: rgb(255 107 74 / 12%);
  --warn: #f0c04a;

  --rail: 76px;
  --panel: 424px;
  --r: 10px;
  --r-lg: 14px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 32px;
  font-weight: 640;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

h2 {
  font-size: 16px;
  font-weight: 620;
  letter-spacing: -0.015em;
}

.muted {
  color: var(--text-2);
}

.tiny {
  font-size: 11.5px;
}

.small {
  font-size: 12.5px;
}

.error {
  color: var(--bad);
}

.link {
  background: none;
  border: none;
  padding: 0;
  color: var(--lime);
  cursor: pointer;
  font: inherit;
}

.link:hover {
  color: #d7ff6b;
}

.label {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ---------- controls ---------- */

input,
textarea,
button {
  font: inherit;
  color: inherit;
}

input[type="password"],
input[type="datetime-local"],
textarea {
  width: 100%;
  background: #0f0f14;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 10px 12px;
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-3);
}

input:focus,
textarea:focus {
  border-color: var(--lime-line);
  box-shadow: 0 0 0 3px rgb(196 242 74 / 12%);
}

textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn:focus-visible,
.chip:focus-visible,
.day:focus-visible,
.pill:has(input:focus-visible),
.rail-btn:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--lime);
  color: var(--lime-ink);
  box-shadow: 0 8px 24px rgb(196 242 74 / 18%);
}

.btn-primary:hover:not(:disabled) {
  background: #d0ff5c;
}

.btn-secondary {
  background: var(--card-2);
  border-color: var(--line-2);
}

.btn-secondary:hover:not(:disabled) {
  background: #22222b;
}

.btn-ghost {
  color: var(--text-2);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--card-2);
  color: var(--text);
}

.btn-sm {
  height: 28px;
  padding: 0 9px;
  font-size: 12.5px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 15px;
}

.btn-block {
  width: 100%;
  height: 40px;
}

.chip {
  height: 30px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text-2);
  font-size: 12.5px;
  cursor: pointer;
}

.chip:hover {
  background: var(--card-2);
  color: var(--text);
}

.chip[aria-pressed="true"] {
  background: var(--lime-soft);
  border-color: var(--lime-line);
  color: var(--lime);
}

.row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---------- login ---------- */

.login {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.login-card {
  width: min(340px, 100%);
  display: grid;
  gap: 12px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  box-shadow: 0 40px 90px rgb(0 0 0 / 55%);
}

.login-foot {
  color: var(--text-3);
  font-size: 11.5px;
  text-align: center;
}

/* ---------- shell ---------- */

.shell {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr) var(--panel);
  height: 100vh;
}

.mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: block;
  filter: drop-shadow(0 6px 16px rgb(196 242 74 / 22%));
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-name {
  font-size: 15px;
  font-weight: 640;
  letter-spacing: -0.02em;
}

/* ---------- rail ---------- */

.rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 0 16px;
  border-right: 1px solid var(--line);
}

.rail-gap {
  flex: 1;
}

.rail-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-3);
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.rail-btn:hover {
  background: var(--card);
  color: var(--text);
}

.rail-btn.on {
  background: var(--card-2);
  color: var(--text);
}

.rail-btn svg {
  display: block;
}

.rail-btn.accent {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 20px;
  box-shadow: 0 8px 20px rgb(196 242 74 / 20%);
}

.rail-btn.accent:hover {
  background: #d0ff5c;
  color: var(--lime-ink);
}

.rail-channels {
  display: grid;
  gap: 4px;
  margin-bottom: 6px;
}

.rail-channels .pill {
  width: 34px;
  height: 34px;
  padding: 0;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
}

.rail-channels .pill .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
}

.rail-channels .pill.off .dot {
  background: var(--text-3);
}

.rail-channels .pill:hover {
  background: var(--card);
}

.rail-channels .abbr {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--text-3);
}

.rail-channels .pill.on .abbr {
  color: var(--text);
}

.rail-channels .pill.on {
  background: var(--lime-soft);
  border-color: var(--lime-line);
}

.rail-channels .truncate,
.rail-channels .x {
  display: none;
}

/* ---------- main ---------- */

.main {
  overflow-y: auto;
  padding: 0 32px 48px;
  min-width: 0;
}

/* Sticky so the week you are looking at never scrolls away. */
.main-head {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 12px;
  margin: 0 0 12px;
  background: linear-gradient(180deg, var(--bg) 78%, rgb(10 10 13 / 0%));
  backdrop-filter: blur(6px);
}

.head-text {
  display: grid;
  gap: 6px;
}

.filter {
  width: 190px;
  height: 32px;
  padding: 0 11px;
  font-size: 12.5px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--text);
  outline: none;
}

.filter::placeholder {
  color: var(--text-3);
}

.filter:focus {
  border-color: var(--lime-line);
  box-shadow: 0 0 0 3px rgb(196 242 74 / 10%);
}

.banner {
  margin: -6px 0 16px;
  padding: 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--card);
  font-size: 12.5px;
  color: var(--text-2);
}

.banner.ok {
  border-color: var(--lime-line);
  color: var(--lime);
}

.banner.error {
  border-color: rgb(255 107 74 / 35%);
  color: #ffb3a3;
}

/* ---------- week ---------- */

.week {
  margin-bottom: 20px;
}

.week-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 0 2px;
}

.week-toolbar .link {
  margin-left: auto;
}

.week-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.day {
  display: grid;
  gap: 2px;
  align-content: start;
  justify-items: start;
  padding: 10px 12px 11px;
  min-height: 86px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.day:hover {
  background: var(--card);
}

.day.selected {
  background: var(--card);
  border-color: var(--line-2);
  box-shadow: 0 10px 26px rgb(0 0 0 / 35%);
}

.day.today .day-name {
  color: var(--lime);
}

.day-name {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.day-num {
  font-size: 19px;
  font-weight: 620;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.day-count {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 4px;
}

.day.selected .day-count,
.day.today .day-count {
  color: var(--text-2);
}

.day.selected .day-count {
  color: var(--lime);
}

.day-dots {
  display: flex;
  gap: 3px;
  margin-top: 6px;
  min-height: 5px;
}

.day-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--text-3);
}

.dot.instagram {
  background: #e8618c;
}

.dot.facebook {
  background: #5b8ee8;
}

.dot.tiktok {
  background: #a78bfa;
}

.day-add {
  position: absolute;
  top: 9px;
  right: 10px;
  font-size: 13px;
  line-height: 1;
  color: var(--text-3);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.day:hover .day-add,
.day:focus-visible .day-add {
  opacity: 1;
}

/* ---------- next up ---------- */

.next-up {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  margin-bottom: 26px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.next-up:hover {
  border-color: var(--line-2);
  transform: translateY(-1px);
}

.next-up:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.next-art {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  background:
    radial-gradient(120% 90% at 20% 10%, #ff9d6b 0%, transparent 55%),
    radial-gradient(90% 80% at 80% 90%, #7c5cff 0%, transparent 60%),
    linear-gradient(140deg, #2a1c3f, #12121a);
  background-size: cover;
  background-position: center;
  position: relative;
  display: grid;
  place-items: center;
  color: rgb(255 255 255 / 75%);
  font-size: 17px;
}

.next-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.next-art .play {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgb(0 0 0 / 45%);
  backdrop-filter: blur(6px);
}

.next-blank {
  font-size: 17px;
  color: rgb(255 255 255 / 70%);
}

.next-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.next-eyebrow {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
}

.next-title {
  font-size: 20px;
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.next-meta {
  color: var(--text-2);
  font-size: 13px;
}

.next-chips {
  display: flex;
  gap: 6px;
  margin-top: auto;
  flex-wrap: wrap;
}

/* ---------- queue ---------- */

.queue {
  display: grid;
  gap: 2px;
}

.section-label {
  padding: 6px 2px 10px;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.queue-list {
  border-top: 1px solid var(--line);
}

.queue-scope {
  padding: 12px 2px 6px;
  font-size: 12px;
  color: var(--text-3);
}

.post {
  border-bottom: 1px solid var(--line);
}

.post:hover {
  background: rgb(255 255 255 / 1.5%);
}

.post-row {
  display: grid;
  grid-template-columns: 44px 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 8px 6px;
}

.post-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(150deg, #23232e, #15151c);
  display: grid;
  place-items: center;
}

.post-thumb img,
.post-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-blank {
  font-size: 13px;
  color: var(--text-3);
}

.post-when {
  display: grid;
  gap: 1px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.when-day {
  font-size: 13px;
  font-weight: 600;
}

.when-time {
  font-size: 11.5px;
  color: var(--text-3);
}

.post-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.post-caption {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-tags {
  font-size: 11.5px;
  color: var(--text-3);
  white-space: nowrap;
  flex: 0 0 auto;
}

.post-rel {
  font-size: 11.5px;
  color: var(--text-3);
  white-space: nowrap;
}

.post-rel.warn {
  color: var(--warn);
}

.status {
  font-size: 10.5px;
  font-weight: 650;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--card-2);
  color: var(--text-2);
  white-space: nowrap;
  text-transform: capitalize;
}

.status.scheduled {
  color: var(--lime);
  background: var(--lime-soft);
}

.status.publishing,
.status.partial {
  color: var(--warn);
  background: rgb(240 192 74 / 12%);
}

.status.published {
  color: #9fe0c1;
  background: rgb(76 183 130 / 12%);
}

.status.failed {
  color: #ff9c8a;
  background: var(--bad-soft);
}

/*
 * Status and actions share one cell: the actions overlay the pill on hover, so
 * they can never widen the row or collide with the caption.
 */
.post-end {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 96px;
  min-height: 26px;
}

.status {
  transition: opacity 0.12s ease;
}

.post-actions {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: flex-end;
  gap: 2px;
  padding-left: 12px;
  background: linear-gradient(90deg, transparent 0, #101014 14px, #101014 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.post:hover .post-actions,
.post:focus-within .post-actions {
  opacity: 1;
  pointer-events: auto;
}

.post:hover .status,
.post:focus-within .status {
  opacity: 0;
}

.act-icon {
  display: none;
}

.post-errors {
  display: grid;
  gap: 2px;
  padding: 0 6px 10px 58px;
  font-size: 12px;
  color: #ffb3a3;
}

.empty {
  padding: 26px 6px;
  font-size: 13px;
  color: var(--text-3);
  border-bottom: 1px solid var(--line);
}

/* ---------- composer ---------- */

.composer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-left: 1px solid var(--line);
  background: var(--card);
  min-height: 0;
}

.composer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 14px 0 20px;
  border-bottom: 1px solid var(--line);
}

#close-composer {
  display: none;
}

.composer-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 20px;
  overflow-y: auto;
  min-height: 0;
}

.composer-foot {
  display: grid;
  gap: 8px;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--line);
}

.foot-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.foot-row .btn {
  height: 40px;
}

/* live preview */

.post-preview {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-2);
}

.preview-art {
  position: relative;
  overflow: hidden;
  width: 86px;
  height: 86px;
  border-radius: 10px;
  background:
    radial-gradient(120% 90% at 20% 10%, #ff9d6b 0%, transparent 55%),
    radial-gradient(90% 80% at 80% 90%, #7c5cff 0%, transparent 60%),
    linear-gradient(140deg, #2a1c3f, #12121a);
  background-size: cover;
  background-position: center;
}

.preview-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-meta {
  display: grid;
  gap: 3px;
  align-content: start;
  min-width: 0;
}

.preview-who {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
}

.avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(140deg, #ff9d6b, #7c5cff);
}

.preview-text {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.preview-tags {
  font-size: 11px;
  color: var(--text-3);
}

.dropzone {
  display: grid;
  place-items: center;
  min-height: 62px;
  padding: 12px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-3);
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  cursor: pointer;
}

.dropzone:hover,
.dropzone.drag {
  border-color: var(--lime-line);
  color: var(--text-2);
}

.media-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-2);
}

.media-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
  flex: 0 0 auto;
}

.media-thumb img,
.media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-meta {
  display: grid;
  gap: 0;
  min-width: 0;
}

.media-meta strong {
  font-weight: 550;
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field {
  display: grid;
  gap: 7px;
  position: relative;
}

.field > span:first-child {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.counter {
  position: absolute;
  right: 10px;
  bottom: 8px;
  pointer-events: none;
  color: var(--text-3);
  font-size: 10.5px;
}

.platforms {
  border: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.platforms legend {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0;
  margin-bottom: 8px;
}

.platforms .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
}

.platforms .pill:has(input:checked) {
  border-color: var(--lime-line);
  background: var(--lime-soft);
  color: var(--text);
}

.platforms .pill input {
  accent-color: var(--lime);
  margin: 0;
}

.advanced {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.advanced > summary {
  font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
  list-style: none;
  padding: 2px 0;
}

.advanced > summary::-webkit-details-marker {
  display: none;
}

.advanced > summary::before {
  content: "+ ";
  color: var(--text-3);
}

.advanced[open] > summary::before {
  content: "− ";
}

.advanced > summary:hover {
  color: var(--text);
}

.overrides {
  display: grid;
  gap: 12px;
  padding-top: 12px;
}

.overrides .field textarea {
  min-height: 64px;
  font-size: 12.5px;
}

.scrim {
  display: none;
}

/* ---------- narrow ---------- */

@media (max-width: 1040px) {
  .shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100vh;
  }

  .rail {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .rail .mark {
    width: 26px;
    height: 26px;
  }

  .rail-gap {
    flex: 1;
  }

  .rail-channels {
    display: flex;
    gap: 4px;
    margin: 0;
  }

  .rail-btn {
    width: 36px;
    height: 36px;
  }

  .main {
    padding: 0 16px 40px;
  }

  h1 {
    font-size: 26px;
  }

  .next-up {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .next-art {
    min-height: 132px;
  }

  .composer {
    position: fixed;
    inset: 0;
    z-index: 30;
    border-left: none;
    transform: translateY(100%);
    transition: transform 0.18s ease;
  }

  body[data-composer="open"] .composer {
    transform: none;
  }

  body[data-composer="open"] .scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 29;
    background: rgb(0 0 0 / 50%);
  }

  body[data-composer="open"] {
    overflow: hidden;
  }

  #close-composer {
    display: inline-flex;
  }

  .post-actions {
    position: static;
    transform: none;
    padding-left: 0;
    background: none;
    opacity: 1;
    pointer-events: auto;
  }

  .post:hover .status,
  .post:focus-within .status {
    opacity: 1;
  }

  .act-label {
    display: none;
  }

  .act-icon {
    display: inline;
    font-size: 14px;
  }

  .post-actions .btn {
    width: 30px;
    padding: 0;
  }
}

@media (max-width: 620px) {
  .week-days {
    grid-template-columns: repeat(7, minmax(64px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .day {
    min-height: 74px;
    padding: 8px 9px;
  }

  .post-row {
    grid-template-columns: 40px minmax(0, 1fr) auto auto;
    gap: 10px;
    padding: 8px 2px;
  }

  .post-when {
    display: none;
  }

  .post-tags {
    display: none;
  }

  .next-up {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .next-art {
    min-height: 96px;
  }

  .next-title {
    font-size: 16px;
    -webkit-line-clamp: 2;
  }

  .composer-body {
    padding: 14px;
  }
}

/* next-up chips */
.tag {
  font-size: 11.5px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text-2);
}

.history-more {
  padding: 12px 6px;
  border-bottom: 1px solid var(--line);
}

.filter-empty {
  padding: 30px 6px;
  color: var(--text-3);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}

.day-group {
  padding: 16px 6px 4px;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.day-group:first-of-type {
  padding-top: 6px;
}

/* ---------- settings ---------- */

.settings {
  width: min(560px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 48px));
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 40px 100px rgb(0 0 0 / 65%);
}

.settings::backdrop {
  background: rgb(0 0 0 / 55%);
}

.settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 14px 0 20px;
  border-bottom: 1px solid var(--line);
}

.settings-body {
  display: grid;
  gap: 24px;
  padding: 20px;
  overflow-y: auto;
  max-height: calc(min(680px, 100vh - 48px) - 56px);
}

.settings-block {
  display: grid;
  gap: 10px;
}

.settings-note {
  color: var(--text-3);
  line-height: 1.5;
}

.settings code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  color: var(--text-2);
}

.channels {
  display: grid;
  gap: 8px;
}

.chan {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
  background: var(--card-2);
}

.chan-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chan-name {
  font-size: 14px;
  font-weight: 600;
}

.chan-help {
  font-size: 11.5px;
  color: var(--text-3);
}

.chan-accounts {
  display: grid;
  gap: 6px;
}

.chan-account {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-2);
}

.chan-account strong {
  color: var(--text);
  font-weight: 550;
}

.chan-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chan-missing {
  font-size: 12px;
  color: var(--warn);
}

.settings-links {
  display: flex;
  gap: 12px;
}
