/* signed-in dashboard (dashboard.js). Black + Kick green, like the workspace pages. */
.db {
  --card: #0d0d0e;
  --card-line: #232326;
  --soft: #9a9aa2;
}
.db-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.db-head h2 {
  font-size: 30px;
  margin: 4px 0 0;
  letter-spacing: -0.02em;
}
.db-head .eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.db-create {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 520px;
  min-width: 260px;
  background: #111113;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  padding: 5px 5px 5px 16px;
}
.db-create:focus-within {
  border-color: var(--accent);
}
.db-create input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 14px;
  outline: 0;
}
.db-create button {
  border-radius: 999px;
  padding: 9px 16px;
  white-space: nowrap;
}
.db-alert {
  background: #2a1d05;
  border: 1px solid #6b4b0c;
  color: #ffcf70;
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0 0 14px;
  font-size: 13px;
}
.db-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 14px;
}
.db-schedule,
.db-clips-card {
  grid-column: 1/-1;
}
.db-card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 16px;
  padding: 18px;
  min-width: 0;
}
.db-card h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.db-card h4 {
  margin: 16px 0 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
  font-weight: 700;
}
.db-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.db-pill {
  font-size: 11px;
  color: var(--soft);
  border: 1px solid var(--card-line);
  border-radius: 999px;
  padding: 3px 9px;
}
.db-empty,
.db-note {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.55;
  margin: 10px 0 0;
}
.db .text-button {
  background: none;
  border: 0;
  color: var(--accent);
  font-weight: 600;
  padding: 4px 0;
  cursor: pointer;
}
.db-more {
  margin-top: 10px;
  font-size: 12px;
}
/* editor */
.db-continue {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: linear-gradient(135deg, #132b0a, #0f1510);
  border: 1px solid #2c5a17;
  border-radius: 14px;
  padding: 14px;
  color: var(--text);
  cursor: pointer;
}
.db-continue:hover {
  border-color: var(--accent);
}
.db-play {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14px;
}
.db-continue small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
}
.db-continue b {
  display: block;
  font-size: 15px;
  margin: 3px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.db-continue span:last-child {
  min-width: 0;
}
.db-continue em {
  font-style: normal;
  font-size: 12px;
  color: var(--soft);
}
.db-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.db-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 9px;
  padding: 8px 10px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-size: 13px;
}
.db-row:hover {
  background: #18181b;
}
.db-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.db-row small {
  color: var(--soft);
  flex: none;
  font-size: 11px;
}
/* analytics */
.db-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.db-stat {
  background: #121214;
  border: 1px solid var(--card-line);
  border-radius: 12px;
  padding: 12px;
  min-width: 0;
}
.db-stat small {
  display: block;
  font-size: 11px;
  color: var(--soft);
  line-height: 1.3;
  min-height: 2.6em;
}
.db-stat b {
  display: block;
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 4px 0 2px;
}
.db-stat span {
  font-size: 11px;
  color: var(--soft);
}
.db-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 96px;
  margin-top: 16px;
  padding-bottom: 16px;
  position: relative;
}
.db-bar {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}
.db-bar i {
  display: block;
  height: max(3px, var(--h));
  background: #26262b;
  border-radius: 4px 4px 2px 2px;
}
.db-bar.on i {
  background: var(--accent);
}
.db-bar span {
  position: absolute;
  bottom: -16px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 9px;
  color: #6d6d74;
}
.db-toplist {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.db-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.db-top img {
  width: 34px;
  height: 46px;
  object-fit: cover;
  border-radius: 6px;
  background: #1b1b1e;
  flex: none;
}
.db-top span {
  flex: 1;
  min-width: 0;
}
.db-top b {
  display: block;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.db-top small {
  font-size: 11px;
  color: var(--soft);
}
.db-top em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
  font-size: 15px;
}
/* schedule */
.db-weeknav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  margin-right: 6px;
}
.db-weeknav span {
  font-size: 13px;
  font-weight: 600;
  min-width: 118px;
  text-align: center;
}
.db-weeknav button {
  background: #151517;
  border: 1px solid var(--card-line);
  color: var(--text);
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
}
.db-weeknav button.quiet {
  font-size: 12px;
}
.db-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(118px, 1fr));
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}
/* CLAUDE 10-01: the empty week's hint, under the seven days */
.db-week-empty {
  grid-column: 1 / -1;
  margin: 4px 2px 0;
  color: var(--muted, #a1a1aa);
  font-size: 13px;
}
.db-day {
  background: #111113;
  border: 1px solid var(--card-line);
  border-radius: 12px;
  padding: 6px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.db-day.today {
  border-color: #3d7a1f;
  background: #0f160c;
}
.db-day.past {
  opacity: 0.72;
}
.db-day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 5px;
  border-radius: 7px;
  cursor: pointer;
}
.db-day.today .db-day-head {
  color: var(--accent);
}
.db-day-head b {
  opacity: 0;
  color: var(--accent);
  font-size: 14px;
}
.db-day:hover .db-day-head b,
.db-day-head:focus-visible b {
  opacity: 1;
}
.db-post {
  display: block;
  text-align: left;
  width: 100%;
  background: #1a1a1d;
  border: 1px solid #2b2b30;
  border-radius: 8px;
  padding: 6px 7px;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
}
.db-post:hover {
  border-color: #44444b;
}
.db-post small {
  display: flex; /* CLAUDE 09-30: the platform shows as a dot by the time, not a thick coloured side border */
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--soft);
  margin-bottom: 2px;
}
.db-post small::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pc, #8f8f8f);
}
.db-post span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}
.db-post.posted {
  opacity: 0.75;
}
.db-post.posted small::after {
  content: ' · posted ✓';
  color: var(--accent);
}
.db-post.draft {
  border-style: dashed;
  border-left-style: solid;
}
.p-tiktok {
  --pc: #25f4ee;
}
.p-youtube {
  --pc: #ff3b30;
}
.p-instagram {
  --pc: #e1306c;
}
.p-x {
  --pc: #e7e7e7;
}
.p-threads {
  --pc: #b4a2ff; /* Threads' own mark is black and white, already X's: a soft violet tells them apart */
}
.p-bluesky {
  --pc: #1185fe; /* Bluesky's blue */
}
.p-other {
  --pc: #8f8f8f;
}
.db-drafts:empty {
  display: none;
}
/* clips */
.db-clips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.db-clip {
  background: #111113;
  border: 1px solid var(--card-line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.db-clip b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
}
.db-clip small {
  font-size: 11px;
  color: var(--soft);
}
.db-clip small em {
  color: var(--accent);
  font-style: normal;
}
.db-clip-actions {
  display: flex;
  gap: 6px;
  padding: 6px 10px 10px;
  margin-top: auto;
}
.db-clip-actions button,
.db-dl {
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  cursor: pointer;
}
.db-clip-actions .primary {
  flex: 1;
}
.db-clip-actions .quiet,
.db-dl {
  background: #1b1b1e;
  border: 1px solid #2b2b30;
  color: var(--text);
  text-decoration: none;
}
.db-clip-actions button:disabled {
  opacity: 0.4;
  cursor: default;
}
@media (max-width: 980px) {
  .db-grid {
    grid-template-columns: 1fr;
  }
  .db-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .db-head h2 {
    font-size: 24px;
  }
  .db-create {
    min-width: 0;
    flex: 1 1 100%;
    max-width: none;
  }
  .db-card {
    padding: 14px;
  }
  .db-weeknav {
    margin: 0;
    order: 3;
    width: 100%;
  }
  .db-clips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .post-pair {
    grid-template-columns: 1fr;
  }
}
/* Video Editor / Analytics pages, sub-tabs, inline players, Support "Still have questions?" */
.db-sub {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.6;
  margin: 8px 0 0;
  max-width: 620px;
}
.db-head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.db-ghost {
  background: #151517;
  border: 1px solid var(--card-line);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
}
.db-ghost:hover {
  border-color: var(--accent);
}
.db-create-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex: 1;
  max-width: 520px;
  min-width: 260px;
}
.db-create-wrap .db-create {
  width: 100%;
  max-width: none;
  min-width: 0;
}
.db-upload {
  background: none;
  border: 0;
  color: var(--soft);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 6px;
}
.db-upload:hover {
  color: var(--accent);
}
.db-search {
  width: min(360px, 100%);
  background: #111113;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 12px;
  margin-bottom: 14px;
}
.db-search:focus {
  outline: 0;
  border-color: var(--accent);
}
/* inline player */
.ip {
  position: relative;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}
.ip video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}
.ip-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #ffffff55;
  background: #000000a0;
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    opacity 0.2s,
    background 0.2s;
  z-index: 2;
  padding: 0;
}
.ip-btn:hover {
  background: var(--accent);
}
.ip-play {
  width: 0;
  height: 0;
  border-left: 14px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
.ip-pause {
  width: 14px;
  height: 16px;
  border-left: 5px solid #fff;
  border-right: 5px solid #fff;
}
.ip-btn:hover .ip-play {
  border-left-color: var(--accent-ink);
}
.ip-btn:hover .ip-pause {
  border-color: var(--accent-ink);
}
/* CLAUDE 10-03: holding the mouse down on the button made it jump half its size down-right (the owner: "why is the
   button not static"): editor.css's button:active { transform: translateY(1px) scale(.99) } replaced the centring
   translate. Pressed, it now stays exactly where it is. */
.ip-btn:not(:disabled):active {
  transform: translate(-50%, -50%);
}
.ip.ip-on .ip-btn {
  opacity: 0;
}
.ip.ip-on:hover .ip-btn,
.ip.ip-on .ip-btn:focus-visible,
.ip.ip-wait .ip-btn {
  opacity: 1;
}
.ip-spin {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid #ffffff40;
  border-top-color: #fff;
  animation: ip-spin 0.8s linear infinite;
}
@keyframes ip-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ip-spin {
    animation-duration: 2.4s;
  }
}
.ip.ip-err .ip-btn {
  border-color: #ff6b6b;
}
@media (hover: none) {
  .ip.ip-on .ip-btn {
    opacity: 0.85;
    left: auto;
    right: 8px;
    top: auto;
    bottom: 8px;
    transform: none;
    width: 38px;
    height: 38px;
  }
  .ip.ip-on .ip-btn:not(:disabled):active {
    transform: none;
  }
}
/* the volume control, top-left of every card: the same speaker + slider as the template previews, always shown */
.ip-snd {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px 2px 2px;
  border-radius: 999px;
  background: #000000aa;
  cursor: default;
}
.ip-snd-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #c9c9cf;
  cursor: pointer;
}
.ip-snd-btn:hover,
.ip-snd.on .ip-snd-btn {
  color: #fff;
}
.ip-snd-vol {
  width: 64px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.ip-snd-btn:focus-visible,
.ip-snd-vol:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* the seek bar along the bottom of every card: a thin green-filled track, a knob while hovered or dragged */
.ip .ip-seek {
  /* .ip raises it over style.css's input[type='range'] { height: 4px }, which pushed the track out of the card */
  --p: 0%;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 100%;
  height: 16px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.ip-seek:disabled {
  cursor: default;
}
.ip-seek::-webkit-slider-runnable-track {
  height: 4px;
  margin-top: 8px;
  background: linear-gradient(to right, var(--accent) var(--p), #ffffff4d var(--p));
}
.ip-seek::-moz-range-track {
  height: 4px;
  background: #ffffff4d;
}
.ip-seek::-moz-range-progress {
  height: 4px;
  background: var(--accent);
}
.ip-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: opacity 0.15s;
}
.ip-seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
}
.ip:hover .ip-seek:not(:disabled)::-webkit-slider-thumb,
.ip-seek:focus-visible::-webkit-slider-thumb {
  opacity: 1;
}
.ip:hover .ip-seek:not(:disabled)::-moz-range-thumb,
.ip-seek:focus-visible::-moz-range-thumb {
  opacity: 1;
}
.ip-seek:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
/* the Library card's bottom badges sit above the bar */
.lib-card .thumb:has(.ip-seek) :is(.full-tag, .score, .fav) {
  bottom: 22px;
}
.lib-card .thumb:has(.ip-seek) .ip-expand {
  bottom: 20px;
}
.an-thumb .ip-seek {
  display: none;
}
/* Analytics' 62 px thumbnails have room for the speaker only; the level set on any bigger card applies here too */
.an-thumb .ip-snd {
  left: 3px;
  top: 3px;
  padding: 0;
}
.an-thumb .ip-snd-vol {
  display: none;
}
.an-thumb .ip-snd-btn {
  width: 24px;
  height: 24px;
}
.lib-card .thumb:has(.ip-snd) .edited-tag {
  top: 44px;
}
.lib-card .thumb .ip-expand {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: auto;
  top: auto;
  transform: none;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 15px;
  border-radius: 8px;
  z-index: 3;
}
.db-clip-media {
  aspect-ratio: 3/4;
  width: 100%;
}
.db-clip-body {
  padding: 8px 10px 4px;
  min-width: 0;
}
/* video editor page */
/* CLAUDE 10-05 (the owner): five projects a row, the latest ten (two rows) unless "Show all" */
.ed-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 1100px) {
  .ed-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .ed-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .ed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.ed-all {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--card-line);
  background: transparent;
  color: var(--soft);
  font-size: 12.5px;
}
.ed-all:hover {
  color: #f1f1f4;
  border-color: #5a5a5a;
}
.ed-proj {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  background: #111113;
  border: 1px solid var(--card-line);
  border-radius: 12px;
  padding: 0 0 10px;
  overflow: hidden;
  color: var(--text);
  cursor: pointer;
}
.ed-proj:hover {
  border-color: var(--accent);
}
.ed-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  background: #1b1b1e;
  margin-bottom: 8px;
}
.ed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ed-thumb .db-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s;
}
.ed-proj:hover .db-play,
.ed-proj:focus-visible .db-play {
  opacity: 1;
}
.ed-proj b {
  padding: 0 12px;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ed-proj small {
  padding: 2px 12px 0;
  color: var(--soft);
  font-size: 11px;
}
.ed-presets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.ed-preset {
  background: #111113;
  border: 1px solid var(--card-line);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ed-preset small {
  color: var(--soft);
  font-size: 12px;
}
.ed-swatches {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.ed-swatches i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #ffffff33;
}
.ed-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}
.ed-features article {
  background: #111113;
  border: 1px solid var(--card-line);
  border-radius: 12px;
  padding: 16px;
}
.ed-features b {
  color: var(--accent);
  font-size: 14px;
}
.ed-features p {
  color: #c4c4ca;
  font-size: 13px;
  line-height: 1.55;
  margin: 8px 0 0;
}
/* analytics page */
.an-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 14px;
}
.an-two {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.an-chart {
  height: 150px;
}
.an-platforms {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.an-plat {
  display: grid;
  grid-template-columns: 120px 1fr 32px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.an-plat i {
  display: block;
  height: 10px;
  border-radius: 5px;
  background: #1d1d21;
  position: relative;
  overflow: hidden;
}
.an-plat i::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  background: var(--pc);
  border-radius: 5px;
}
.an-plat b {
  text-align: right;
}
.db-top .an-rank {
  width: 20px;
  color: var(--soft);
  font-weight: 700;
  font-size: 12px;
  text-align: center;
  flex: none;
}
.an-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.an-tools label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--soft);
}
.an-tools select {
  background: #111113;
  border: 1px solid var(--card-line);
  color: var(--text);
  border-radius: 8px;
  padding: 7px 10px;
}
.an-tools .db-note {
  margin: 0;
}
.an-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.an-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #111113;
  border: 1px solid var(--card-line);
  border-radius: 12px;
  padding: 8px 12px 8px 8px;
}
.an-thumb {
  width: 62px;
  height: 110px;
  border-radius: 8px;
  flex: none;
}
.an-thumb .ip-btn {
  width: 34px;
  height: 34px;
}
.an-thumb .ip-play {
  border-left-width: 10px;
  border-top-width: 7px;
  border-bottom-width: 7px;
  margin-left: 3px;
}
.an-thumb .ip-pause {
  width: 11px;
  height: 12px;
  border-left-width: 4px;
  border-right-width: 4px;
}
.an-main {
  flex: 1;
  min-width: 0;
}
.an-main b {
  display: block;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.an-main small {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.5;
}
.an-num {
  text-align: center;
  min-width: 56px;
}
/* CLAUDE 10-03: each post's views over time (post.curve) and the "Taking off" badge */
.an-spark {
  flex: none;
  display: grid;
  justify-items: center;
  gap: 3px;
  width: 104px;
}
.an-spark svg {
  width: 100px;
  height: 32px;
  overflow: visible;
}
.an-spark path {
  fill: none;
  stroke: #8e8e96;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.an-num b {
  display: block;
  font-size: 17px;
}
.an-num small {
  color: var(--soft);
  font-size: 10px;
}
.an-act {
  padding: 8px 12px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 12px;
}
.an-row .quiet {
  background: #1b1b1e;
  border: 1px solid #2b2b30;
  color: var(--text);
  text-decoration: none;
}
/* support */
.support-cta {
  margin: 28px 0 0;
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, #101a0b, #0b0b0c);
}
.support-cta h3 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.support-cta p {
  color: #b5b5b5;
  margin: 0 0 16px;
}
.support-cta .primary {
  padding: 12px 22px;
  border-radius: 10px;
}
@media (max-width: 980px) {
  .an-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .an-two {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .an-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .db-create-wrap {
    min-width: 0;
    flex: 1 1 100%;
    max-width: none;
    align-items: stretch;
  }
  .an-row {
    flex-wrap: wrap;
  }
  .an-row .an-main {
    flex-basis: calc(100% - 90px);
  }
  .an-num {
    min-width: 44px;
  }
  .an-plat {
    grid-template-columns: 96px 1fr 28px;
  }
}
/* Accounts page, publishing options in the post dialog */
.ac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 1fr; /* CLAUDE 10-05 (the owner): every card as tall as the tallest, row after row */
  gap: 14px;
}
/* an empty account slot: connect from it, or see why it can't yet */
.ac-empty {
  border-style: dashed;
  background: transparent;
  color: var(--text);
  text-decoration: none;
}
a.ac-empty:hover {
  border-color: var(--accent);
}
a.ac-empty:hover .ac-plus {
  color: var(--accent);
}
.ac-plus {
  display: grid;
  place-items: center;
  color: var(--soft);
  font-size: 16px;
  font-weight: 700;
}
.ac-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ac-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111113;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  padding: 8px 10px;
}
.ac-row img,
.ac-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: #26262b;
}
.ac-row span:not(.ac-dot) {
  /* CLAUDE 10-03: the round placeholder is a span too; flex: 1 stretched it into an oval */
  flex: 1;
  min-width: 0;
}
.ac-row b {
  display: block;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ac-row small {
  color: var(--soft);
  font-size: 11px;
}
.ac-off {
  background: none;
  border: 1px solid #3a2323;
  color: #ff9a9a;
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 12px;
  cursor: pointer;
}
.ac-connect {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  margin-top: auto;
}
/* CLAUDE 10-04: a connected TikTok account's profile and counts (dashboard.js tiktokStats / accountCard) */
.ac-verified {
  margin-left: 5px;
  vertical-align: -2px;
}
.ac-verified circle {
  fill: #20d5ec;
}
.ac-verified path {
  fill: none;
  stroke: #04161a;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ac-tt {
  display: grid;
  gap: 8px;
  padding: 0 4px;
  min-width: 0;
}
.ac-bio {
  margin: 0;
  font-size: 12px;
  color: var(--soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ac-nums {
  display: flex;
  gap: 20px;
}
.ac-nums b {
  display: block;
  font-size: 16px;
}
.ac-nums small,
.ac-tt-note {
  color: var(--soft);
  font-size: 11px;
}
.ac-profile,
.ac-reconnect {
  justify-self: start;
  align-self: flex-start;
  font-size: 12px;
  color: #e8e8ec;
  text-decoration: none;
}
.ac-reconnect {
  border: 1px solid #3a3a40;
  border-radius: 8px;
  padding: 7px 10px;
}
.ac-profile:hover,
.ac-reconnect:hover {
  text-decoration: underline;
}
/* CLAUDE 10-04: Analytics, Social tab (dashboard.js renderSocial) */
.an-accts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.an-acct {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-top: 3px solid var(--pc, var(--card-line));
}
@media (min-width: 900px) {
  .an-acct.has-stats {
    grid-column: span 2; /* followers + sparkline, likes and videos on one line */
  }
}
.an-acct-nums {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px 22px;
}
.an-acct-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--card-line);
}
.an-acct-foot small {
  color: var(--soft);
  font-size: 11px;
}
.an-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  grid-column: 1 / -1;
}
.an-empty p {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  max-width: 560px;
}
.an-empty button {
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}
.an-empty-go {
  background: #1d1d21;
  border: 1px solid #3a3a40;
  color: var(--text);
}
.an-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 10px;
}
.an-head h3 {
  margin: 0;
  font-size: 16px;
}
.an-head .an-tools {
  margin: 0;
}
.an-range {
  display: flex;
  border: 1px solid var(--card-line);
  border-radius: 9px;
  overflow: hidden;
}
.an-range button {
  background: none;
  border: 0;
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  cursor: pointer;
}
.an-range button[aria-pressed='true'] {
  background: #1d1d21;
  color: var(--text);
}
#anTotals {
  margin-bottom: 22px;
}
.an-pthumb {
  width: 40px;
  height: 71px;
  border-radius: 6px;
  background: #1d1d21;
  overflow: hidden;
  flex: none;
}
.an-pthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.an-best {
  margin-top: 22px;
}
.an-heat {
  display: grid;
  grid-template-columns: 34px repeat(6, minmax(0, 1fr));
  gap: 4px;
  max-width: 560px;
}
.an-heat small {
  color: var(--soft);
  font-size: 11px;
  align-self: center;
}
.an-heat i {
  height: 22px;
  border-radius: 5px;
  background: #151518;
}
.an-heat i.on {
  background: rgb(108 199 255 / var(--a));
}
.an-tt-who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.an-tt-fol {
  display: flex;
  align-items: center;
  gap: 14px;
}
.an-tt-who img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.an-tt-who span:not(.ac-dot) {
  min-width: 0;
}
.an-tt-who b {
  display: block;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.an-tt-who small,
.an-tt-num small,
.an-tt-num span {
  display: block;
  color: var(--soft);
  font-size: 11px;
}
.an-tt-num b {
  display: block;
  font-size: 22px;
  letter-spacing: -0.02em;
}
/* CLAUDE 10-04: Analytics after Metricool's (Summary, a page per network, a page per post). Network tints for charts
   (--cc) are the validated categorical palette in CHART_ORDER (dashboard.js); --pc stays the brand tint elsewhere. */
.p-facebook {
  --pc: #4c8dff;
  --cc: #3987e5;
}
.p-youtube {
  --cc: #d95926;
}
.p-tiktok {
  --cc: #199e70;
}
.p-x {
  --cc: #c98500;
}
.p-instagram {
  --cc: #d55181;
}
.p-threads {
  --cc: #8a6fe6;
}
.p-bluesky {
  --cc: #1185fe;
}
.p-other {
  --cc: #8e8e96;
}
.an {
  --data: #6cc7ff;
  font-variant-numeric: tabular-nums;
}
.an-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.net-i {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -2px;
}
.an-top {
  align-items: flex-end;
}
.an-period {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.an-period .primary {
  padding: 8px 14px;
  border-radius: 9px;
  font-weight: 600;
}
.an-custom {
  display: flex;
  gap: 6px;
}
.an-custom label,
.an-compare {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--soft);
  font-size: 12px;
}
.an-custom input,
.an-compare select,
.an-plist select,
.an-search {
  background: #111113;
  border: 1px solid var(--card-line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  padding: 7px 9px;
  color-scheme: dark;
}
.an-range button:focus-visible,
.an-nav a:focus-visible,
.an-plist button:focus-visible,
.an-seg button:focus-visible,
.an-tbl-btn:focus-visible,
.an-back:focus-visible,
.an-plink:focus-visible,
.an-tb-row:focus-visible,
.an-dh-acts :is(a, button):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.an-period-text {
  margin: 0 0 14px;
  color: var(--soft);
  font-size: 12px;
}
.home-page[data-view='post'] .an-period,
.home-page[data-view='clips'] .an-period :is(.an-range, .an-custom, .an-compare),
.home-page[data-view='post'] .an-period-text,
.home-page[data-view='clips'] .an-period-text {
  display: none;
}
.an-layout {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.an-nav {
  position: sticky;
  top: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 14px;
}
.an-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 9px;
  color: #c4c4ca;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.an-nav a:hover {
  background: #17171a;
  color: var(--text);
}
.an-nav a[aria-current='page'] {
  background: #1d1d21;
  color: var(--text);
  box-shadow: inset 0 0 0 1px #2e2e33;
}
.an-nav a > span {
  flex: 1;
  min-width: 0;
}
.an-nav small {
  display: block;
  color: var(--soft);
  font-size: 11px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.an-nav .net-i,
.an-nav-ic {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.an-nav a[class*='p-'] .net-i {
  color: var(--cc);
}
.an-nav img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.an-nav .an-nav-add {
  color: var(--soft);
  font-weight: 500;
  font-size: 12px;
}
.an-nav-sep {
  height: 1px;
  margin: 6px 4px;
  background: var(--card-line);
}
.an-sec {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 26px 0 10px;
}
.an-sec:first-child {
  margin-top: 0;
}
.an-sec h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.an-sec small {
  color: var(--soft);
  font-size: 12px;
}
.an-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 12px;
}
.an-blocks.one {
  grid-template-columns: minmax(0, 1fr);
}
.an-blocks.posts > :first-child {
  grid-column: 1 / -1; /* views lead, full width; interactions and posts share the next row */
}
.an-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.an-block-head h4,
.an-fig-h,
.an-tb-col h4 {
  margin: 0 0 4px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.an-big {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.an-big b {
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.an-big small {
  color: var(--soft);
  font-size: 12px;
}
.an-trend {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 600;
  color: #d6d6dc;
  white-space: nowrap;
}
.an-trend svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.an-trend.up svg {
  color: #7ed6ff;
}
.an-trend.down svg {
  color: #ff9a8a;
}
.an-trend.flat {
  color: var(--soft);
}
.an-share {
  display: flex;
  gap: 2px;
  height: 6px;
}
.an-share i {
  flex-basis: 0;
  min-width: 3px;
  border-radius: 3px;
  background: var(--cc);
}
.an-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.an-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cc) 14%, #111113);
  border: 1px solid color-mix(in srgb, var(--cc) 34%, transparent);
  font-size: 12px;
}
.an-chip .net-i {
  color: var(--cc);
  transition: color 0.15s ease-out;
}
.an-chip:hover .net-i {
  color: color-mix(in srgb, var(--cc) 60%, #fff);
}
.an-chip b {
  font-weight: 650;
}
.an-chip.none {
  background: #111113;
  border-color: var(--card-line);
  color: var(--soft);
}
.an-chip.none .net-i {
  color: #77777f;
}
/* charts */
.an-fig {
  margin: 0;
  min-width: 0;
}
.an-plot {
  position: relative;
  width: 100%;
  min-height: 120px;
}
.an-svg {
  display: block;
  overflow: visible;
  touch-action: pan-y;
}
.an-grid {
  stroke: #1f1f23;
  stroke-width: 1;
}
.an-grid.base {
  stroke: #34343a;
}
.an-ylab,
.an-xlab,
.an-marklab {
  fill: #9a9aa2;
  font-size: 11px;
  font-family: inherit;
}
.an-ylab {
  text-anchor: end;
}
.an-marklab {
  fill: #b9b9c0;
}
.an-ln {
  fill: none;
  stroke: var(--cc, var(--data));
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.an-ln.main,
.an-pt.main {
  stroke: var(--data);
}
.an-ln.peer {
  stroke: #8e8e96;
  stroke-dasharray: 5 4;
  stroke-width: 1.6;
}
.an-pt {
  fill: var(--cc, var(--data));
}
.an-area {
  fill: color-mix(in srgb, var(--data) 12%, transparent);
}
.an-mark {
  stroke: #45454c;
  stroke-dasharray: 3 4;
}
.an-cross {
  stroke: #5a5a62;
  stroke-width: 1;
}
.an-dots circle {
  fill: var(--cc, var(--data));
  stroke: var(--card);
  stroke-width: 2;
}
.an-dots circle.main {
  fill: var(--data);
}
.an-dots circle.peer {
  fill: #8e8e96;
}
.an-bar {
  fill: var(--cc, var(--data));
}
.an-bar.main {
  fill: var(--data);
}
.an-tip {
  position: absolute;
  top: 8px;
  z-index: 3;
  display: grid;
  gap: 3px;
  min-width: 140px;
  max-width: 240px;
  padding: 8px 10px;
  background: #18181b;
  border: 1px solid #2e2e33;
  border-radius: 10px;
  box-shadow: 0 10px 28px #000a;
  font-size: 12px;
  pointer-events: none;
}
.an-tip b {
  font-weight: 650;
}
.an-tip span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #c4c4ca;
}
.an-tip em {
  margin-left: auto;
  padding-left: 10px;
  font-style: normal;
  color: var(--text);
  font-weight: 600;
}
.an-tip .net-i {
  color: var(--cc);
}
.an-sw {
  width: 10px;
  height: 3px;
  border-radius: 2px;
  background: var(--cc, var(--data));
  flex: none;
}
.an-sw.main {
  background: var(--data);
}
.an-sw.peer {
  background: repeating-linear-gradient(90deg, #8e8e96 0 4px, transparent 4px 7px);
}
.an-fig-sum {
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.5;
}
.an-tbl-btn {
  margin-top: 6px;
  padding: 4px 0;
  background: none;
  border: 0;
  color: #c4c4ca;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.an-tbl-btn:hover {
  color: var(--text);
}
.an-tbl-wrap {
  max-height: 260px;
  margin-top: 6px;
  overflow: auto;
  border: 1px solid var(--card-line);
  border-radius: 10px;
}
.an-dtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.an-dtable :is(th, td) {
  padding: 6px 10px;
  text-align: right;
  border-bottom: 1px solid #1a1a1d;
  white-space: nowrap;
}
.an-dtable :is(thead th, tbody th) {
  text-align: left;
  color: var(--soft);
  font-weight: 600;
}
.an-dtable thead th {
  position: sticky;
  top: 0;
  background: #121214;
}
.an-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 12px;
}
.an-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
/* top and lowest */
.an-tb {
  margin-top: 12px;
}
.an-tb-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 8px 22px;
}
.an-tb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  margin: 0 -6px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}
.an-tb-row:hover {
  background: #151518;
}
.an-tb-row .an-pthumb {
  width: 32px;
  height: 56px;
}
.an-rank {
  width: 16px;
  color: var(--soft);
  font-size: 12px;
  text-align: center;
}
.an-tb-main {
  flex: 1;
  min-width: 0;
}
.an-tb-main b,
.an-ptxt b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.an-tb-main small {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--soft);
  font-size: 11px;
}
.an-tb-main .net-i,
.c-net .net-i,
.an-dh-net .net-i {
  color: var(--cc);
}
.an-tb-num {
  text-align: right;
}
.an-tb-num b {
  display: block;
  font-size: 15px;
}
.an-tb-num small {
  color: var(--soft);
  font-size: 11px;
}
/* the post list */
.an-plist {
  margin-top: 12px;
  padding: 0;
  overflow: hidden;
}
.an-plist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 18px 12px;
}
.an-plist-head h3 {
  margin: 0;
}
.an-plist-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.an-search {
  width: 240px;
  max-width: 100%;
}
.an-sortsel {
  display: none;
}
.an-csv,
.an-pager button {
  padding: 7px 12px;
  background: #1b1b1e;
  border: 1px solid #2b2b30;
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.an-csv:hover,
.an-pager button:hover:not(:disabled) {
  background: #232327;
}
.an-pager button:disabled {
  opacity: 0.45;
  cursor: default;
}
.an-tscroll {
  overflow-x: auto;
}
.an-ptable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.an-ptable thead th {
  padding: 0 10px 8px;
  border-bottom: 1px solid var(--card-line);
  text-align: right;
  white-space: nowrap;
}
.an-ptable thead th.c-post,
.an-ptable thead th.c-type,
.an-ptable thead th.c-posted {
  text-align: left;
}
.an-ptable thead th:first-child,
.an-ptable tbody th {
  padding-left: 18px;
}
.an-ptable thead th:last-child,
.an-ptable tbody td:last-child {
  padding-right: 18px;
}
.an-ptable thead button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  background: none;
  border: 0;
  color: var(--soft);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.an-ptable thead button:hover,
.an-ptable th[aria-sort] button {
  color: var(--text);
}
.an-ptable thead svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  opacity: 0;
}
.an-ptable th[aria-sort] svg,
.an-ptable thead button:hover svg {
  opacity: 1;
}
.an-ptable tbody tr {
  cursor: pointer;
}
.an-ptable tbody tr:hover {
  background: #121215;
}
.an-ptable tbody :is(th, td) {
  padding: 8px 10px;
  border-bottom: 1px solid #19191c;
  text-align: right;
  font-weight: 500;
  vertical-align: middle;
}
.an-ptable tbody th {
  text-align: left;
  min-width: 240px;
}
.an-ptable .c-type,
.an-ptable .c-posted {
  text-align: left;
  color: #c4c4ca;
  white-space: nowrap;
}
.an-ptable .c-net {
  text-align: center;
}
.an-ptable td.na {
  color: #77777f;
}
.an-plink {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.an-plink:hover b {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.an-ptxt {
  min-width: 0;
  max-width: 360px;
}
.an-ptxt small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--soft);
  font-size: 12px;
  font-weight: 400;
}
.an-plink .an-pthumb {
  width: 34px;
  height: 60px;
}
.an-badge {
  display: inline-block;
  margin: 4px 0 0 44px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #1d1d21;
  color: #c4c4ca;
  font-size: 11px;
  font-weight: 600;
}
.an-badge.hot {
  background: color-mix(in srgb, var(--data) 18%, #111113);
  color: #a9e1ff;
}
.an-badge.error {
  background: #2a1212;
  color: #ff9a9a;
}
.an-badge.warn {
  background: #2a2005;
  color: #ffcf70;
}
.an-plist-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 12px 18px;
  color: var(--soft);
  font-size: 12px;
}
.an-plist-foot label {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.an-pager {
  display: flex;
  gap: 6px;
}
.an-plist-empty {
  margin: 0;
  padding: 4px 18px 20px;
}
/* a network's page */
.an-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 12px 0;
}
.an-kpis.detail {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}
.an-kpi small {
  min-height: 0;
}
.an-kpi b.na {
  color: #77777f;
}
.an-kpi .an-trend {
  margin-left: 6px;
}
.an-kpi b {
  display: inline-block;
}
.an-kpi span:last-child {
  display: block;
}
.an-growth .an-fig-h {
  margin-top: 6px;
}
.an-growth .an-fig + .an-fig-h {
  margin-top: 18px;
}
/* a post's page */
.an-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 14px;
  color: #c4c4ca;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.an-back:hover {
  color: var(--text);
}
.an-back svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.an-dh {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.an-dh-media {
  width: 220px;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  background: #111113;
  border: 1px solid var(--card-line);
}
.an-gone {
  position: relative;
  display: grid;
  align-content: end;
}
.an-gone.bare {
  aspect-ratio: auto;
  min-height: 110px;
}
.an-gone.bare p {
  background: none;
}
.an-gone img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.an-gone p {
  position: relative;
  margin: 0;
  padding: 14px;
  background: linear-gradient(transparent, #000c 40%);
  color: #d6d6dc;
  font-size: 12px;
  line-height: 1.5;
}
.an-gone b {
  display: block;
  color: var(--text);
  font-size: 13px;
}
.an-dh-net {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d6d6dc;
  font-size: 12px;
  font-weight: 600;
}
.an-dh-info h2 {
  margin: 6px 0 8px;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}
.an-dh-cap {
  max-width: 68ch;
  margin: 0 0 14px;
  color: #d6d6dc;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.an-dh-cap.none {
  color: var(--soft);
}
.an-tag {
  color: #a9e1ff;
}
.an-dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 18px;
  margin: 0 0 14px;
}
.an-dl dt {
  color: var(--soft);
  font-size: 11px;
  font-weight: 600;
}
.an-dl dd {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.an-origin .an-dl {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.an-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px #fff3;
  vertical-align: -1px;
}
.an-dh-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.an-dh-acts .quiet {
  padding: 8px 14px;
  background: #1b1b1e;
  border: 1px solid #2b2b30;
  border-radius: 9px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.an-dh-acts .quiet:hover:not(:disabled) {
  background: #232327;
}
.an-dh-acts .quiet:disabled {
  opacity: 0.5;
  cursor: default;
}
.an-state {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  background: #121214;
  border: 1px solid var(--card-line);
  color: #c4c4ca;
}
.an-state.quiet {
  padding: 0;
  background: none;
  border: 0;
  color: var(--soft);
  font-size: 12px;
}
.an-state.warn {
  background: #2a1d05;
  border-color: #6b4b0c;
  color: #ffcf70;
}
.an-state.error {
  background: #241314;
  border-color: #4a2426;
  color: #ffb0b0;
}
.an-dgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  gap: 12px;
  align-items: start;
}
.an-side {
  display: grid;
  gap: 12px;
}
.an-seg {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--card-line);
  border-radius: 9px;
  overflow: hidden;
}
.an-seg button {
  padding: 6px 10px;
  background: none;
  border: 0;
  color: var(--soft);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.an-seg button[aria-pressed='true'] {
  background: #1d1d21;
  color: var(--text);
}
.an-vs-row {
  display: grid;
  grid-template-columns: 52px auto minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #19191c;
}
.an-vs-row:first-of-type {
  border-top: 0;
}
.an-vs-at {
  color: var(--soft);
  font-size: 12px;
}
.an-vs-row b {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.an-vs-row span:last-child {
  font-size: 12px;
  color: #c4c4ca;
}
.an-vs-row small {
  display: block;
  color: var(--soft);
  font-size: 11px;
}
.an-origin {
  margin-top: 12px;
}
.an-origin .an-dh-acts {
  margin-top: 4px;
}
.an-skel {
  background: linear-gradient(90deg, #121214, #19191c, #121214);
  background-size: 200% 100%;
  animation: an-shimmer 1.4s ease-in-out infinite;
}
.an-skel.line {
  height: 14px;
  margin: 8px 0;
  border-radius: 6px;
}
.an-skel.line.short {
  width: 60%;
}
@keyframes an-shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .an-skel {
    animation: none;
  }
}
@media (max-width: 1100px) {
  .an-dgrid {
    grid-template-columns: minmax(0, 1fr);
  }
  .an-side {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  }
}
@media (max-width: 980px) {
  .an-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .an-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .an-nav a {
    flex: none;
  }
  .an-nav-sep {
    width: 1px;
    height: auto;
    margin: 4px 2px;
  }
  .an-nav small {
    display: none;
  }
  .an-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .an-period {
    justify-content: flex-start;
  }
  .an-dh {
    grid-template-columns: minmax(0, 1fr);
  }
  .an-dh-media {
    width: min(240px, 70vw);
    margin: 0 auto;
  }
}
/* the post list goes to stacked cards when its own box is narrow (a phone, or a laptop with the menu open) */
.an-plist {
  container-type: inline-size;
}
@container (max-width: 820px) {
  .an-search {
    flex: 1 1 100%;
    width: auto;
  }
  .an-sortsel {
    display: block;
    flex: 1;
  }
  /* the list as stacked cards: the post on top, its numbers in a grid with their labels */
  .an-ptable,
  .an-ptable tbody {
    display: block;
  }
  .an-ptable thead {
    display: none;
  }
  .an-ptable tbody tr {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #19191c;
  }
  .an-ptable tbody :is(th, td) {
    padding: 0;
    border: 0;
    text-align: left;
    min-width: 0;
  }
  .an-ptable tbody th {
    grid-column: 1 / -1;
    padding-left: 0;
  }
  .an-ptable tbody td:last-child {
    padding-right: 0;
  }
  .an-ptable tbody td::before {
    content: attr(data-label);
    display: block;
    color: var(--soft);
    font-size: 11px;
    font-weight: 500;
  }
  /* type · date (2 wide) · network, then views · interactions · engagement (2 wide) */
  .an-ptable .c-type {
    order: 1;
  }
  .an-ptable .c-posted {
    order: 2;
    grid-column: span 2;
    white-space: normal;
  }
  .an-ptable .c-net {
    order: 3;
    text-align: left;
  }
  .an-ptable tbody td.num {
    order: 4;
  }
  .an-ptable tbody td.num:nth-child(6) {
    grid-column: span 2;
  }
  .an-ptxt {
    max-width: none;
  }
  .an-plist-foot {
    justify-content: space-between;
  }
}
/* a mid-width list (a laptop with the menu open): the numbers on one line under each post */
@container (min-width: 561px) and (max-width: 820px) {
  .an-ptable tbody tr {
    grid-template-columns: 1fr 2fr 1fr 1fr 1fr 1fr;
  }
  .an-ptable .c-type,
  .an-ptable .c-posted,
  .an-ptable .c-net,
  .an-ptable tbody td.num {
    order: 0;
  }
  .an-ptable .c-posted,
  .an-ptable tbody td.num:nth-child(6) {
    grid-column: auto;
  }
  .an-ptable tbody th {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .an-kpis.detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .an-big b {
    font-size: 26px;
  }
}
.ac-card code {
  font-size: 11px;
  word-break: break-all;
  color: #cfe8c2;
}
/* CLAUDE 10-11: Bluesky's app-password form and the SmartLink page settings (dashboard.js blueskyForm / renderSmartlink) */
.ac-form summary {
  cursor: pointer;
  font-weight: 600;
  padding: 6px 0;
}
.ac-form label,
.ac-sl label {
  display: block;
  margin: 12px 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: #d8d8de;
}
.ac-form input,
.ac-sl input:not([type='checkbox']),
.ac-sl textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  box-sizing: border-box;
  border: 1px solid #34343a;
  border-radius: 8px;
  background: #111113;
  color: var(--text, #eef3ed);
  font: inherit;
}
.ac-form .ac-connect {
  width: 100%;
  margin-top: 14px;
}
.ac-steps {
  margin: 8px 0 0;
  padding-left: 18px;
}
.ac-err {
  color: #ff9a9a;
}
.ac-sl {
  max-width: 560px;
}
.ac-sl .ac-sl-sw {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  font-size: 13px;
  font-weight: 550;
}
.ac-sl-links {
  display: grid;
  gap: 8px;
  margin: 12px 0 8px;
}
.ac-sl-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;
  gap: 8px;
  align-items: center;
}
.ac-sl-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 14px;
}
.ac-sl-url {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}
@media (max-width: 640px) {
  .ac-sl-link {
    grid-template-columns: 1fr;
  }
}
.ac-help {
  margin-top: 16px;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 14px;
  padding: 14px 18px;
}
.ac-help summary {
  cursor: pointer;
  font-weight: 600;
}
.ac-help p,
.ac-help li {
  color: #c4c4ca;
  font-size: 13px;
  line-height: 1.6;
}
.db-post.publishing {
  border-left-style: dotted;
}
.db-post.publishing small::after {
  content: ' · publishing…';
  color: #8fd3ff;
}
.db-post.failed {
  background: #241314;
  border-color: #4a2426;
}
.db-post.failed small::after {
  content: ' · failed';
  color: #ff8a8a;
}
/* Clipping / Video Editor / Analytics switcher at the top of every signed-in page */
.service-switch {
  display: none;
  gap: 4px;
  padding: 4px;
  background: #111614;
  border: 1px solid #252b27;
  border-radius: 10px;
}
body.signed-in .service-switch {
  display: flex;
}
body.signed-in .landing-links {
  display: none;
}
.service-switch button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #93a098;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0;
  padding: 9px 16px;
  min-height: 0;
  text-transform: none;
}
.service-switch button span {
  font-size: 13px;
  color: #7f8c84;
}
.service-switch button:hover {
  color: var(--text, #eef3ee);
  background: #1a201d;
}
.service-switch button.active {
  color: #1e300e;
  background: var(--accent, #53fc18);
  border-color: var(--accent, #53fc18);
}
.service-switch button.active span {
  color: #1e300e;
}
.landing-nav .service-switch {
  margin-right: auto;
  margin-left: 10px;
}
@media (max-width: 820px) {
  .service-switch button {
    font-size: 11px;
    padding: 7px 10px;
  }
  .service-switch button span {
    display: none;
  }
  .workspace-top {
    gap: 10px;
  }
  .workspace-top .workspace-ready {
    display: none;
  }
  .landing-nav {
    flex-wrap: wrap;
  }
  .landing-nav .service-switch {
    order: 3;
    width: 100%;
    margin: 0;
    justify-content: center;
  }
}
.service-switch button {
  white-space: nowrap;
}
body.signed-in .landing-nav [data-start='nav'] {
  display: none;
}
@media (max-width: 1100px) {
  body.signed-in .landing-nav {
    flex-wrap: wrap;
    row-gap: 12px;
  }
  body.signed-in .landing-nav .service-switch {
    order: 3;
    width: 100%;
    margin: 0;
    justify-content: center;
  }
}

/* CLAUDE 09-30 — sidebar icons (drawn SVG, one stroke family) */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
svg.nav-icon,
.dh svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* CLAUDE 09-30 — the dashboard as one studio flow (index.html .dh, dashboard.js renderDashboard) */
.dh {
  --dh-field: #111113;
  --dh-hover: #17171a;
}
.dh-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  flex-wrap: wrap;
}
.dh-top h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.dh-date {
  color: var(--soft);
  font-size: 13px;
}
/* make clips: Upload | link + Get clips | Clip options, centred */
.dh-make {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin: 26px auto 22px;
}
.dh-bar {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  width: min(940px, 100%);
}
.dh-upload,
.dh-opts-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 54px;
  padding: 0 18px;
  border: 1px solid var(--card-line);
  border-radius: 16px;
  background: var(--dh-field);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 140ms cubic-bezier(0.23, 1, 0.32, 1);
}
.dh-upload:hover,
.dh-opts-btn:hover,
.dh-opts[open] .dh-opts-btn {
  background: var(--dh-hover);
  border-color: #34343a;
}
.dh-upload:active,
.dh-opts-btn:active {
  transform: scale(0.97);
}
.dh-upload svg,
.dh-opts-btn svg,
.dh-link svg {
  color: var(--soft);
}
.dh-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 6px 0 16px;
  border: 1px solid var(--card-line);
  border-radius: 16px;
  background: var(--dh-field);
  transition: border-color 160ms ease;
}
/* CLAUDE 10-03: no green box on the link field (the owner: the blinking caret shows it's selected) */
.dh-link:focus-within {
  border-color: rgba(255, 255, 255, 0.22);
}
.dh .dh-link input:focus-visible {
  outline: none !important; /* editor.css's site-wide focus ring is !important */
}
.dh .dh-link input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
  color: var(--text);
  font-size: 14.5px;
  outline: 0;
}
.dh-link input::placeholder {
  color: #7d7d86;
}
.dh-link button {
  height: 42px;
  padding: 0 20px;
  border-radius: 12px;
  white-space: nowrap;
  font-weight: 700;
}
.dh .dh-opts {
  position: relative;
  margin: 0; /* the app's generic .page-inner details box does not apply here */
  padding: 0;
  border: 0;
  background: none;
}
.dh-opts-btn {
  list-style: none;
}
.dh-opts-btn::-webkit-details-marker {
  display: none;
}
.dh-opts-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  width: 300px;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #2e2e33;
  border-radius: 16px;
  background: #141416;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.75);
  transform-origin: top right;
  animation: dh-pop 180ms cubic-bezier(0.23, 1, 0.32, 1);
}
@keyframes dh-pop {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.97);
  }
}
.dh-opts-panel label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: var(--soft);
}
.dh-opts-panel select {
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  background: var(--dh-field);
  color: var(--text);
}
.dh-opts-panel .dh-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
}
.dh-opts-panel .dh-check input {
  accent-color: var(--accent);
}
.dh-opts-panel p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--soft);
}
.dh-rights {
  justify-content: center;
}
/* where each tool stands: one connected strip, not four loose cards */
.dh-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--card-line);
  border-radius: 18px;
  background: var(--card);
  overflow: hidden;
  margin-bottom: 14px;
}
.dh-step {
  position: relative;
  display: grid;
  gap: 3px;
  align-content: start;
  min-width: 0;
  padding: 16px 30px 16px 18px;
  border: 0;
  border-right: 1px solid var(--card-line);
  border-radius: 0;
  background: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease;
}
.dh-step:last-child {
  border-right: 0;
}
.dh-step:hover {
  background: var(--dh-hover);
}
.dh-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1.6px solid #45454c;
  border-right: 1.6px solid #45454c;
  transform: translateY(-50%) rotate(45deg);
}
/* CLAUDE 10-03: panels rise 10 px and fade in as they scroll into view (dashboard.js adds .rv, then .rv-in). Under
   the system's reduced-motion setting the rise is 4 px: the owner's PC has it on and still wants the slight flow. */
.rv {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.45s ease,
    transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.rv.rv-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .rv {
    transform: translateY(4px);
    transition-duration: 0.3s;
  }
}
.dh-step-txt {
  display: grid;
  gap: 3px;
  min-width: 0;
}
/* CLAUDE 10-03: the step's little preview (a clip plays muted while the step is hovered) */
.dh-step.has-media {
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
}
.dh-step-media {
  width: 36px;
  height: 64px;
  overflow: hidden;
  border-radius: 6px;
  background: #000;
  box-shadow: 0 0 0 1px var(--card-line);
}
.dh-step-media :is(video, img) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dh-step-k {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--soft);
}
/* the one moving thing on the page: a clip job is cooking */
.dh-step.live .dh-step-k::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: dh-live 1.6s ease-in-out infinite;
}
@keyframes dh-live {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(83, 252, 24, 0.35);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(83, 252, 24, 0);
    opacity: 0.55;
  }
}
.dh-step b {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dh-step small {
  color: var(--soft);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* panels */
.dh-main,
.dh-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.dh-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--card-line);
  border-radius: 18px;
  background: var(--card);
}
.dh-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.dh-head h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.dh-clips {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.dh-clips > .db-empty {
  grid-column: 1 / -1;
}
.dh-upcoming {
  display: grid;
  gap: 6px;
}
.dh-up {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--dh-field);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}
.dh-up:hover {
  background: var(--dh-hover);
  border-color: var(--card-line);
}
.dh-up time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--soft);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.dh-up time::before,
.dh-acct::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pc, #8f8f8f);
}
.dh-up span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.dh-up small {
  color: var(--soft);
  font-size: 12px;
}
.dh-drafts {
  justify-self: start;
  margin-top: 4px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--soft);
  font-size: 13px;
  cursor: pointer;
}
.dh-drafts:hover {
  color: var(--text);
}
.dh-accts {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--card-line);
}
.dh-accts > span {
  font-size: 12px;
  color: var(--soft);
}
.dh-acct-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dh-acct {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  background: var(--dh-field);
  color: var(--text);
  font-size: 12.5px;
}
.dh-acct-add {
  cursor: pointer;
  color: var(--soft);
  border-style: dashed;
}
.dh-acct-add::before {
  display: none;
}
.dh-acct-add:hover {
  color: var(--text);
  border-color: #45454c;
}
/* performance: views at each checkpoint */
.dh-perf-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.dh-perf-table th,
.dh-perf-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--card-line);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.dh-perf-table thead th {
  padding-top: 0;
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
}
.dh-perf-table tbody th {
  width: 55%;
  max-width: 0;
  text-align: left;
  font-weight: 600;
}
.dh-perf-table tbody th span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dh-perf-table tbody th small {
  color: var(--soft);
  font-weight: 400;
  font-size: 12px;
}
.dh-perf-table thead th:first-child {
  text-align: left;
}
/* CLAUDE 10-04: the post's title opens its page; "View post ↗" opens it on the network */
.dh-perf-table tbody th a {
  display: block;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dh-perf-table tbody th a:hover {
  text-decoration: underline;
}
.dh-perf-table .dh-view {
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.dh-perf-table .dh-view:hover {
  text-decoration: underline;
}
a.dh-acct {
  text-decoration: none;
}
a.dh-acct:hover {
  border-color: #45454c;
}
.dh-perf-table tr:last-child > * {
  border-bottom: 0;
}
.dh-dash {
  color: #55555c;
}
/* Horizon Units */
.dh-hu-num {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.dh-hu-num b {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.dh-hu-num span {
  color: var(--soft);
  font-size: 13px;
}
.dh-meter {
  height: 8px;
  margin-top: 12px;
  border-radius: 999px;
  background: #1c1c20;
  overflow: hidden;
}
.dh-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #e8e8ee;
  transform-origin: left;
  transition: transform 600ms cubic-bezier(0.23, 1, 0.32, 1);
}
.dh-meter.low i {
  background: #ffb020;
}
/* CLAUDE 10-05: Scheduling (Metricool's Planning): views, the hour grid, drafts, the list, deleted posts, the queue */
.sc-actions {
  display: flex;
  gap: 8px;
}
.sc-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.sc-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  background: #111113;
}
.sc-tabs button {
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--soft);
  padding: 7px 14px;
  font-weight: 600;
  cursor: pointer;
}
.sc-tabs button[aria-selected='true'] {
  background: #222226;
  color: var(--text);
}
.sc-tz {
  color: var(--soft);
  font-size: 12px;
}
.sc-cal-wrap .db-schedule {
  position: relative; /* the drafts pop-out hangs from its head */
}
.sc-head-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sc-drafts-btn[aria-expanded='true'] {
  border-color: var(--accent);
  color: var(--text);
}
.sc-drafts-btn b {
  margin-left: 4px;
  color: var(--accent);
}
.sc-best {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--soft);
  font-size: 12px;
  white-space: nowrap;
}
.sc-best select,
.sc-filters select,
.sc-filters input[type='date'] {
  background: #111113;
  border: 1px solid var(--card-line);
  border-radius: 8px;
  color: var(--text);
  padding: 6px 8px;
}
/* by id: style.css sizes every input and select to 100% with a selector stronger than a class */
#scBest,
#scNet,
#scStatus,
#scFrom,
#scTo,
#scQTime {
  width: auto;
  margin: 0;
}
.sc-best-note {
  margin: 0 0 10px;
}
.sc-grid {
  display: grid;
  grid-template-columns: 56px repeat(7, minmax(112px, 1fr));
  max-height: min(68vh, 760px);
  overflow: auto;
  border: 1px solid var(--card-line);
  border-radius: 12px;
  background: #0d0d0f;
  overscroll-behavior: contain;
}
.sc-corner,
.sc-dayhead {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #141416;
  border-bottom: 1px solid var(--card-line);
}
.sc-corner {
  left: 0;
  z-index: 4;
}
.sc-dayhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--card-line);
  border-left: 1px solid #1d1d21;
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
  padding: 10px 8px;
  cursor: pointer;
}
.sc-dayhead.today {
  color: var(--accent);
}
.sc-dayhead.past {
  color: #6c6c74;
}
.sc-dayhead b {
  opacity: 0;
  color: var(--accent);
}
.sc-dayhead:hover b,
.sc-dayhead:focus-visible b {
  opacity: 1;
}
.sc-hour {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #0d0d0f;
  color: #7a7a82;
  font-size: 10px;
  text-align: right;
  padding: 4px 8px 0 0;
  border-top: 1px solid #1d1d21;
}
.sc-cell {
  position: relative;
  min-height: 46px;
  padding: 3px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-top: 1px solid #1d1d21;
  border-left: 1px solid #1d1d21;
  background: rgb(110 231 72 / var(--heat, 0));
  cursor: pointer;
}
.sc-cell.today {
  box-shadow: inset 0 0 0 9999px rgb(110 231 72 / 0.025);
}
.sc-cell.past {
  cursor: default;
  background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgb(255 255 255 / 0.018) 6px 7px);
}
.sc-cell:not(.past):hover {
  outline: 1px solid #2c2c32;
  outline-offset: -1px;
}
.sc-cell.drop {
  outline: 2px dashed var(--accent);
  outline-offset: -2px;
}
.sc-cell .db-post {
  padding: 4px 6px;
}
.sc-cell .db-post small,
.sc-draft .db-post small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-cell .db-post small::before,
.sc-draft .db-post small::before {
  display: inline-block;
  margin-right: 5px;
  vertical-align: 1px;
}
.sc-cell .db-post span {
  -webkit-line-clamp: 1;
}
.sc-now {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #ff5a4f;
  pointer-events: none;
}
.sc-now::before {
  content: '';
  position: absolute;
  left: -4px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5a4f;
}
.db-post[draggable='true'] {
  cursor: grab;
}
.db-post.dragging {
  opacity: 0.45;
}
.sc-drawer {
  position: absolute;
  top: 64px;
  right: 18px;
  z-index: 6;
  width: min(320px, calc(100% - 36px));
  padding: 14px;
  border: 1px solid #2c2c32;
  border-radius: 14px;
  background: #121214;
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.6);
  transition: opacity 0.15s;
}
@media (prefers-reduced-motion: no-preference) {
  .sc-drawer:not([hidden]) {
    animation: sc-pop 0.16s cubic-bezier(0.23, 1, 0.32, 1);
  }
}
@keyframes sc-pop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
.sc-drawer.passive {
  opacity: 0.15;
  pointer-events: none;
}
.sc-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sc-drawer-head h3 {
  margin: 0;
  font-size: 15px;
}
.sc-drawer-x {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--soft);
  font-size: 20px;
  cursor: pointer;
}
.sc-drawer-x:hover {
  background: #1d1d21;
  color: var(--text);
}
.sc-drawer .db-note {
  margin: 4px 0 10px;
}
.sc-draft-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: min(60vh, 680px);
  overflow: auto;
}
.sc-draft {
  display: flex;
  gap: 6px;
  align-items: stretch;
}
.sc-draft .db-post {
  flex: 1;
  min-width: 0;
}
.sc-qbtn {
  flex: none;
  font-size: 12px;
}
.sc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.sc-filters .db-search {
  margin: 0;
  flex: 1 1 220px;
}
.sc-filters label {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--soft);
  font-size: 12px;
}
.sc-bulk {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px 10px;
  margin-bottom: 10px;
  border: 1px solid #2e4a22;
  border-radius: 10px;
  background: #101a0c;
}
.sc-bulk b {
  margin-right: auto;
  font-size: 13px;
}
.quiet.danger {
  color: #ff8a8a;
}
.sc-table-wrap {
  overflow-x: auto;
}
.sc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.sc-table th {
  text-align: left;
  color: var(--soft);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px;
  border-bottom: 1px solid var(--card-line);
  white-space: nowrap;
}
.sc-table td {
  padding: 8px;
  border-bottom: 1px solid #1d1d21;
  vertical-align: middle;
}
.sc-table tbody tr {
  cursor: pointer;
}
.sc-table tbody tr:hover,
.sc-table tbody tr.on {
  background: #151518;
}
.sc-table td:nth-child(2) {
  white-space: nowrap;
}
.sc-check {
  width: 28px;
}
.sc-post {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 240px;
}
.sc-post > span:last-child {
  min-width: 0;
}
.sc-post b,
.sc-post small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 380px;
}
.sc-post small {
  color: var(--soft);
}
.sc-thumb {
  flex: none;
  width: 27px;
  height: 48px;
  border-radius: 5px;
  background: #1a1a1d;
  overflow: hidden;
}
.sc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sc-net::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--pc, #8f8f8f);
}
.sc-status {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--card-line);
  white-space: nowrap;
}
.sc-status.scheduled {
  color: #8fd3ff;
}
.sc-status.posted {
  color: var(--accent);
}
.sc-status.failed {
  color: #ff8a8a;
}
.sc-dim {
  color: #7a7a82;
}
.sc-trash-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #1d1d21;
}
.sc-trash-row > span {
  flex: 1;
  min-width: 0;
}
.sc-trash-row b,
.sc-trash-row small {
  display: block;
}
.sc-trash-row small {
  color: var(--soft);
}
.sc-queue {
  width: min(560px, calc(100vw - 32px));
  max-width: none; /* the app-wide dialog is 400 wide and right-aligns a form's rows */
}
.sc-queue .sc-q-add {
  justify-content: flex-start;
}
.sc-queue .sc-q-week {
  justify-content: normal;
}
.sc-queue input {
  margin: 0;
}
.sc-queue {
  background: #0b0b0b;
  border: 1px solid #262626;
  border-radius: 14px;
  color: var(--text);
  padding: 20px;
}
.sc-queue::backdrop {
  background: rgb(0 0 0 / 0.6);
}
.sc-queue h3 {
  margin: 0 0 4px;
}
.sc-q-add {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 14px 0;
}
.sc-q-add input[type='time'] {
  background: #111113;
  border: 1px solid var(--card-line);
  border-radius: 8px;
  color: var(--text);
  padding: 6px 8px;
  color-scheme: dark;
  width: auto;
}
.sc-q-days {
  display: flex;
  gap: 4px;
}
.sc-q-day input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sc-q-day span {
  display: inline-block;
  padding: 6px 8px;
  border: 1px solid var(--card-line);
  border-radius: 8px;
  font-size: 12px;
  color: var(--soft);
  cursor: pointer;
}
.sc-q-day input:checked + span {
  border-color: var(--accent);
  color: var(--text);
  background: #122010;
}
.sc-q-day input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.sc-q-week {
  display: grid;
  gap: 6px;
}
.sc-q-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-height: 32px;
}
.sc-q-row b {
  width: 40px;
  font-size: 13px;
}
.sc-q-row small {
  font-size: 12px;
}
.sc-q-chip {
  border: 1px solid var(--card-line);
  border-radius: 999px;
  background: #161618;
  color: var(--text);
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}
.sc-q-chip:hover {
  border-color: #ff8a8a;
}
.sc-q-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
@media (max-width: 1100px) {
  .dh-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dh-step:nth-child(2) {
    border-right: 0;
  }
  .dh-step:nth-child(-n + 2) {
    border-bottom: 1px solid var(--card-line);
  }
  .dh-step:nth-child(2)::after {
    display: none;
  }
  .dh-main,
  .dh-lower {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 720px) {
  .dh-bar {
    flex-wrap: wrap;
  }
  .dh-link {
    order: -1;
    flex-basis: 100%;
  }
  .dh-upload,
  .dh-opts {
    flex: 1;
  }
  .dh-upload,
  .dh-opts-btn {
    width: 100%;
    justify-content: center;
    height: 46px;
  }
  .dh-opts-panel {
    width: min(300px, calc(100vw - 32px));
  }
  .dh-clips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .dh-flow {
    grid-template-columns: minmax(0, 1fr);
  }
  .dh-step {
    border-right: 0;
    border-bottom: 1px solid var(--card-line);
  }
  .dh-step:last-child {
    border-bottom: 0;
  }
  .dh-step::after {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dh-opts-panel,
  .dh-step.live .dh-step-k::before {
    animation: none;
  }
}
/* CLAUDE 10-01: clip-slot templates (web/cliptemplates.js): quiet greys, the accent only on focus and selection */
.ct-gallery {
  margin-bottom: 8px;
}
.ct-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.ct-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-right: auto;
}
.ct-chip {
  background: #151517;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  color: var(--soft);
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}
.ct-chip:hover {
  color: var(--text);
}
.ct-chip.on {
  color: var(--text);
  background: #222226;
  border-color: #3a3a40;
}
.ct-select {
  background: #111113;
  border: 1px solid var(--card-line);
  border-radius: 8px;
  color: var(--text);
  padding: 6px 8px;
  font-size: 12px;
  width: auto;
  max-width: 100%;
}
.ct-chip:focus-visible,
.ct-select:focus-visible,
.ct-card:focus-visible,
.ct-del:focus-visible,
.ct-snd-btn:focus-visible,
.ct-snd-vol:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* CLAUDE 10-03: a masonry wall (templates come in 9:16, 16:9, 1:1 and 4:5) of real footage that plays on hover */
.ct-grid {
  columns: 200px;
  column-gap: 14px;
}
.ct-grid > * {
  break-inside: avoid;
  margin-bottom: 14px;
}
.ct-cell {
  position: relative;
}
.ct-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  color: var(--text);
  cursor: pointer;
}
.ct-thumb {
  position: relative;
  display: block;
  aspect-ratio: 9/16;
  background: #1b1b1e;
  margin-bottom: 8px;
  border-radius: 12px;
  overflow: hidden;
  outline: 1px solid var(--card-line);
  outline-offset: -1px;
  transition:
    transform 0.18s ease,
    outline-color 0.18s ease;
}
.ct-card:hover .ct-thumb {
  transform: translateY(-2px);
  outline-color: #4a4a52;
}
.ct-thumb img,
.ct-thumb canvas,
.ct-thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ct-thumb video {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.ct-thumb.playing video {
  opacity: 1;
}
.ct-thumb::after {
  /* a soft floor under the stats so they read on any footage */
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(to top, #000000b3, transparent);
  pointer-events: none;
}
.ct-stats {
  position: absolute;
  left: 9px;
  bottom: 8px;
  z-index: 1;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.ct-pro {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 1;
}
.pro-free .ct-pro[data-pro]::after {
  margin-left: 0;
}
.ct-mine {
  position: absolute;
  left: 8px;
  top: 8px;
  background: #000000aa;
  color: var(--text);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
}
.ct-card b {
  padding: 0 2px;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ct-card small {
  padding: 2px 2px 0;
  color: var(--soft);
  font-size: 11px;
}
.ct-del {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 0;
  background: #000000aa;
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
}
/* CLAUDE 10-03: the preview's sound control, top-left; the volume slider slides out on hover, focus or while on */
.ct-snd {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px;
  border-radius: 999px;
  background: #000000aa;
}
.ct-snd + .ct-card .ct-pro {
  left: auto;
  right: 8px;
}
.ct-snd-btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--soft);
  cursor: pointer;
}
.ct-snd-btn:hover,
.ct-snd.on .ct-snd-btn {
  color: #fff;
}
.ct-snd-vol {
  width: 0;
  margin: 0;
  opacity: 0;
  accent-color: var(--accent);
  cursor: pointer;
  transition:
    width 0.18s ease,
    opacity 0.18s ease,
    margin 0.18s ease;
}
.ct-snd:hover .ct-snd-vol,
.ct-snd:focus-within .ct-snd-vol,
.ct-snd.on .ct-snd-vol {
  width: 64px;
  margin-right: 8px;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .ct-snd-vol {
    transition: none;
  }
}
.ct-dialog {
  width: min(520px, calc(100vw - 32px));
}
.ct-dialog .ct-sub {
  color: var(--soft);
  font-size: 13px;
}
.ct-slots {
  list-style: none;
  padding: 0;
  margin: 14px 0;
  display: grid;
  gap: 8px;
  max-height: 50vh;
  overflow: auto;
}
.ct-slots li {
  display: grid;
  grid-template-columns: minmax(0, 9em) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.ct-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.ct-save {
  display: grid;
  gap: 10px;
}
@media (max-width: 520px) {
  .ct-grid {
    columns: 2;
    column-gap: 10px;
  }
  .ct-slots li {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* CLAUDE 10-02: what's working in your niche (trends.js): the Trends page, the dashboard card, the setup dialog */
.tr-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.tr-pick label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: #a1a1aa;
}
.tr-pick select {
  min-width: 200px;
  max-width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #232326;
  border-radius: 8px;
  background: #111113;
  color: var(--text);
}
.tr-sum,
.tr-note {
  margin: 0 0 14px;
  color: #a1a1aa;
  font-size: 13px;
  line-height: 1.55;
}
.tr-note {
  margin: 14px 0 0;
  font-size: 12px;
}
.tr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 12px;
}
.tr-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #232326;
  border-radius: 12px;
  background: #0d0d0e;
}
.tr-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.tr-card h3 {
  margin: 0;
  font-size: 16px;
}
.tr-kind {
  color: #a1a1aa;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tr-stat {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
}
.tr-tip {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #161616;
  font-size: 13px;
  line-height: 1.5;
}
.tr-tip b {
  display: block;
  margin-bottom: 2px;
  color: #a1a1aa;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tr-ex {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tr-ex li {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid #232326;
  font-size: 13px;
}
.tr-ex a {
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tr-ex a:hover,
.tr-ex a:focus-visible {
  text-decoration: underline;
}
.tr-ex span {
  color: #a1a1aa;
  font-size: 12px;
}
.tr-ex q {
  color: #bdbdbd;
  font-size: 12px;
  font-style: italic;
}
.tr-locked .tr-blur {
  display: grid;
  gap: 8px;
}
.tr-blur i {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #232326, #2e2e33);
  filter: blur(2px);
}
.tr-blur i:nth-child(2) {
  width: 80%;
}
.tr-blur i:nth-child(3) {
  width: 55%;
}
.tr-upgrade {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid #232326;
  border-radius: 12px;
  background: #111113;
}
.tr-upgrade p {
  flex: 1 1 280px;
  margin: 0;
  color: #bdbdbd;
  font-size: 13px;
  line-height: 1.55;
}
.tr-upgrade b {
  color: var(--text);
}
.tr-upgrade button {
  min-height: 40px;
  padding: 0 18px;
}
.tr-mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px;
}
.tr-mini p {
  margin: 4px 0 8px;
  font-size: 13px;
  line-height: 1.5;
}
.tr-mini .tr-tip {
  margin: 0;
}
.setup-trends {
  font-size: 12px;
}
.dh-trends .dh-head .text-button {
  white-space: nowrap;
}
.tr-dialog {
  width: min(960px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #0b0b0b;
  border-color: #262626;
}
.tr-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.tr-dialog-head h2 {
  margin: 0;
  font-size: 20px;
}
.tr-close {
  min-width: 40px;
  min-height: 40px;
  border: 1px solid #262626;
  border-radius: 8px;
  background: #161616;
  color: var(--text);
}
@media (max-width: 520px) {
  .tr-pick label,
  .tr-pick select {
    flex: 1 1 100%;
    width: 100%;
  }
  .tr-dialog {
    padding: 16px;
  }
}

/* CLAUDE 10-03: Clip options' caption style as small previews (app-captions.js renderClipLooks), on the landing and
   the dashboard; and the small "?" that explains an option (tip.js shows the text on hover / keyboard focus) */
.look-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 6px;
}
.look-strip .look {
  display: grid;
  grid-template-rows: 38px auto;
  align-items: center;
  justify-items: center;
  gap: 4px;
  min-height: 0;
  padding: 6px 4px 7px;
  border: 1px solid #26262a;
  border-radius: 10px;
  background: #0d0d0f;
  color: #9a9aa2;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    border-color 120ms ease,
    background-color 120ms ease;
}
.look-strip .look:hover {
  border-color: #3a3a40;
}
.look-strip .look[aria-pressed='true'] {
  border-color: #53fc18;
  background: #111611;
}
.look-strip .look .sample {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1.1;
}
.look-strip .look .sample-none {
  color: #77777f;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.look-strip .look-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 550;
}
.look-strip .look[aria-pressed='true'] .look-name {
  color: #f5f5f7;
}
.qhelp {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8e8e96;
  cursor: help;
}
/* CLAUDE 10-03: a drawn icon (sprite #i-help) instead of a "?" glyph: the old `font: 650 11px/1 inherit` was invalid,
   so the glyph fell back to the default font and sat off-centre */
.qhelp svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.qhelp:hover,
.qhelp:focus-visible {
  color: #f5f5f7;
}
.qhelp:not(:disabled):active {
  transform: none; /* editor.css's pressed nudge */
}
.dh-opts-panel .looks {
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: var(--soft);
}
.dh-opts-panel .dh-check label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
/* CLAUDE 10-05: the networks' logos beside their connectors. The SVGs (web/net-logos, Simple Icons, CC0) are used as
   masks and painted in each brand's colour; marks that are black on light backgrounds use their white version here */
.ac-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ac-card .db-card-head {
  flex-wrap: nowrap; /* the "N connected" pill stays beside the name */
}
.ac-card .db-pill {
  flex: none;
  white-space: nowrap;
}
.net-logo {
  flex: none;
  width: 20px;
  height: 20px;
  background: var(--nl, #fff);
  -webkit-mask: var(--src) center / contain no-repeat;
  mask: var(--src) center / contain no-repeat;
}
.ac-name .net-logo + .net-logo {
  margin-left: -2px;
}
.nl-facebook {
  --src: url('/net-logos/facebook.svg');
  --nl: #0866ff;
}
.nl-instagram {
  --src: url('/net-logos/instagram.svg');
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.nl-tiktok {
  --src: url('/net-logos/tiktok.svg');
  filter: drop-shadow(-1px -1px 0 #25f4ee) drop-shadow(1px 1px 0 #fe2c55);
}
.nl-x {
  --src: url('/net-logos/x.svg');
}
.nl-youtube {
  --src: url('/net-logos/youtube.svg');
  --nl: #ff0033;
}
.nl-threads {
  --src: url('/net-logos/threads.svg');
}
.nl-bluesky {
  --src: url('/net-logos/bluesky.svg');
  --nl: #1185fe;
}
