@import url("/static/fonts.css");
/* Berry brand. Match the palette in marketing/static/style.css. */
:root {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  color-scheme: light;
  --paper: #ffffff;
  --ink: #2b0b1e;
  --muted: #6b4a5c;
  --accent: #8e1e5a;
  --accent-hover: #6f1646;
  --accent-soft: #fbeaf2;
  --accent-tint: #f6dde9;
  --accent-line: #e2c3d2;
  --accent-muted: #8a4a6c;
  --focus: #8e1e5a;
  --line: #f0e1e8;
  --tint: #faf3f6;
  --surface: #ffffff;
  --media-surface: #f3e6ec;
  --hi: #ffb98f;
  --hi-soft: #ffe9dc;
  --on-hi: #2b0b1e;
  --on-brand-muted: #f5d3e2;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 10px 14px;
  color: inherit;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
button:hover {
  background: var(--tint);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button.primary,
.primary {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
}
button.primary:hover,
.primary:hover {
  background: var(--accent-hover);
}
.danger {
  color: #b0263a;
}
.icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  stroke-width: 1.7;
  vertical-align: middle;
}
.icon-btn {
  padding: 8px;
  border: 0;
  background: transparent;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 1.35px;
  text-transform: uppercase;
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
}
h1 {
  font-size: 28px;
  line-height: 1.15;
}
h2 {
  font-size: 18px;
  line-height: 1.25;
}
h3 {
  font-size: 15px;
  letter-spacing: -0.2px;
}
p {
  line-height: 1.65;
}
.shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  --focus: var(--hi);
  background: var(--accent);
  color: white;
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  padding: 20px 12px 12px;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.sidebar > * {
  flex-shrink: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
  padding: 0 10px 20px;
}
.brand img {
  width: 34px;
  height: 34px;
}
.avatar {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-muted);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 650;
  flex-shrink: 0;
}
.sidebar .avatar {
  background: var(--hi);
  color: var(--on-hi);
  font-weight: 700;
}
.sidebar button:hover {
  background: #ffffff1f;
}
.nav-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nav-item {
  border: 0;
  background: transparent;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 12px;
  min-height: 42px;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  color: white;
  font-weight: 600;
  text-align: left;
}
.sidebar .nav-item.active {
  background: white;
  color: var(--accent);
  font-weight: 700;
}
.nav-item .count {
  margin-left: auto;
  background: var(--hi);
  color: var(--on-hi);
  padding: 2px 7px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
}
.side-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 12px 6px;
  font-size: 10px;
  color: var(--on-brand-muted);
  letter-spacing: 1.2px;
}
.project-nav {
  padding: 8px 12px;
  font-size: 13px;
}
.project-dot {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: var(--project-color, var(--accent));
  color: white;
  font-weight: 650;
  font-size: 11px;
  flex-shrink: 0;
}
.project-nav .project-dot {
  width: 22px;
  height: 22px;
  font-size: 10px;
}
.side-bottom {
  margin-top: auto;
  padding-top: 18px;
}
.account {
  display: flex;
  gap: 9px;
  border-top: 1px solid #ffffff33;
  margin-top: 12px;
  padding: 12px 6px 0;
  align-items: center;
}
.account > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.account strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.account .icon-btn {
  flex-shrink: 0;
}
.account small {
  font-size: 10px;
  color: var(--on-brand-muted);
  display: block;
  margin-top: 3px;
}
.main-wrap {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 76px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 38px;
  gap: 11px;
  color: var(--muted);
  font-size: 12px;
}
.topbar strong {
  font-weight: 500;
  color: var(--ink);
}
.topbar .spacer {
  flex: 1;
}
.topbar a {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}
.topbar .separator {
  height: 21px;
  width: 1px;
  background: var(--line);
  margin: 0 10px;
}
.main {
  padding: 32px 38px 50px;
  max-width: 1650px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 27px;
  gap: 15px;
}
.page-heading p {
  color: var(--muted);
  margin-top: 7px;
  font-size: 13px;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.welcome {
  border: 1px solid var(--accent-line);
  background: linear-gradient(105deg, var(--tint) 0%, var(--accent-soft) 60%, var(--accent-tint) 100%);
  border-radius: 24px;
  display: flex;
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 26px 29px;
  margin-bottom: 26px;
  gap: 30px;
}
.welcome .eyebrow {
  color: var(--accent-muted);
  font-size: 10px;
  letter-spacing: 1.7px;
  margin-bottom: 13px;
}
.welcome h2 {
  font-size: 22px;
  margin-bottom: 7px;
}
.welcome p {
  color: var(--muted);
  font-size: 12px;
  max-width: 430px;
}
.welcome a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  margin-top: 18px;
}
.orbit {
  margin-left: auto;
  position: relative;
  min-width: 270px;
  align-self: stretch;
}
.orbit:before,
.orbit:after {
  content: "";
  position: absolute;
  width: 185px;
  height: 185px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  left: 35px;
  top: -45px;
}
.orbit:after {
  width: 265px;
  height: 265px;
  left: -5px;
  top: -85px;
}
.mini-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 25px #8e1e5a14;
  border-radius: 12px;
  width: 164px;
  padding: 13px;
  transform: rotate(-8deg);
  left: 0;
  top: 15px;
  z-index: 1;
}
.mini-card.second {
  transform: rotate(9deg);
  left: 117px;
  top: 35px;
  width: 160px;
}
.mini-card .mini-line {
  height: 5px;
  background: var(--tint);
  border-radius: 4px;
  margin: 8px 0 0;
}
.mini-card .mini-line.short {
  width: 68%;
}
.mini-card .mini-top {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 9px;
  font-weight: 600;
}
.mini-status {
  margin-top: 14px;
  font-size: 8px;
  color: #1f6b4f;
  background: #e6f5ee;
  display: inline-block;
  padding: 4px 7px;
  border-radius: 4px;
}
.mini-card.second .mini-status {
  color: #6d5bb5;
  background: #f2eefa;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 17px 20px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.stat-icon {
  height: 37px;
  width: 37px;
  background: var(--tint);
  color: var(--muted);
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.stat:nth-child(2) .stat-icon {
  color: #8a3b0f;
  background: var(--hi-soft);
}
.stat:nth-child(3) .stat-icon {
  color: var(--accent);
  background: var(--accent-soft);
}
.stat:nth-child(4) .stat-icon {
  color: #1f6b4f;
  background: #e6f5ee;
}
.stat strong {
  font-size: 23px;
  letter-spacing: -0.6px;
  font-weight: 600;
  display: block;
}
.stat span {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: 25px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.panel-heading {
  padding: 19px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.panel-heading h3 {
  font-size: 13px;
}
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 21px;
}
.tabs button {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  position: relative;
}
.tabs button.active {
  color: var(--accent);
  font-weight: 650;
}
.tabs button.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  height: 2px;
  left: 0;
  right: 0;
  background: var(--accent);
}
.tabs .badge {
  padding: 2px 6px;
  background: var(--tint);
  border-radius: 4px;
  color: var(--muted);
  font-size: 10px;
}
.tabs .active .badge {
  background: var(--accent-soft);
  color: var(--accent);
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 19px;
}
.filters {
  display: flex;
  gap: 9px;
}
.filters select,
.search {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--muted);
  padding: 8px 10px;
  font-size: 11px;
  max-width: 180px;
}
.search {
  width: 180px;
}
.view-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 3px;
  background: var(--surface);
}
.view-toggle button {
  border: 0;
  border-radius: 9px;
  padding: 5px 8px;
  background: transparent;
  color: var(--muted);
}
.view-toggle button.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
  min-width: 0;
}
.post-card:hover {
  box-shadow: 0 6px 20px #2b0b1e0b;
  transform: translateY(-2px);
}
.post-top {
  display: flex;
  align-items: center;
  padding: 14px 15px;
  gap: 9px;
}
.post-top .project-dot {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}
.post-top .identity {
  flex: 1;
  min-width: 0;
}
.post-top strong {
  font-size: 11px;
  display: block;
}
.post-top small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.platforms {
  display: flex;
  gap: 4px;
}
.platform {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}
/* The logo has its own shape. It fills the space. */
.platform .logo {
  width: 100%;
  height: 100%;
}
.platform svg {
  width: 12px;
  height: 12px;
}
.post-visual {
  height: 181px;
  position: relative;
  overflow: hidden;
  background: var(--media-surface);
  cursor: pointer;
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.post-visual img,
.post-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.post-visual:hover img {
  transform: scale(1.035);
}
.post-visual .image-label {
  position: absolute;
  bottom: 12px;
  left: 13px;
  font-size: 9px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: #ffffffeb;
  color: var(--ink);
  padding: 5px 8px;
  border-radius: 4px;
}
.image-count {
  position: absolute;
  right: 10px;
  top: 10px;
  background: #2b0b1e9e;
  color: white;
  border-radius: 5px;
  padding: 5px 7px;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.image-count .icon {
  width: 12px;
  height: 12px;
}
.art {
  height: 100%;
  width: 100%;
  padding: 26px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: var(--accent-tint);
  color: var(--accent);
  position: relative;
  overflow: hidden;
}
.art:after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border: 28px solid #ffffff4d;
  border-radius: 50%;
  right: -48px;
  bottom: -68px;
}
.art.grublist {
  background: #faeddc;
  color: #92552e;
}
.art .eyebrow {
  color: inherit;
  font-size: 8px;
}
.art strong {
  font-size: 28px;
  letter-spacing: -1px;
  line-height: 1.05;
  max-width: 230px;
  margin: 12px 0;
}
.art small {
  font-size: 9px;
  opacity: 0.6;
}
.post-copy {
  padding: 15px 16px 12px;
}
.post-copy h3 {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 7px;
}
.post-copy p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}
.track-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: var(--muted);
  margin-top: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-chip .icon {
  width: 12px;
  height: 12px;
}
.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 15px;
  border-top: 1px solid var(--line);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  background: var(--tint);
  color: var(--muted);
  border-radius: 7px;
  padding: 5px 7px;
  font-weight: 650;
  white-space: nowrap;
}
.status:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.status.review,
.status.inbox {
  background: var(--hi-soft);
  color: #8a3b0f;
}
.status.scheduled {
  background: var(--accent-soft);
  color: var(--accent);
}
.status.published,
.status.ready {
  background: #e6f5ee;
  color: #1f6b4f;
}
.status.failed {
  background: #fdecee;
  color: #b0263a;
}
.post-footer button {
  font-size: 10px;
  padding: 5px 8px;
  border: 0;
  color: var(--muted);
}
.aside-stack {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 18px 11px 16px;
  gap: 3px;
  border-bottom: 1px solid var(--line);
}
.day {
  text-align: center;
  font-size: 9px;
  color: var(--muted);
  padding: 7px 0;
  border-radius: 7px;
}
.day b {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
}
.day.today {
  background: var(--accent);
  color: var(--accent-tint);
}
.day.today b {
  color: white;
}
.day i {
  display: block;
  width: 3px;
  height: 3px;
  background: var(--accent-line);
  margin: 7px auto 0;
  border-radius: 50%;
}
.next-list {
  padding: 18px;
}
.next-list p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.next-item {
  border-left: 2px solid var(--accent-line);
  padding: 2px 0 2px 11px;
  margin: 0 0 18px;
}
.next-item small {
  font-size: 9px;
  color: var(--muted);
}
.next-item strong {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  margin: 5px 0;
}
.next-item:last-child {
  margin-bottom: 0;
}
.channel-row {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 16px 18px;
}
.channel-row > div:nth-child(2) {
  flex: 1;
}
.channel-row strong {
  font-size: 11px;
}
.channel-row small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.channel-row .dots {
  font-size: 9px;
  color: var(--muted);
}
.channel-footer {
  font-size: 10px;
  color: var(--accent);
  display: block;
  padding: 13px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.tip {
  padding: 19px;
  border: 1px dashed var(--accent-line);
  border-radius: 18px;
  background: var(--tint);
}
.tip .icon {
  color: var(--accent-muted);
  margin-bottom: 10px;
}
.tip h3 {
  font-size: 11px;
  margin-bottom: 7px;
}
.tip p {
  font-size: 10px;
  color: var(--muted);
}
.empty {
  border: 1px dashed var(--accent-line);
  background: #ffffff8c;
  border-radius: 22px;
  padding: 50px 25px;
  text-align: center;
  color: var(--muted);
}
.empty .icon {
  width: 35px;
  height: 35px;
  margin-bottom: 15px;
  color: var(--accent-muted);
}
.empty h3 {
  color: var(--ink);
  margin-bottom: 7px;
}
.empty p {
  font-size: 12px;
  margin-bottom: 20px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 25px;
  border-radius: 22px;
}
.project-card > .project-dot {
  width: 45px;
  height: 45px;
  font-size: 22px;
  border-radius: 13px;
  margin-bottom: 19px;
}
.project-card h2 {
  margin-bottom: 9px;
}
.project-card p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.project-card .actions {
  margin-top: 22px;
}
.recipe-card {
  padding: 27px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.recipe-card .art {
  height: 180px;
  border-radius: 10px;
  margin-bottom: 4px;
}
.recipe-card p {
  font-size: 12px;
  color: var(--muted);
}
.recipe-card button {
  align-self: flex-start;
  margin-top: 4px;
}
.music-summary {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 25px;
  background: linear-gradient(120deg, var(--accent-soft), var(--paper));
  border: 1px solid var(--line);
  border-radius: 22px;
  margin-bottom: 24px;
}
.record {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: repeating-radial-gradient(#2b0b1e 0 2px, #4a1d36 3px 4px);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 3px 5px 12px #2b0b1e20;
}
.record:before {
  content: "c";
  display: grid;
  place-items: center;
  background: var(--accent-muted);
  color: white;
  font-size: 21px;
  width: 28px;
  height: 28px;
  border: 5px solid var(--accent);
  border-radius: 50%;
}
.music-summary h2 {
  font-size: 20px;
}
.music-summary p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}
.music-summary .actions {
  margin-left: auto;
}
.music-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.music-head,
.song-row {
  display: grid;
  grid-template-columns: 43px minmax(160px, 1.5fr) 120px 65px 110px 85px;
  gap: 12px;
  align-items: center;
  padding: 14px 19px;
}
.music-head {
  font-size: 10px;
  color: var(--muted);
  background: var(--tint);
  border-bottom: 1px solid var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
}
.song-row {
  border-bottom: 1px solid var(--tint);
  min-height: 79px;
}
.song-row:last-child {
  border-bottom: 0;
}
.song-row.playing {
  background: var(--accent-soft);
}
.play {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 0;
  color: var(--muted);
}
.play.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.song-row h3 {
  font-size: 11px;
  line-height: 1.6;
  max-width: 320px;
  word-break: break-word;
}
.song-row small {
  font-size: 10px;
  color: var(--muted);
}
.waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 25px;
  color: var(--media-surface);
  overflow: hidden;
}
.waveform i {
  display: block;
  min-width: 2px;
  background: currentColor;
  border-radius: 2px;
}
.playing .waveform {
  color: var(--accent-muted);
}
.stars {
  display: flex;
  gap: 1px;
}
.stars button {
  border: 0;
  background: transparent;
  padding: 1px;
  color: var(--media-surface);
  font-size: 16px;
}
.stars button.on {
  color: #d7af61;
}
.song-row .song-actions {
  display: flex;
  justify-content: flex-end;
}
.song-actions .icon-btn {
  padding: 6px;
  color: var(--muted);
}
.song-actions .favorite {
  color: #bf89ab;
}
.player-bar {
  position: fixed;
  bottom: 18px;
  left: 260px;
  right: 25px;
  background: var(--accent-hover);
  color: white;
  box-shadow: 0 8px 35px #2b0b1e35;
  border-radius: 18px;
  padding: 14px 20px;
  display: flex;
  gap: 18px;
  align-items: center;
  z-index: 25;
}
.player-bar .play {
  color: white;
  border-color: #ffffff59;
  background: transparent;
}
.player-bar strong {
  font-size: 11px;
}
.player-bar small {
  display: block;
  font-size: 10px;
  color: var(--on-brand-muted);
  margin-top: 4px;
}
.player-bar input {
  flex: 1;
  accent-color: var(--accent-tint);
  min-width: 70px;
}
.player-bar .icon-btn {
  color: white;
}
.calendar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.calendar-header,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.calendar-header div {
  padding: 14px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.calendar-cell {
  min-height: 146px;
  padding: 11px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.calendar-cell:nth-child(7n) {
  border-right: 0;
}
.calendar-cell > span {
  font-size: 11px;
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
}
.calendar-cell.today > span {
  background: var(--accent);
  color: white;
  border-radius: 50%;
}
.calendar-cell.outside {
  background: var(--tint);
}
.calendar-post {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  background: var(--accent-soft);
  border: 0;
  border-left: 3px solid var(--accent);
  border-radius: 9px;
  margin-top: 8px;
  padding: 10px;
  line-height: 1.5;
  overflow: hidden;
}
.calendar-post small {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-hover);
  margin-bottom: 6px;
}
.channel-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.connection {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 23px;
}
.connection-top {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 20px;
}
.connection-top > .platform {
  width: 43px;
  height: 43px;
}
/* The connected account's profile photo, with the platform logo at the corner. */
.channel-avatar {
  position: relative;
  flex: none;
  width: 43px;
  height: 43px;
}
.channel-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.channel-avatar .platform {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 19px;
  height: 19px;
}
.channel-avatar.no-photo .platform {
  position: static;
  width: 100%;
  height: 100%;
}
.connection-top > .platform svg {
  width: 23px;
  height: 23px;
}
.connection-top strong {
  font-size: 14px;
}
.connection-top small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.connection p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.connection-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.connection-bottom button {
  font-size: 11px;
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 650px) minmax(220px, 1fr);
  gap: 25px;
}
.form-panel {
  padding: 27px;
}
.form-panel h2 {
  margin-bottom: 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 19px;
}
.field > span,
.field > label {
  font-size: 12px;
  font-weight: 600;
}
.field input,
.field textarea,
.field select {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 11px 12px;
  color: var(--ink);
  width: 100%;
  outline: none;
}
.field textarea {
  resize: vertical;
  min-height: 125px;
  line-height: 1.7;
}
.field small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px #8e1e5a26;
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 13px;
}
.check input {
  margin-top: 4px;
  accent-color: var(--accent);
}
.check a {
  color: var(--accent);
  text-decoration: underline;
}
/* A setting that the creator or a TikTok rule turned off is grey. */
.check:has(input:disabled) {
  color: var(--muted);
  cursor: not-allowed;
}
.check small {
  display: block;
  color: var(--muted);
}
.schedule-preview {
  margin-bottom: 20px;
}
.schedule-preview-media {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 8px 0 10px;
}
.schedule-preview-media img,
.schedule-preview-media video {
  flex: none;
  width: 64px;
  height: 85px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--tint);
}
.schedule-preview-caption {
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notice {
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--tint);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  margin: 15px 0;
}
.notice.warning {
  background: #fff4ec;
  border-color: #ffd9c2;
  color: #8a3b0f;
}
.inline-error {
  color: #b0263a;
  font-size: 12px;
  padding: 10px 0;
  line-height: 1.5;
}
.loading {
  padding: 70px;
  text-align: center;
  color: var(--muted);
}
.skip {
  position: fixed;
  top: -60px;
  left: 15px;
  z-index: 100;
  background: var(--surface);
  padding: 10px;
}
.skip:focus {
  top: 10px;
}
dialog {
  border: 1px solid var(--line);
  padding: 0;
  border-radius: 26px;
  box-shadow: 0 25px 100px #2b0b1e30;
  width: min(930px, calc(100vw - 30px));
  max-height: 90vh;
  color: var(--ink);
}
dialog::backdrop {
  background: #2b0b1e65;
  backdrop-filter: blur(4px);
}
dialog.narrow {
  width: min(510px, calc(100vw - 30px));
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
.modal-header h2 {
  font-size: 18px;
}
.modal-body {
  padding: 25px 27px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 17px 25px;
  border-top: 1px solid var(--line);
  background: var(--tint);
}
.composer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 26px;
}
.composer-preview {
  background: var(--tint);
  border-radius: 18px;
  padding: 18px;
  align-self: start;
}
.composer-preview > .eyebrow {
  text-align: center;
  font-size: 9px;
  margin-bottom: 20px;
}
.phone {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}
.phone-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px;
  font-size: 9px;
  font-weight: 650;
}
.phone .preview-visual {
  height: 245px;
  background: var(--tint);
  overflow: hidden;
}
.preview-visual img,
.preview-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone .preview-caption {
  font-size: 10px;
  padding: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 160px;
  overflow: auto;
}
.phone-icons {
  display: flex;
  padding: 10px 12px 0;
  gap: 8px;
  color: var(--muted);
}
.phone-icons .icon {
  width: 16px;
  height: 16px;
}
.channel-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 20px;
}
.channel-choice {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  border: 1px solid var(--line);
  padding: 9px;
  border-radius: 11px;
  cursor: pointer;
}
.channel-choice:has(input:checked) {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}
.channel-choice input {
  accent-color: var(--accent);
}
.upload-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 21px;
  border: 1px dashed var(--accent-line);
  background: var(--tint);
  border-radius: 16px;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 16px;
}
.media-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.media-thumb {
  position: relative;
  width: 64px;
  height: 70px;
  border-radius: 11px;
  overflow: hidden;
  background: var(--tint);
}
.media-thumb img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.media-thumb button {
  position: absolute;
  right: 2px;
  top: 2px;
  padding: 1px 4px;
  background: var(--surface);
  border: 0;
  font-size: 10px;
}
.media-thumb .move-media {
  top: auto;
  bottom: 2px;
  left: 2px;
  right: auto;
  font-size: 9px;
}
.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--accent-hover);
  color: white;
  border-radius: 14px;
  padding: 13px 20px;
  z-index: 100;
  box-shadow: 0 7px 25px #2b0b1e22;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  font-size: 12px;
  max-width: 90vw;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.full-list .post-card {
  display: grid;
  grid-template-columns: 180px 1fr 145px;
}
.full-list .post-top {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}
.full-list .post-visual {
  grid-column: 1;
  grid-row: 1 / span 2;
  height: 100%;
  min-height: 170px;
}
.full-list .post-copy {
  grid-column: 2;
  grid-row: 2;
}
.full-list .post-footer {
  grid-column: 3;
  grid-row: 1 / span 2;
  flex-direction: column;
  justify-content: center;
  border: 0;
  border-left: 1px solid var(--line);
  gap: 15px;
}
.full-list {
  display: flex;
  flex-direction: column;
}
.activity-row {
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 15px;
  align-items: center;
}
.activity-row > div {
  flex: 1;
}
.activity-row strong {
  font-size: 12px;
}
.activity-row p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.mobile-menu {
  display: none;
}
.bottom-space {
  height: 60px;
}
@media (min-width: 1550px) {
  .post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .post-visual {
    height: 190px;
  }
}
@media (max-width: 1200px) {
  .content-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .aside-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .aside-stack .tip {
    display: none;
  }
  .main {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .music-head,
  .song-row {
    grid-template-columns: 38px minmax(150px, 1fr) 85px 50px 90px 65px;
    gap: 8px;
    padding: 13px;
  }
  .orbit {
    min-width: 240px;
  }
  .mini-card.second {
    left: 98px;
  }
}
@media (max-width: 960px) {
  .sidebar {
    width: 205px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .main {
    padding: 25px;
  }
  .stat {
    padding: 14px;
    gap: 9px;
  }
  .stat-icon {
    display: none;
  }
  .welcome {
    padding: 23px;
  }
  .orbit {
    display: none;
  }
  .composer-grid {
    grid-template-columns: minmax(0, 1fr) 235px;
  }
  .player-bar {
    left: 225px;
  }
  .music-head,
  .song-row {
    grid-template-columns: 36px minmax(130px, 1fr) 50px 90px 55px;
  }
  .waveform,
  .music-head .wave-label {
    display: none;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .calendar-cell {
    min-height: 115px;
    padding: 6px;
  }
  .calendar-post {
    padding: 8px;
  }
  .topbar {
    padding: 0 25px;
  }
  .search {
    width: 145px;
  }
  .tabs {
    gap: 19px;
  }
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
    width: 245px;
    box-shadow: 10px 0 50px #2b0b1e30;
  }
  .sidebar.open {
    display: flex;
  }
  .main {
    padding: 23px 18px;
  }
  .topbar {
    height: 62px;
    padding: 0 17px;
  }
  .topbar .separator,
  .topbar > a {
    display: none;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .page-heading p {
    font-size: 11px;
    max-width: 230px;
  }
  .page-heading .actions > button:not(.primary) {
    display: none;
  }
  .page-heading button {
    font-size: 11px;
    padding: 10px;
    white-space: nowrap;
  }
  .welcome {
    min-height: 155px;
    padding: 23px;
  }
  .welcome h2 {
    font-size: 22px;
  }
  .stats {
    gap: 8px;
    margin-bottom: 25px;
  }
  .stat {
    padding: 12px 10px;
  }
  .stat strong {
    font-size: 21px;
  }
  .stat span {
    font-size: 9px;
  }
  .post-grid {
    gap: 13px;
  }
  .post-top {
    padding: 10px;
    gap: 6px;
  }
  .post-top .project-dot {
    width: 24px;
    height: 24px;
    font-size: 9px;
  }
  .post-top .icon-btn {
    display: none;
  }
  .post-visual {
    height: 155px;
  }
  .post-copy {
    padding: 12px;
  }
  .post-copy h3 {
    font-size: 11px;
  }
  .post-copy p {
    font-size: 10px;
  }
  .post-footer {
    padding: 10px;
  }
  .platform {
    width: 18px;
    height: 18px;
  }
  .post-top strong {
    font-size: 10px;
  }
  .post-top small {
    font-size: 8px;
  }
  .filters {
    gap: 5px;
  }
  .filters select {
    max-width: 123px;
    padding: 8px 5px;
    font-size: 10px;
  }
  .search {
    width: 125px;
    font-size: 10px;
  }
  .view-toggle {
    display: none;
  }
  .tabs {
    gap: 19px;
  }
  .tabs button {
    font-size: 11px;
  }
  .tabs .badge {
    font-size: 9px;
  }
  .aside-stack {
    grid-template-columns: 1fr 1fr;
    gap: 13px;
  }
  .panel-heading {
    padding: 15px;
  }
  .project-grid,
  .channel-cards {
    grid-template-columns: 1fr;
  }
  .music-summary {
    padding: 20px;
    gap: 15px;
  }
  .music-summary h2 {
    font-size: 18px;
  }
  .music-summary p {
    font-size: 11px;
  }
  .music-summary .actions {
    display: none;
  }
  .music-head,
  .song-row {
    grid-template-columns: 32px minmax(110px, 1fr) 75px 45px;
    gap: 7px;
    padding: 13px 10px;
  }
  .music-head .duration,
  .song-row .duration {
    display: none;
  }
  .song-row h3 {
    font-size: 10px;
  }
  .stars button {
    font-size: 14px;
  }
  .song-actions .icon-btn {
    padding: 4px;
  }
  .song-actions .icon {
    width: 16px;
    height: 16px;
  }
  .player-bar {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px;
    gap: 10px;
  }
  .player-bar strong {
    font-size: 9px;
  }
  .player-bar > div {
    max-width: 150px;
  }
  .calendar {
    overflow: auto;
  }
  .calendar-header,
  .calendar-grid {
    min-width: 700px;
  }
  .composer-grid {
    grid-template-columns: 1fr;
  }
  .composer-preview {
    display: none;
  }
  .modal-body {
    padding: 21px;
  }
  .modal-header {
    padding: 18px 21px;
  }
  .modal-footer {
    padding: 15px;
    flex-wrap: wrap;
  }
  .modal-footer button {
    font-size: 11px;
  }
  .full-list .post-card {
    grid-template-columns: 115px 1fr;
  }
  .full-list .post-footer {
    grid-column: 2;
    grid-row: 3;
    border-left: 0;
    flex-direction: row;
    padding: 7px 12px;
    justify-content: space-between;
  }
  .full-list .post-visual {
    grid-row: 1 / span 3;
  }
  .art {
    padding: 19px;
  }
  .art strong {
    font-size: 22px;
  }
  .activity-row {
    padding: 15px;
    gap: 10px;
  }
  .activity-row strong {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.button-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
  background: var(--surface);
  font-weight: 650;
}
.button-link:hover {
  background: var(--tint);
}
summary {
  cursor: pointer;
  color: var(--muted);
  padding: 8px 0;
}
.notice strong {
  color: var(--muted);
}
input[type="range"] {
  box-shadow: none;
}
/* Cancel the flex gap before the dot. */
.brand > .brand-dot {
  margin-left: -9px;
}
.brand-dot {
  color: var(--accent);
}
/* The sidebar is narrow. Put "post in" above "cadence.". */
.brand-name {
  line-height: 1;
}
.brand-name small {
  display: block;
  margin-bottom: 4px;
  color: var(--on-brand-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}
.sidebar .brand-dot {
  color: var(--hi);
}
@media (max-width: 720px) {
  .tabs {
    overflow-x: auto;
    gap: 20px;
    scrollbar-width: none;
    max-width: 100%;
  }
  .tabs::-webkit-scrollbar {
    display: none;
  }
  .tabs button {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .tabs .badge {
    display: inline-block;
  }
  .aside-stack {
    grid-template-columns: 1fr;
  }
  .page-heading h1 {
    font-size: 21px;
  }
  .music-view .tabs {
    max-width: 210px;
  }
}
.button-link.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.button-link.primary:hover {
  background: var(--accent-hover);
}
/* Asset library */
.library-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 27px;
}
.library-count {
  font-size: 13px;
  color: var(--muted);
}
.library-count strong {
  color: var(--ink);
  font-size: 23px;
  margin-right: 6px;
}
.library-count > span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.library-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
}
.library-groups {
  padding-top: 5px;
  display: flex;
  flex-direction: column;
  align-self: start;
  gap: 7px;
}
.library-groups > .eyebrow {
  margin: 13px 10px 9px;
}
.library-groups button {
  border: 0;
  background: transparent;
  justify-content: flex-start;
  padding: 10px;
  font-size: 12px;
  text-align: left;
  min-width: 0;
}
.library-groups button.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.library-groups button small {
  margin-left: auto;
  color: var(--muted);
}
.library-groups > p {
  padding: 8px 10px;
  line-height: 1.7;
}
.group-row {
  display: flex;
  min-width: 0;
}
.group-row > button:first-child {
  flex: 1;
  min-width: 0;
}
.group-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.group-row .icon-btn {
  padding: 5px;
}
.library-content {
  min-width: 0;
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.asset-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  min-width: 0;
}
.asset-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-tint);
}
.asset-photo {
  display: block;
  width: 100%;
  height: 175px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--media-surface);
  overflow: hidden;
}
.asset-photo img,
.asset-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.asset-checkbox {
  position: absolute;
  left: 10px;
  top: 10px;
  background: #fffffff5;
  display: grid;
  place-items: center;
  padding: 5px;
  border-radius: 5px;
}
.asset-checkbox input {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  margin: 0;
}
.asset-card-info {
  padding: 14px;
}
.asset-card-info strong {
  font-size: 11px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asset-card-info span,
.asset-card-info small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asset-selection {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  min-height: 46px;
  margin: 0 0 15px;
  font-size: 11px;
  color: var(--muted);
}
.asset-selection .check {
  margin: 0;
  font-size: 11px;
  align-items: center;
}
.asset-selection .check input {
  margin: 0;
}
.asset-selection .actions {
  margin-left: auto;
  flex-wrap: wrap;
}
.asset-selection button {
  padding: 7px 9px;
  font-size: 10px;
}
.picker-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}
.picker-filters select {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px;
  min-width: 150px;
  background: var(--surface);
}
.picker-grid {
  max-height: 52vh;
  overflow: auto;
  padding: 3px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.picker-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  padding-bottom: 12px;
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.picker-card > span {
  display: block;
  height: 115px;
  margin-bottom: 10px;
  background: var(--media-surface);
}
.picker-card img,
.picker-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.picker-card input {
  margin: 0 8px 0 10px;
  accent-color: var(--accent);
}
.picker-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
/* Full-page post editor */
.editing-page {
  max-width: none;
  padding-top: 22px;
}
.editing-page > .page-heading {
  display: none;
}
.editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.editor-heading h1 {
  font-size: 24px;
  margin: 12px 0 6px;
}
.editor-heading p {
  font-size: 11px;
  color: var(--muted);
}
.editor-heading p > span {
  margin-left: 7px;
}
.editor-back {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}
.editor-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.editor-actions button,
.editor-actions a {
  font-size: 11px;
  padding: 10px 12px;
}
.editor-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 345px;
  gap: 27px;
  align-items: start;
}
.editor-media {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
.image-stage-toolbar {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.image-stage-toolbar > div {
  display: flex;
  align-items: center;
  gap: 14px;
}
.image-stage-toolbar button {
  font-size: 10px;
  padding: 7px 9px;
}
.image-stage-toolbar .eyebrow {
  font-size: 9px;
}
.image-stage {
  height: clamp(380px, 56vh, 720px);
  background: var(--media-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  position: relative;
}
.image-stage > img,
.image-stage > video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.image-stage.zoomed,
.viewer-stage.zoomed {
  display: block;
  text-align: center;
}
.image-stage.zoomed > img,
.viewer-stage.zoomed > img {
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  vertical-align: top;
}
.image-stage .empty {
  border: 0;
  background: transparent;
}
.image-caption {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
}
.image-caption > div {
  flex: 1;
  text-align: center;
  min-width: 0;
}
.image-caption strong {
  font-size: 12px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.image-caption small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.editor-filmstrip {
  display: flex;
  gap: 10px;
  padding: 18px;
  overflow: auto;
}
.editor-filmstrip .media-thumb {
  width: 88px;
  min-width: 88px;
  height: 93px;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: var(--tint);
}
.editor-filmstrip .media-thumb.active {
  border-color: var(--accent);
}
.editor-filmstrip .filmstrip-image {
  position: relative;
  display: block;
  width: 100%;
  height: 63px;
  padding: 0;
  border: 0;
  border-radius: 0;
  inset: auto;
  background: var(--media-surface);
}
.filmstrip-image img,
.filmstrip-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.filmstrip-image span {
  position: absolute;
  left: 4px;
  top: 4px;
  font-size: 9px;
  color: white;
  background: #2b0b1e9e;
  border-radius: 3px;
  padding: 2px 5px;
}
.filmstrip-actions {
  display: flex;
  justify-content: space-between;
  height: 25px;
}
.editor-filmstrip .filmstrip-actions button {
  position: static;
  border: 0;
  padding: 2px 6px;
  font-size: 11px;
  background: transparent;
  border-radius: 0;
}
.editor-media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 2px 18px 14px;
}
.editor-media-actions button,
.editor-media-actions .button-link {
  font-size: 11px;
  padding: 9px 11px;
  cursor: pointer;
}
.editor-hint {
  padding: 0 19px 20px;
  font-size: 10px;
}
.editor-details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  min-width: 0;
}
.editor-details > .eyebrow {
  margin-bottom: 19px;
  font-size: 10px;
}
.delivery-details {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.delivery-details .eyebrow {
  font-size: 10px;
}
.delivery-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}
.delivery-row strong {
  display: block;
  font-size: 12px;
}
.delivery-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}
/* Platform reasons can be long codes without spaces. */
.delivery-hint {
  grid-column: 2 / -1;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.delivery-error {
  grid-column: 2 / -1;
  color: #b0263a;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.editor-details .field > span {
  font-size: 11px;
}
.editor-details .field input,
.editor-details .field textarea,
.editor-details .field select {
  font-size: 12px;
}
.editor-details .field textarea {
  min-height: 90px;
}
.editor-details #edit-caption {
  min-height: 170px;
}
.editor-details .channel-choice {
  font-size: 10px;
  padding: 8px;
}
.editor-details .channel-choice .icon {
  width: 15px;
  height: 15px;
}
.editor-details .channel-choices {
  margin-top: 0;
}
.caption-preview p {
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.8;
  color: var(--muted);
}
.caption-preview summary {
  font-size: 11px;
}
#asset-viewer {
  width: calc(100vw - 30px);
  height: calc(100dvh - 30px);
  max-width: none;
  max-height: none;
  background: #1e0814;
  color: #f8eaf1;
  border: 1px solid #45203a;
  overflow: hidden;
}
#asset-viewer header {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 23px;
  border-bottom: 1px solid #3d1a2f;
}
#asset-viewer header > div:first-child {
  min-width: 0;
}
#asset-viewer strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
#asset-viewer small {
  display: block;
  font-size: 10px;
  color: #d4b3c4;
  margin-top: 7px;
}
#asset-viewer button,
#asset-viewer .button-link {
  border-color: #4a2238;
  background: #2e1222;
  color: #f2dce7;
  font-size: 11px;
}
#asset-viewer footer {
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 23px;
}
.viewer-stage {
  height: calc(100% - 143px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #14050d;
  overflow: auto;
}
.viewer-stage > img,
.viewer-stage > video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.viewer-stage.zoomed > img {
  max-width: none;
  max-height: none;
}
input[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  .asset-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .editor-workspace {
    grid-template-columns: minmax(0, 1fr) 390px;
  }
}
@media (max-width: 1200px) {
  .library-layout {
    grid-template-columns: 155px minmax(0, 1fr);
    gap: 20px;
  }
  .asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .editor-workspace {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
  }
  .editor-details {
    padding: 18px;
  }
  .editor-actions {
    max-width: 330px;
  }
  .editor-actions button,
  .editor-actions a {
    font-size: 10px;
  }
  .image-stage-toolbar {
    padding: 12px;
  }
  .image-stage-toolbar > div {
    gap: 8px;
  }
}
@media (max-width: 960px) {
  .editor-workspace {
    grid-template-columns: 1fr;
  }
  .editor-details {
    padding: 24px;
  }
  .image-stage {
    height: 55vh;
  }
  .editor-heading {
    align-items: flex-start;
  }
  .editor-actions {
    max-width: 260px;
  }
  .library-layout {
    grid-template-columns: 1fr;
  }
  .library-groups {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .library-groups > .eyebrow,
  .library-groups > p {
    display: none;
  }
  .library-groups > button,
  .group-row {
    max-width: 190px;
  }
  .library-groups button {
    background: var(--tint);
  }
  .library-top {
    align-items: flex-start;
  }
  .library-top .actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
@media (max-width: 720px) {
  .library-top {
    gap: 14px;
  }
  .library-count > span {
    max-width: 160px;
    font-size: 10px;
  }
  .library-top button {
    font-size: 10px;
    padding: 9px;
  }
  .library-top .actions {
    max-width: 140px;
  }
  .asset-grid {
    gap: 12px;
  }
  .asset-photo {
    height: 150px;
  }
  .asset-card-info {
    padding: 11px;
  }
  .asset-card-info strong {
    font-size: 10px;
  }
  .asset-card-info span,
  .asset-card-info small {
    font-size: 9px;
  }
  .asset-selection .actions {
    margin-left: 0;
  }
  .editor-heading {
    display: block;
  }
  .editor-actions {
    max-width: none;
    justify-content: flex-start;
    margin-top: 20px;
  }
  .editor-heading h1 {
    font-size: 22px;
  }
  .image-stage {
    height: 45vh;
    min-height: 280px;
  }
  .image-stage-toolbar .eyebrow {
    font-size: 8px;
  }
  .image-stage-toolbar .small {
    font-size: 10px;
  }
  .editor-filmstrip {
    padding: 14px;
  }
  .editor-details {
    padding: 20px;
  }
  .picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .picker-filters {
    gap: 8px;
  }
  .picker-filters select {
    min-width: 0;
    max-width: 160px;
  }
  .picker-filters input {
    min-width: 0;
    flex: 1;
  }
  #asset-viewer {
    width: 100vw;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
  }
  #asset-viewer header {
    height: 100px;
    padding: 12px;
    flex-wrap: wrap;
    gap: 8px;
  }
  #asset-viewer header .actions {
    gap: 6px;
  }
  #asset-viewer .button-link,
  #asset-viewer button {
    padding: 8px;
    font-size: 10px;
  }
  #asset-viewer footer {
    padding: 12px;
  }
  .viewer-stage {
    height: calc(100% - 165px);
  }
  #asset-viewer footer .small {
    font-size: 10px;
  }
}

/* Output formats and soundtrack preview. */
.soundtrack-panel,
.photo-options {
  padding: 16px;
  border: 1px solid var(--border, var(--line));
  border-radius: 18px;
  margin: 16px 0;
  background: var(--tint);
}
.soundtrack-panel .field {
  margin-bottom: 10px;
}
.soundtrack-panel > small {
  display: block;
  line-height: 1.5;
  margin-top: 8px;
}
.soundtrack-preview {
  width: 100%;
  height: 38px;
  margin-bottom: 12px;
}
.audio-upload {
  margin: 8px 0;
  cursor: pointer;
}
.photo-options .eyebrow {
  margin-bottom: 16px;
}
.video-recipe {
  margin-top: 20px;
}
.video-recipe p {
  margin: 8px 0;
}
.output-versions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.output-versions button {
  justify-content: flex-start;
  flex-wrap: wrap;
  text-align: left;
}

/* The calendar is the main publishing view. */
.calendar-intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 25px;
  padding: 18px 22px;
  margin-bottom: 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--tint);
  font-size: 13px;
}
.calendar-intro span { color: var(--muted); align-self: center; font-size: 12px; }
.calendar-toolbar { flex-wrap: wrap; }
.calendar-toolbar h2 { margin-right: 12px; font-size: 24px; }
.calendar-zone { margin: -5px 0 16px; font-size: 13px; color: var(--muted); }
.calendar-day { display: flex; align-items: center; justify-content: space-between; }
.calendar-day > span { display: grid; place-items: center; width: 30px; height: 30px; font-size: 14px; }
.calendar-cell.today .calendar-day > span { background: var(--accent); color: white; border-radius: 50%; }
.calendar-add { padding: 5px; color: var(--muted); }
.calendar-add:hover { background: var(--accent-tint); color: var(--accent); }
.calendar-post { overflow-wrap: anywhere; }
.calendar-post strong { display: block; font-size: 15px; }
.calendar-post > span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.calendar-agenda { display: none; }
.calendar-drafts { margin-top: 30px; }
.draft-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.draft-list > button { text-align: left; justify-content: flex-start; padding: 17px; min-width: 0; }
.draft-list > button > span:first-of-type { flex: 1; min-width: 0; }
.draft-list strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.draft-list small { display: block; color: var(--muted); font-size: 11px; margin-top: 6px; }
.editor-details details { margin: 18px 0; }
.editor-details summary { cursor: pointer; font-size: 12px; font-weight: 600; margin-bottom: 14px; }
@media (max-width: 760px) {
  .calendar-intro { display: block; padding: 16px; }
  .calendar-intro span { display: block; margin-top: 12px; }
  .calendar-toolbar > .actions { width: 100%; gap: 5px; }
  .calendar-toolbar h2 { flex: 1; font-size: 20px; margin-right: 0; }
  .calendar-toolbar .filters { width: 100%; }
  .calendar-toolbar .filters select { max-width: none; flex: 1; min-width: 0; }
  .calendar { display: none; }
  .calendar-agenda { display: block; border: 1px solid var(--line); border-radius: 22px; padding: 18px; background: var(--surface); }
  .calendar-agenda > h2 { margin-bottom: 16px; }
  .calendar-agenda > p { font-size: 13px; color: var(--muted); }
  .agenda-row { display: grid; grid-template-columns: 55px minmax(0, 1fr); align-items: start; gap: 10px; margin-top: 14px; }
  .agenda-row time { font-size: 13px; padding-top: 12px; color: var(--muted); }
  .agenda-row .calendar-post { margin: 0; padding: 12px; }
  .draft-list { grid-template-columns: 1fr; }
  .calendar-drafts .section-title { gap: 10px; }
}
.editor-media > .editor-media-actions { margin: 0; padding: 18px; border-bottom: 1px solid var(--line); }
.editor-media > .editor-hint { margin: 0; padding: 0 18px 15px; }
.image-stage:has(.empty) { min-height: 280px; height: 360px; }
@media (max-width: 760px) {
  .image-stage:has(.empty) { min-height: 220px; height: 260px; }
  .editor-media > .editor-media-actions { flex-wrap: wrap; }
}
.calendar-cell { min-height: 112px; }
