:root {
  color-scheme: light;
  --bg: #f4f6f4;
  --panel: #ffffff;
  --ink: #151515;
  --muted: #666b70;
  --line: #dce2dd;
  --line-strong: #b7c3bb;
  --sidebar: #111513;
  --sidebar-soft: #1e2521;
  --accent: #f05d3f;
  --accent-soft: #fff0eb;
  --blue: #2f66c7;
  --blue-soft: #edf3ff;
  --green: #157a57;
  --green-soft: #ebf7f2;
  --yellow: #c88c19;
  --yellow-soft: #fff7df;
  --purple: #7754d7;
  --purple-soft: #f2efff;
  --shadow: 0 10px 28px rgba(15, 22, 18, 0.08);
  --radius: 8px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.05;
}

h2 {
  margin-bottom: 0;
  font-size: 27px;
  line-height: 1.1;
}

h3 {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.2;
}

h4 {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.25;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  padding: 24px 20px;
  background: var(--sidebar);
  color: #f8fbf8;
  border-right: 1px solid #28302b;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid #f8fbf8;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sidebar .eyebrow {
  color: #a8b4ac;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: #dce5df;
  font-weight: 750;
  text-align: left;
}

.nav-button[aria-current="page"],
.nav-button:hover {
  border-color: #424c45;
  background: var(--sidebar-soft);
  color: #ffffff;
}

.nav-count {
  color: #a8b4ac;
  font-family: var(--mono);
  font-size: 11px;
}

.sidebar-focus {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #27302b;
}

.mini-next {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 7px 8px;
  border: 1px solid #333c36;
  border-radius: var(--radius);
  background: #171d1a;
  color: #eef5ef;
  text-align: left;
}

.mini-next span {
  color: #a8b4ac;
  font-family: var(--mono);
  font-size: 11px;
}

.mini-next strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-empty {
  margin-bottom: 0;
  color: #a8b4ac;
  font-size: 12px;
  line-height: 1.45;
}

.sidebar-footer {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.save-indicator {
  min-height: 32px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #333c36;
  border-radius: var(--radius);
  background: #171d1a;
  color: #cfdad2;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.save-indicator[data-state="saving"] {
  color: #f4d58a;
}

.save-indicator[data-state="error"] {
  border-color: #774338;
  background: #281b18;
  color: #ffb7a8;
}

.main {
  min-width: 0;
  padding: 24px 28px 36px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}

.topbar-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.search-input,
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
}

.search-input,
input,
select {
  height: 40px;
  padding: 0 12px;
}

textarea {
  min-height: 104px;
  resize: vertical;
  padding: 12px;
  line-height: 1.5;
}

label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.primary-button,
.ghost-button,
.danger-button,
.text-button {
  min-height: 38px;
  border-radius: var(--radius);
  padding: 0 13px;
  border: 1px solid transparent;
  font-weight: 800;
  white-space: nowrap;
}

.primary-button {
  background: var(--ink);
  color: #ffffff;
}

.ghost-button {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.sidebar .ghost-button {
  border-color: #404940;
  background: #1d241f;
  color: #ffffff;
}

.danger-button {
  border-color: #f0c3ba;
  background: var(--accent-soft);
  color: #a83a27;
}

.text-button {
  min-height: 30px;
  padding: 0 8px;
  background: transparent;
  color: var(--blue);
}

.tiny {
  min-height: 28px;
  padding: 0 9px;
  font-size: 12px;
}

.file-label {
  display: grid;
  place-items: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.command-center {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 14px;
  margin-bottom: 14px;
}

.quick-form,
.capture-side,
.lane,
.stack-panel,
.kanban-column,
.calendar-shell,
.upcoming-panel,
.handover-box,
.system-box {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.quick-form,
.capture-side {
  padding: 16px;
}

.quick-head,
.preview-top,
.lane-head,
.calendar-top,
.view-heading,
.column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quick-head,
.preview-top {
  margin-bottom: 12px;
}

.save-button {
  min-width: 94px;
}

.type-palette {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0;
}

.type-chip {
  display: grid;
  gap: 2px;
  min-height: 50px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafdff;
  color: var(--ink);
  text-align: left;
}

.type-chip strong {
  font-size: 12px;
}

.type-chip span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.type-chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.type-chip[aria-pressed="true"] span {
  color: #c8d1ca;
}

.fast-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.capture-side {
  display: grid;
  grid-template-rows: auto minmax(104px, auto) auto;
  gap: 12px;
}

.north-star-card {
  padding: 12px;
  border: 1px solid #eedfbf;
  border-radius: var(--radius);
  background: #fff9e9;
}

.north-star-card p {
  margin-bottom: 10px;
  color: #29241d;
  font-size: 13px;
  line-height: 1.5;
}

.north-star-metrics,
.item-meta,
.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.metric-pill,
.tag-pill,
.status-pill,
.count-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.pulse-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 1px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  text-align: left;
  box-shadow: 0 4px 14px rgba(15, 22, 18, 0.05);
}

.pulse-card strong {
  grid-row: span 2;
  min-width: 28px;
  font-size: 26px;
  line-height: 1;
}

.pulse-card span {
  font-weight: 850;
}

.pulse-card small {
  color: var(--muted);
  font-size: 11px;
}

.workspace-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.segmented {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.segment-button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 750;
  white-space: nowrap;
}

.segment-button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.compact-select {
  min-width: 150px;
}

.view-root {
  min-width: 0;
  min-height: 460px;
}

.view-heading {
  margin-bottom: 12px;
}

.view-heading p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.stat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.stat {
  min-width: 82px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.stat strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: 11px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  min-width: 0;
}

.lane,
.stack-panel,
.kanban-column,
.upcoming-panel {
  min-height: 160px;
  padding: 12px;
}

.lane.wide {
  grid-column: 1 / -1;
}

.lane-list,
.column-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  min-width: 0;
}

.recent-lane {
  min-height: 0;
}

.recent-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.recent-row {
  display: grid;
  grid-template-columns: 88px minmax(160px, 1fr) 120px 56px 42px 58px 58px;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.recent-row strong,
.recent-row span,
.recent-row a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-row a {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 12px;
  min-width: 0;
}

.today-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.kanban-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 12px;
  min-width: 0;
}

.column-head {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.column-head span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.item-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.item-card.compact {
  gap: 7px;
  padding: 10px;
  box-shadow: none;
}

.item-topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.item-card h4 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.item-notes {
  min-width: 0;
  max-width: 100%;
  margin-bottom: 0;
  color: #3d4246;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.item-card.compact .item-notes {
  font-size: 12px;
}

.item-card .item-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
  width: 100%;
}

.item-card .item-actions .tiny {
  width: 100%;
  min-width: 0;
  padding-inline: 6px;
}

.item-meta .tag-pill {
  min-width: 0;
}

.type-dot {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}

.type-dot.idea { background: var(--blue-soft); color: var(--blue); }
.type-dot.product { background: var(--yellow-soft); color: var(--yellow); }
.type-dot.seeding { background: var(--green-soft); color: var(--green); }
.type-dot.reel { background: var(--purple-soft); color: var(--purple); }
.type-dot.reference { background: #edf7f8; color: #217986; }
.type-dot.feedback { background: var(--accent-soft); color: var(--accent); }
.type-dot.project { background: #eef0f2; color: #4b5662; }

.status-pill.inbox { background: #f4f6f7; color: #59626a; }
.status-pill.planning { background: var(--blue-soft); color: var(--blue); }
.status-pill.in-progress { background: var(--yellow-soft); color: var(--yellow); }
.status-pill.waiting { background: var(--accent-soft); color: var(--accent); }
.status-pill.done { background: var(--green-soft); color: var(--green); }
.status-pill.dropped { background: #f1f2f3; color: #777; }

.quick-link {
  max-width: 100%;
  width: fit-content;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mini-preview {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 4px;
  align-items: stretch;
  min-width: 0;
  max-width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafdff;
  color: inherit;
  text-decoration: none;
}

.mini-preview-body {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
}

.mini-preview strong,
.mini-preview small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-preview strong {
  font-size: 12px;
}

.mini-preview small {
  color: var(--blue);
  font-size: 11px;
}

.preview-card {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.preview-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000000;
}

.preview-card.instagram-preview iframe {
  aspect-ratio: 4 / 5;
  max-height: 440px;
}

.preview-card.link-only {
  grid-template-columns: 128px minmax(0, 1fr);
  background: #fafdff;
}

.thumb-shell {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(135deg, #121817, #314238);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 900;
}

.preview-card.link-only .thumb-shell {
  height: 100%;
  min-height: 96px;
  border-radius: 0;
}

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

.thumb-shell.is-fallback {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(240, 93, 63, 0.24), rgba(47, 102, 199, 0.18)),
    #151515;
}

.preview-body {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
}

.preview-body strong,
.preview-body a {
  overflow-wrap: anywhere;
}

.preview-body strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.preview-body a {
  color: var(--blue);
  font-size: 12px;
}

.platform-badge {
  width: fit-content;
  max-width: 100%;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef1f2;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 104px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.empty-state.small {
  min-height: 62px;
  padding: 10px;
  font-size: 12px;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
}

.calendar-shell,
.upcoming-panel {
  padding: 12px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.calendar-label {
  min-height: 26px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.calendar-day {
  min-height: 116px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.calendar-day.muted {
  background: transparent;
  border-style: dashed;
}

.calendar-day.today {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.date-number {
  width: 28px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: #edf1ee;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 850;
}

.calendar-events {
  display: grid;
  gap: 4px;
  margin-top: 6px;
}

.calendar-event {
  width: 100%;
  padding: 5px 6px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 6px;
  background: #fafdff;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.25;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event.seeding { border-left-color: var(--green); }
.calendar-event.reel { border-left-color: var(--purple); }
.calendar-event.product { border-left-color: var(--yellow); }
.calendar-event.feedback { border-left-color: var(--accent); }

.more-events {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.handover-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 12px;
}

.handover-box,
.system-box {
  padding: 14px;
}

.handover-box textarea {
  min-height: 420px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
}

.system-box {
  display: grid;
  align-content: start;
  gap: 12px;
}

.system-box p,
.system-box li {
  color: #34393d;
  line-height: 1.55;
}

.system-box ul {
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 1320px) {
  .dashboard-grid,
  .stack-grid,
  .kanban-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .today-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lane.wide {
    grid-column: span 2;
  }

  .type-palette {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .command-center,
  .calendar-layout,
  .handover-grid {
    grid-template-columns: 1fr;
  }

  .pulse-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fast-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    z-index: 20;
    top: 0;
    height: auto;
    max-height: 122px;
    gap: 8px;
    padding: 10px 12px;
    overflow: hidden;
  }

  .main {
    padding: 14px;
  }

  .brand-lockup {
    gap: 8px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 11px;
  }

  h1 {
    font-size: 18px;
  }

  h2 {
    font-size: 23px;
  }

  .nav-list {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav-list::-webkit-scrollbar {
    display: none;
  }

  .nav-button {
    width: auto;
    min-width: max-content;
    min-height: 34px;
    gap: 14px;
    padding: 0 10px;
  }

  .sidebar-focus,
  .sidebar-footer {
    display: none;
  }

  .mini-next {
    width: 156px;
    flex: 0 0 156px;
  }

  .topbar {
    gap: 10px;
  }

  body[data-view="calendar"] .topbar > div:first-child {
    display: none;
  }

  body[data-view="calendar"] .topbar-actions {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .topbar,
  .topbar-actions,
  .workspace-toolbar,
  .dashboard-grid,
  .stack-grid,
  .today-grid,
  .kanban-grid,
  .pulse-grid,
  .fast-fields {
    grid-template-columns: 1fr;
  }

  body[data-view="calendar"] .topbar-actions {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .command-center {
    gap: 10px;
  }

  body[data-view="calendar"] .command-center,
  body[data-view="calendar"] .pulse-grid,
  body[data-view="calendar"] .workspace-toolbar {
    display: none;
  }

  .quick-form,
  .capture-side {
    padding: 12px;
  }

  .lane.wide {
    grid-column: auto;
  }

  .type-palette {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .view-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .stat-grid {
    justify-content: flex-start;
  }

  .calendar-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-shell,
  .upcoming-panel {
    padding: 10px;
  }

  .calendar-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
  }

  .calendar-label {
    display: block;
    min-height: 18px;
    font-size: 9px;
    text-align: center;
  }

  .calendar-day {
    min-height: 58px;
    padding: 3px;
    border-radius: 6px;
  }

  .date-number {
    width: 22px;
    height: 20px;
    font-size: 10px;
  }

  .calendar-events {
    gap: 2px;
    margin-top: 3px;
  }

  .calendar-event {
    min-height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--blue);
    color: transparent;
    font-size: 0;
  }

  .calendar-event.seeding { background: var(--green); }
  .calendar-event.reel { background: var(--purple); }
  .calendar-event.product { background: var(--yellow); }
  .calendar-event.feedback { background: var(--accent); }

  .more-events {
    font-size: 9px;
    line-height: 1;
  }

  .recent-row {
    grid-template-columns: 76px minmax(0, 1fr) 38px 48px;
  }

  .recent-row > span:not(.type-dot),
  .recent-row > .ghost-button {
    display: none;
  }

  .preview-card.link-only {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .mini-preview {
    grid-template-columns: 68px minmax(0, 1fr);
  }
}
