@font-face {
  font-family: Inter;
  src: url("/static/workspace-inter.woff2");
  /* The file is variable (fvar wght 100-900); declare the range so 500 and
     600 use the real weights instead of a synthesized one. */
  font-weight: 100 900;
}
@font-face {
  font-family: Jakarta;
  src: url("/static/workspace-jakarta.woff2");
  font-weight: 100 900;
}
* {
  box-sizing: border-box;
}
#selection-topic[hidden] {
  display: none;
}
body {
  margin: 0;
  background: #faf7f0;
  color: #20252e;
  font:
    14px/1.55 Inter,
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #90b8ff;
}
button,
a,
summary {
  cursor: pointer;
}
a {
  color: #347dff;
  text-decoration: none;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid #e3e3df;
  border-radius: 9px;
  background: #fff;
  color: #303743;
  padding: 9px 15px;
  font-weight: 600;
}
button:hover,
.button:hover {
  background: #f3f6fc;
}
button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
.primary {
  background: #347dff;
  color: white;
  border-color: #347dff;
  box-shadow: 0 4px 12px #347dff1c;
}
.primary:hover {
  background: #2568dc;
}
.danger {
  color: #b84242;
}
.top {
  height: 82px;
  background: #fff;
  border-bottom: 1px solid #e9e7e1;
  padding: 0 5%;
  display: flex;
  align-items: center;
  gap: 42px;
}
.logo {
  color: #20252e;
  display: flex;
  align-items: center;
  gap: 9px;
  font:
    800 20px Jakarta,
    Arial;
}
.logo > span:last-child {
  font-weight: 500;
}
.logo-mark {
  background: #347dff;
  color: #fff;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 25px;
}
.top nav {
  display: flex;
  align-self: stretch;
  gap: 25px;
  flex: 1;
  overflow: auto;
}
.top nav a {
  white-space: nowrap;
  display: flex;
  align-items: center;
  color: #77808b;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  padding: 3px 0 0;
}
.top nav a.active {
  color: #347dff;
  border-color: #347dff;
}
.account-menu {
  position: relative;
}
.account-menu summary {
  white-space: nowrap;
}
.menu {
  position: absolute;
  z-index: 20;
  right: 0;
  top: calc(100% + 12px);
  width: 245px;
  padding: 8px;
  background: white;
  border: 1px solid #e3e3df;
  border-radius: 13px;
  box-shadow: 0 14px 44px #28364a20;
  max-height: 370px;
  overflow: auto;
}
.menu button {
  width: 100%;
  border: 0;
  justify-content: flex-start;
  text-align: left;
}
.menu button[aria-selected="true"] {
  background: #edf4ff;
  color: #347dff;
}
/* A community member's account menu (workspace.js): the self-serve "Add a page" link only, no
   old "Add a page" screen and no "Change password". `hidden` alone does not hide these buttons:
   `button { display: inline-flex }` above outranks it. */
.account-menu.member-menu #add-own-page,
.account-menu.member-menu #change-password {
  display: none;
}
/* ONE add-a-page entry for everyone (pre-launch review 11-21): the self-serve form's link, when it is
   drawn, replaces the old screen's button, from the first paint (CSS alone: workspace.js unchanged), and the
   button's `hidden` (workspace.js) now really hides it. */
.account-menu .menu:has(#add-your-page) #add-own-page,
.account-menu #add-own-page[hidden] {
  display: none;
}
.menu small {
  display: block;
  color: #818893;
  font-weight: 400;
}
.picker {
  position: relative;
  display: inline-block;
}
.picker .menu {
  left: 0;
  right: auto;
  min-width: 280px;
}
.picker-trigger {
  max-width: 290px;
}
.picker-trigger .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avatar {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #edf3ff;
  color: #347dff;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.check {
  margin-left: auto;
}
main:not(.auth) {
  max-width: 1152px;
  margin: 0 auto;
  padding: 42px 24px 90px;
}
h1,
h2,
h3 {
  font-family: Jakarta, Arial;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
/* WORD GAPS IN JAKARTA (pre-launch review 2026-11-21): Plus Jakarta Sans's own space is 0.17-0.18em
   (Inter's 0.25-0.28em); with the headings' negative tracking a gap measured 2.7 px at 17 px and
   headings read "Yourbrand", "SURGEON'S6TRUTHSON AGING". Every Jakarta text gets 0.09em more
   between words (letters untouched): ~0.25em, Inter's own gap. Headings only: a word-spacing is
   inherited by smaller Inter text inside (the Learning Log's .ll-verdict line read too wide). */
h1,
h2,
h3 {
  word-spacing: 0.09em;
}
h1 {
  font-size: 35px;
  margin: 0 0 12px;
  font-weight: 800;
}
h2 {
  font-size: 20px;
  margin: 0 0 15px;
}
h3 {
  font-size: 17px;
  margin: 0 0 10px;
}
p {
  margin: 0 0 16px;
}
.muted,
small {
  color: #858b94;
}
.eyebrow {
  text-transform: uppercase;
  color: #92959c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.toolbar,
.row,
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.toolbar {
  margin-bottom: 24px;
}
.toolbar label {
  margin: 0;
}
.toolbar select {
  width: auto;
  max-width: 230px;
}
.card {
  background: white;
  border: 1px solid #e7e5df;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 22px;
}
.stack {
  display: grid;
  gap: 17px;
}
.stack p {
  margin: 0;
}
.narrow {
  max-width: 780px;
  margin: auto;
}
.tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  border-bottom: 1px solid #e6e3dc;
  margin: 25px 0;
  padding-bottom: 13px;
}
.tabs a {
  padding: 8px 15px;
  white-space: nowrap;
  color: #777e88;
  border-radius: 8px;
}
.tabs a.active {
  color: #347dff;
  background: #eaf1ff;
  font-weight: 600;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.clip-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0;
}
.clip-body {
  padding: 19px;
  flex: 1;
}
.clip-body p {
  font-size: 12px;
}
.clip-media {
  background: #eae8e2;
  aspect-ratio: 16/10;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.clip-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #202124;
}
.clip-media .candidate-mark {
  font-size: 25px;
  color: #a3a7ae;
}
.clip-card .actions {
  padding: 0 19px 19px;
}
.clip-card h3 {
  line-height: 1.4;
}
.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 6px;
  background: #edf3ff;
  color: #4071c2;
  font-size: 11px;
  font-weight: 600;
}
.badge.approved {
  background: #e9f6ef;
  color: #308458;
}
.badge.rejected,
.error {
  background: #fff0ee;
  color: #a2423e;
}
.badge.making {
  background: #fff5df;
  color: #947029;
}
.empty {
  text-align: center;
  padding: 55px 25px;
}
.empty h2 {
  margin-bottom: 12px;
}
.empty p {
  max-width: 430px;
  margin: 0 auto 22px;
}
.banner {
  background: #edf3ff;
  border: 1px solid #dbe6ff;
  padding: 15px 20px;
  border-radius: 11px;
  margin-bottom: 22px;
}
.warning {
  background: #fff8e8;
  border-color: #f2e3bf;
  color: #846426;
}
#view-banner:empty {
  display: none;
}
#view-banner > .banner {
  border-radius: 0;
  margin: 0;
  padding: 12px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
label {
  display: grid;
  gap: 7px;
  font-weight: 600;
  font-size: 12px;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #dedfe1;
  border-radius: 8px;
  background: white;
  color: #303744;
  min-height: 43px;
}
textarea {
  resize: vertical;
  min-height: 95px;
  line-height: 1.6;
}
input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: #347dff;
}
input[type="color"] {
  width: 80px;
  padding: 4px;
}
.checkbox {
  display: flex;
  gap: 9px;
  align-items: center;
  font-weight: 500;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
summary {
  font-weight: 600;
  list-style-position: inside;
}
details[open] > summary {
  margin-bottom: 18px;
}
.source-row {
  padding: 20px;
  background: #fcfcfb;
  border: 1px solid #e8e7e3;
  border-radius: 11px;
  margin-bottom: 15px;
}
.source-row .row {
  justify-content: space-between;
  margin-bottom: 14px;
}
.review {
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  gap: 32px;
}
.player {
  width: 100%;
  aspect-ratio: 9/16;
  background: #16191d;
  border-radius: 16px;
  max-height: 650px;
}
.review textarea {
  min-height: 180px;
}
.review .actions {
  margin-top: 18px;
}
#cleanup-editor [hidden] {
  display: none;
}
.timing {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}
.timing input {
  font-variant-numeric: tabular-nums;
}
.table-wrap {
  overflow: auto;
}
.users {
  width: 100%;
  border-collapse: collapse;
}
.users th,
.users td {
  text-align: left;
  padding: 16px 12px;
  border-bottom: 1px solid #eeece6;
  vertical-align: top;
}
.users th {
  color: #8b9099;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.users td a {
  display: block;
}
.search {
  max-width: 350px;
}
.auth {
  max-width: 480px;
  margin: 65px auto;
  padding: 20px;
}
.auth > .logo {
  margin-bottom: 48px;
}
.auth h1 {
  font-size: 38px;
}
.auth .card {
  margin-top: 28px;
}
.form-error {
  color: #b54242;
  white-space: pre-wrap;
}
.form-error:empty {
  display: none;
}
/* A message beside one field (the clip-idea count), not the form's own
   .form-error: runForm writes the form's errors into the first .form-error. */
.field-error {
  display: block;
  color: #b54242;
}
.field-error:empty {
  display: none;
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  max-width: calc(100% - 32px);
  background: #253348;
  color: #fff;
  border-radius: 10px;
  padding: 14px 20px;
  box-shadow: 0 8px 25px #0002;
}
#notice:empty {
  display: none;
}
dialog {
  border: 1px solid #e1e3e7;
  border-radius: 17px;
  padding: 30px;
  width: min(520px, calc(100% - 32px));
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop {
  background: #13203c66;
}
.dialog-close {
  float: right;
  border: 0;
  font-size: 25px;
  min-height: 30px;
  padding: 0 7px;
}
.skip {
  position: absolute;
  top: -60px;
}
.skip:focus {
  top: 0;
  background: white;
  padding: 15px;
  z-index: 200;
}
.loading {
  text-align: center;
  padding: 70px;
}
.nowrap {
  white-space: nowrap;
}
.history {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.custom-dates {
  padding: 12px;
  display: grid;
  gap: 12px;
}
.spend-today {
  display: block;
  margin-top: 12px;
}
.status-line {
  white-space: pre-wrap;
}
.footnote {
  font-size: 12px;
  color: #858b94;
  margin-top: 16px;
}
@media (max-width: 800px) {
  .top {
    padding: 0 20px;
    gap: 24px;
    height: 72px;
  }
  .top nav {
    gap: 18px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .review {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 20px;
  }
  .heading {
    align-items: flex-start;
  }
  .three {
    grid-template-columns: 1fr;
  }
  .users td {
    min-width: 125px;
  }
}
@media (max-width: 600px) {
  .top {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    padding: 18px 20px 0;
    gap: 12px;
  }
  .top > .logo {
    flex: 1;
  }
  .top nav {
    order: 3;
    flex-basis: 100%;
    height: 47px;
    gap: 23px;
  }
  .account-menu {
    font-size: 12px;
  }
  main:not(.auth) {
    padding: 30px 20px 65px;
  }
  h1 {
    font-size: 29px;
  }
  .heading {
    display: block;
    margin-bottom: 23px;
  }
  .heading > .actions {
    margin-top: 18px;
  }
  .grid,
  .two,
  .review {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 20px;
  }
  .clip-card {
    padding: 0;
  }
  .review > .player-column {
    max-width: 340px;
    width: 100%;
    margin: auto;
  }
  .toolbar {
    gap: 9px;
  }
  .picker-trigger {
    max-width: calc(100vw - 40px);
  }
  .picker .menu {
    min-width: 270px;
    max-width: calc(100vw - 40px);
  }
  input,
  textarea,
  select {
    font-size: 16px;
  }
  button,
  .button {
    min-height: 44px;
  }
  .auth {
    margin: 25px auto;
  }
  .auth h1 {
    font-size: 32px;
  }
  #view-banner > .banner {
    display: block;
  }
  .users {
    font-size: 12px;
  }
  .users th,
  .users td {
    padding: 12px 8px;
  }
  .users .button {
    font-size: 12px;
  }
  .tabs {
    margin-top: 20px;
  }
  .review textarea {
    min-height: 200px;
  }
}
/* Approved Carousel-family composition: calm header, portrait list rows. */
.top {
  background: #faf7f0;
  height: 74px;
  padding: 0 27px;
  gap: 26px;
}
.logo {
  font-size: 14px;
  gap: 10px;
}
.logo-mark {
  width: 33px;
  height: 33px;
  font-size: 13px;
  font-weight: 500;
}
.top nav {
  gap: 5px;
  align-items: center;
}
.top nav a {
  align-self: auto;
  padding: 9px 14px;
  border: 0;
  border-radius: 24px;
  font-size: 13px;
}
.top nav a.active {
  background: #e8effd;
  color: #347dff;
}
.heading {
  border-bottom: 1px solid #e8e3da;
  padding-bottom: 30px;
  align-items: flex-end;
}
.eyebrow {
  letter-spacing: 0.2em;
  color: #666;
}
h1 {
  font-size: 40px;
  letter-spacing: -1.5px;
}
main:not(.auth) {
  max-width: 1120px;
  padding: 48px 30px 50px;
}
.grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.clip-top {
  display: flex;
  gap: 21px;
  align-items: flex-start;
  padding: 20px;
}
.clip-media {
  width: 91px;
  height: 145px;
  aspect-ratio: auto;
  flex: none;
  border-radius: 7px;
}
.clip-body {
  padding: 0;
  min-width: 0;
}
.clip-card .actions {
  border-top: 1px solid #efede9;
  padding: 13px 20px;
}
.clip-card h3 {
  font-size: 17px;
  margin-top: 11px !important;
}
.clip-card .badge {
  border-radius: 20px;
}
.badge.ready {
  color: #ab6306;
  background: #fff9e9;
  border: 1px solid #f3dc9f;
}
.tabs {
  gap: 25px;
  padding-bottom: 0;
}
.tabs a {
  padding: 0 0 13px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  font-size: 13px;
}
.tabs a.active {
  background: none;
  border-color: #347dff;
  color: #20252e;
}
.clip-media video {
  object-fit: cover;
}
.narrow {
  max-width: 1060px;
}
.card .row .avatar {
  width: 38px;
  height: 38px;
}
@media (max-width: 600px) {
  .top {
    height: auto;
    padding: 18px 20px 0;
  }
  .top nav a {
    padding: 8px 10px;
  }
  .top nav {
    gap: 3px;
  }
  main:not(.auth) {
    padding: 30px 20px 65px;
  }
  h1 {
    font-size: 30px;
  }
  .clip-top {
    padding: 16px;
    gap: 14px;
  }
  .clip-media {
    width: 75px;
    height: 120px;
  }
  .clip-body h3 {
    font-size: 15px;
  }
  .clip-body small {
    font-size: 11px;
  }
  .tabs {
    gap: 20px;
  }
  .heading {
    align-items: initial;
  }
  .clip-card .actions {
    padding: 13px 16px;
  }
}

/* Shared queue composition follows the approved screenshot hierarchy. */
.heading > .actions {
  flex-wrap: wrap;
}
.queue-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 18px 0 8px;
}
.queue-filters > .muted {
  font-size: 12px;
}
.queue-filters .toolbar {
  margin: 0;
  align-items: center;
}
.queue-filters .sr-label {
  font-size: 0;
  gap: 0;
}
.queue-filters select {
  font-size: 12px;
}
.status-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 20px;
  background: #fff0d7;
  color: #946019;
  font-size: 10px;
}
.footnote.compact {
  margin: 0 0 18px;
  font-size: 11px;
}
@media (max-width: 750px) {
  .heading > .actions {
    margin-top: 18px;
  }
  .heading .picker {
    max-width: 100%;
  }
  .queue-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .queue-filters .toolbar {
    flex-wrap: wrap;
  }
  .users,
  .users tbody,
  .users tr,
  .users td {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .users thead {
    display: none;
  }
  .users tr {
    padding: 14px 0;
    border-bottom: 1px solid #e5e0d8;
  }
  .users td {
    padding: 6px 0 !important;
    border: 0 !important;
  }
  .users td::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    color: #6b6b6b;
    margin-bottom: 4px;
  }
  .users td[data-label="Actions"] button {
    width: 100%;
  }
  .table-wrap {
    overflow: visible;
  }
  .top {
    height: auto;
    flex-wrap: wrap;
  }
  .top nav {
    order: 3;
    width: 100%;
    flex-basis: 100%;
    flex-wrap: wrap;
    overflow: visible;
    gap: 8px;
  }
  .top nav a {
    min-height: 44px;
    padding: 8px 10px;
  }
  .account-menu {
    margin-left: auto;
  }
}

.users td[data-label="Pages"] small {
  display: block;
}
.journey {
  display: flex;
  list-style: none;
  gap: 24px;
  padding: 16px 0;
  flex-wrap: wrap;
  color: #666;
  font-size: 13px;
}
.journey strong {
  color: #347dff;
  margin-right: 6px;
}
.page-summary h2,
.page-summary p {
  margin: 4px 0;
}
@media (max-width: 750px) {
  .top {
    min-height: 82px;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 12px;
  }
  .top nav {
    align-self: auto;
    height: auto;
  }
  .top nav a {
    height: auto;
  }
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

/* One visual language for source moments, finished reels and rejected clips. */
.clip-top {
  gap: 24px;
  padding: 22px;
}
.clip-card {
  overflow: visible;
}
.clip-card h3 {
  font-size: 18px;
  font-weight: 750;
  line-height: 1.4;
}
.clip-card h3,
.source-title,
.recent-source h3,
.source-group-heading h2 {
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.clip-body .source-title {
  color: #78818d;
  font-size: 13px;
  margin: 7px 0 12px;
  line-height: 1.5;
}
.clip-body .moment-timing {
  font-size: 11px;
  color: #718095;
  margin: 10px 0 0;
  font-variant-numeric: tabular-nums;
}
.clip-body .rejection-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: #8b6260;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
button.clip-media {
  padding: 0;
  border: 0;
  width: 100px;
  height: 166px;
  background: #181b20;
  border-radius: 10px;
}
.clip-media video {
  object-fit: contain;
  pointer-events: none;
}
.clip-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.clip-media.source-thumbnail {
  width: 176px;
  height: 110px;
}
.media-play {
  position: absolute;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #172033aa;
  font-size: 12px;
  pointer-events: none;
}
.clip-media:not(.source-thumbnail) .media-play {
  bottom: 8px;
  right: 8px;
}
.clip-card .actions {
  padding: 14px 22px;
  border-radius: 0 0 15px 15px;
  background: #fff;
}
.clip-card .actions button {
  font-size: 12px;
  min-height: 38px;
}
.clip-card .actions .checkbox {
  margin-left: auto;
}
.card-more {
  margin-left: auto;
  position: relative;
}
.card-more summary {
  padding: 9px 12px;
  list-style: none;
}
.card-more[open] > summary {
  margin-bottom: 0;
}
.card-more button {
  position: absolute;
  z-index: 10;
  right: 0;
  top: 100%;
  white-space: nowrap;
  box-shadow: 0 8px 25px #25334820;
}
.workflow-note {
  border-left: 3px solid #347dff;
  padding: 2px 0 2px 16px;
  margin: 24px 0;
}
.workflow-note p {
  margin: 5px 0 0;
  color: #78818d;
  font-size: 13px;
}
.source-group {
  margin: 30px 0;
}
.source-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0 18px;
}
.source-group-heading > div {
  min-width: 0;
}
.source-group-heading h2 {
  font-size: 17px;
  line-height: 1.45;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.source-group-heading p {
  font-size: 12px;
  margin: 0;
}
.source-group-heading > button {
  flex-shrink: 0;
  font-size: 12px;
}
.recent-sources {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}
.recent-source {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #efede9;
}
.recent-source:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.recent-source-image {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16/9;
  background: #eae8e2;
  overflow: hidden;
  border-radius: 11px;
}
.recent-source-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recent-source h3 {
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.recent-source p {
  font-size: 12px;
  margin-bottom: 12px;
}
.recent-source .actions {
  gap: 8px;
}
.recent-source .button {
  font-size: 12px;
}
.source-preview {
  border: 1px solid #e7e5df;
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
}
.source-preview iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  background: #181b20;
}
.source-preview-note {
  padding: 18px;
  font-size: 12px;
}
.source-preview-note p {
  color: #78818d;
  margin: 6px 0 12px;
}
/* A reel being made again: the player's place, its picture (or a plain
   panel) under one sentence. */
.remaking-panel {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 9/16;
  max-height: min(650px, 76vh);
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #16191d;
}
.remaking-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.remaking-panel p {
  position: relative;
  margin: 0;
  padding: 0 28px;
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  text-shadow: 0 1px 3px #000a;
}
@media (max-width: 600px) {
  .remaking-panel {
    max-height: 48vh;
  }
}
.review .heading,
.review h2 {
  overflow-wrap: anywhere;
}
.review h2 {
  font-size: 21px;
  line-height: 1.4;
}
.review .verdict-actions {
  margin-top: 0;
}
.review textarea {
  min-height: 120px;
}
.review .player {
  max-height: min(650px, 76vh);
  object-fit: contain;
}
.reel-hover-preview {
  position: fixed;
  pointer-events: none;
  z-index: 80;
  background: #15191e;
  border-radius: 15px;
  box-shadow: 0 20px 70px #15253f55;
  overflow: hidden;
}
.reel-hover-preview video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.reel-hover-preview span {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  text-align: center;
  color: white;
  background: #172033aa;
  border-radius: 7px;
  padding: 6px;
  font-size: 11px;
}
@media (max-width: 600px) {
  .clip-top {
    padding: 16px;
    gap: 14px;
  }
  button.clip-media {
    width: 76px;
    height: 132px;
  }
  .clip-media.source-thumbnail {
    width: 90px;
    height: 70px;
  }
  .clip-card h3 {
    font-size: 15px;
    -webkit-line-clamp: 3;
  }
  .clip-body .source-title {
    font-size: 11px;
  }
  .clip-card .actions {
    padding: 12px 16px;
    gap: 8px;
  }
  .clip-card .actions button {
    min-height: 44px;
  }
  .source-group-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .source-group-heading > button {
    max-width: 105px;
  }
  .recent-source {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .recent-source .actions {
    flex-wrap: wrap;
  }
  .source-group-heading h2 {
    font-size: 15px;
  }
  .review {
    display: flex;
    flex-direction: column;
  }
  .review .player {
    max-height: 48vh;
  }
}
.segment-buttons {
  margin: 12px 0;
  gap: 8px;
}
.segment-buttons button {
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  padding: 7px 10px;
}
.segment-buttons button[aria-pressed="true"] {
  background: #edf3ff;
  border-color: #347dff;
  color: #347dff;
}
.segment-buttons small {
  font-size: 9px;
}
.reel-inline-player {
  height: auto;
  aspect-ratio: 9 / 16;
}
.clip-card .reel-inline-player {
  width: 180px;
  min-width: 180px;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  background: #202124;
}
.reel-inline-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: auto;
}
.reel-play-button {
  position: absolute;
  inset: auto 12px 50%;
  background: #347dff;
  color: white;
  min-height: 44px;
}
.reel-inline-player [data-player-status] {
  position: absolute;
  bottom: 48px;
  left: 8px;
  right: 8px;
  font-size: 12px;
  color: white;
  background: #202124d9;
  padding: 6px;
  pointer-events: none;
}
.reel-inline-player [data-player-status]:empty {
  display: none;
}
.reel-inline-player [data-player-retry] {
  position: absolute;
  bottom: 90px;
  left: 8px;
  right: 8px;
  min-height: 44px;
}
.reel-inline-player [hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .clip-card .clip-top:has(> .reel-inline-player) {
    flex-direction: column;
    align-items: stretch;
  }
  .clip-card .clip-top:has(> .reel-inline-player) .clip-body {
    width: 100%;
    overflow-wrap: anywhere;
  }
  .clip-card .reel-inline-player {
    width: 100%;
    max-width: 280px;
    min-width: 0;
    margin: auto;
  }
}
.reel-feedback-dialog {
  width: min(1100px, 96vw);
  max-height: 92dvh;
  padding: 0;
  border: 1px solid #e5e3df;
  border-radius: 18px;
  background: #fff;
}
.reel-feedback-dialog::backdrop {
  background: #20212488;
}
.feedback-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-bottom: 1px solid #e5e3df;
}
.feedback-header p {
  font-size: 13px;
  color: #7d8490;
}
.feedback-header button {
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
}
.feedback-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  max-height: 72dvh;
  overflow: auto;
}
.feedback-player-rail {
  padding: 20px;
  background: #faf8f4;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 72dvh;
  overflow: auto;
}
.feedback-player-rail .reel-inline-player {
  width: min(100%, 360px, calc(40.5dvh - 22.5px));
  aspect-ratio: 9/16;
  max-width: 360px;
  align-self: center;
}
/* Tall enough screens: the rail also holds the source link and "Previous
   feedback", so the player leaves room for them and the whole rail fits
   without a hidden scroll. Short screens keep the bigger player. */
@media (min-height: 600px) {
  .feedback-player-rail .reel-inline-player {
    width: min(100%, 360px, calc(40.5dvh - 62px));
  }
}
/* In the two player dialogs (Send feedback, Watch reel) the play button,
   the status line and Retry share one column that ends above the video's
   own control bar, so none of them can sit on another or on the controls. */
:is(.reel-feedback-dialog, .reel-playback-dialog) .reel-inline-player {
  grid-template-rows: minmax(0, 1fr) auto auto 64px;
  grid-template-columns: minmax(0, 1fr);
  place-items: stretch;
}
:is(.reel-feedback-dialog, .reel-playback-dialog) .reel-inline-player video {
  grid-area: 1 / 1 / -1 / -1;
}
:is(.reel-feedback-dialog, .reel-playback-dialog) .reel-inline-player [data-reel-play] {
  position: relative; /* in the column, and above the video */
  inset: auto;
  z-index: 1;
  grid-area: 1 / 1;
  align-self: center;
  margin: 0 12px;
}
:is(.reel-feedback-dialog, .reel-playback-dialog) .reel-inline-player [data-player-status] {
  position: relative; /* in the column, and above the video */
  inset: auto;
  z-index: 1;
  grid-area: 2 / 1;
  margin: 0 8px 8px;
}
:is(.reel-feedback-dialog, .reel-playback-dialog) .reel-inline-player [data-player-retry] {
  position: relative; /* in the column, and above the video */
  inset: auto;
  z-index: 1;
  grid-area: 3 / 1;
  margin: 0 8px;
}
.feedback-document {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 72dvh;
  overflow: auto;
}
.feedback-document textarea {
  width: 100%;
  min-height: 100px;
  font-size: 16px;
}
.feedback-document footer {
  display: flex;
  gap: 12px;
}
.feedback-document footer button {
  min-height: 44px;
}
.feedback-screenshot {
  padding: 12px;
  margin: 12px 0;
  border: 1px solid #e5e3df;
  border-radius: 12px;
  background: #faf8f4;
}
.feedback-screenshot img {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
}
.feedback-document.drag-over {
  outline: 2px dashed #347dff;
  outline-offset: -5px;
  background: #347dff0a;
}
[data-feedback-error] {
  color: #bb3232;
}
[data-draft-status],
[data-upload-status] {
  font-size: 12px;
  color: #7d8490;
}
@media (max-width: 600px) {
  .feedback-layout {
    display: block;
  }
  .reel-feedback-dialog {
    width: 100vw;
    max-height: 96dvh;
  }
  .feedback-player-rail {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .feedback-document {
    max-height: none;
    overflow: visible;
  }
  .feedback-player-rail .reel-inline-player {
    width: min(100%, 320px, 34dvh);
  }
}
.feedback-timestamp {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: -20px;
  background: #fff;
  z-index: 1;
  padding-bottom: 12px;
}
.feedback-timestamp input {
  width: 100%;
  font-size: 16px;
  min-height: 44px;
}
.feedback-timestamp button {
  min-height: 44px;
}
.feedback-timestamp small {
  color: #7d8490;
}
/* Phones: the note box and Send sit in the first screen. reel-feedback.js
   puts the dialog in reading order on phones (video; note, its hint, the
   timestamp tools, Send; then the source link and previous feedback), so the
   keyboard order is the order on screen. Here the video's height is capped by
   the screen height, Send stays pinned to the bottom of the dialog, and the
   player's status line and Retry drop below the picture, so on no browser can
   they sit on the video's own control bar. The note column keeps its box, so
   the whole of it still takes a dropped screenshot. Desktop and tablet keep
   the two-column layout above untouched. */
@media (max-width: 600px) {
  .reel-feedback-dialog[open] {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .reel-feedback-dialog .feedback-header {
    padding: 10px 16px;
    align-items: center;
  }
  .reel-feedback-dialog .feedback-header h2 {
    font-size: 20px;
    margin: 0;
  }
  .reel-feedback-dialog .feedback-header p {
    display: none;
  }
  .reel-feedback-dialog .feedback-layout {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    /* A field focused or scrolled to is never left under the pinned Send
       bar (64 px tall). */
    scroll-padding-bottom: 76px;
  }
  .reel-feedback-dialog .feedback-player-rail {
    padding: 12px 16px 0;
    background: none;
  }
  .reel-feedback-dialog .feedback-document {
    padding: 10px 16px 0;
    gap: 10px;
  }
  .feedback-player-rail > .reel-inline-player {
    /* Height-capped so the note and Send fit; never below 112 px wide
       (199 px tall), so a short screen (keyboard open) keeps a visible,
       playable video instead of collapsing it. */
    --feedback-video-width: max(
      112px,
      min(100%, 320px, calc((96dvh - 356px) * 9 / 16))
    );
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
    grid-template-rows: auto auto auto;
    background: none;
    overflow: visible;
  }
  .feedback-player-rail > .reel-inline-player video {
    grid-area: 1 / 1;
    justify-self: center;
    width: var(--feedback-video-width);
    height: auto;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
  }
  .feedback-player-rail > .reel-inline-player [data-reel-play] {
    grid-area: 1 / 1;
    justify-self: center;
    width: calc(var(--feedback-video-width) - 16px);
    margin: 0;
    padding-inline: 4px;
  }
  .feedback-player-rail > .reel-inline-player [data-player-status] {
    grid-area: 2 / 1;
    margin: 6px 0 0;
    padding: 0;
    background: none;
    color: #5f6670;
    font-size: 13px;
    text-align: center;
  }
  .feedback-player-rail > .reel-inline-player [data-player-retry] {
    grid-area: 3 / 1;
    margin: 6px 0 0;
  }
  .feedback-document > label[for="reel-overall-note"] {
    margin-bottom: -4px;
  }
  .feedback-document > #reel-overall-note {
    min-height: 88px;
    height: 88px;
  }
  .feedback-document > p:empty {
    display: none;
  }
  .feedback-document > .feedback-timestamp {
    position: static;
    padding-bottom: 0;
  }
  .feedback-document > footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: #fff;
    padding: 8px 0 12px;
  }
  /* A stale draft's "Use draft for this video version" sits under the
     note; Send is disabled until it is pressed, so the bar lets go of the
     bottom until then instead of covering the button. */
  .feedback-document:has(> [data-draft-confirm]) > footer {
    position: static;
  }
  .feedback-document > details {
    padding-bottom: 12px;
  }
}
.reel-playback-dialog {
  padding: 12px;
  border: 0;
  border-radius: 18px;
  max-width: 96vw;
  background: #fff;
}
.reel-playback-dialog::backdrop {
  background: #202124bb;
}
.reel-playback-dialog header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.reel-playback-dialog h2 {
  font-size: 18px;
  margin: 0;
}
.reel-playback-dialog header button {
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
}
.reel-playback-dialog .reel-inline-player {
  width: min(40.5dvh, 440px, calc(96vw - 24px));
  height: auto;
  aspect-ratio: 9/16;
  border-radius: 12px;
  overflow: hidden;
}
/* Look pickers: a real podcast frame per approved look (Page settings and Edit clip). */
.look-picker {
  display: grid;
  gap: 12px;
}
.look-picker legend {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}
.look-picker h3 {
  margin: 6px 0 0;
  font-size: 13px;
}
.look-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 12px;
}
.look-picker.compact .look-grid {
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 8px;
}
.look-card {
  position: relative;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 6px;
  border: 2px solid #e7e5df;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  font-size: 12px;
}
.look-card input {
  position: absolute;
  top: 12px;
  left: 12px;
}
.look-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 347 / 617;
  object-fit: cover;
  border-radius: 8px;
  background: #282b30;
}
.look-card:has(input:checked) {
  border-color: #347dff;
  box-shadow: 0 0 0 2px #347dff33;
}
.look-card:has(input:focus-visible) {
  outline: 2px solid #347dff;
  outline-offset: 2px;
}
.look-card.unavailable {
  cursor: not-allowed;
  opacity: 0.55;
}
.look-card small {
  font-weight: 500;
  color: #6b7079;
}
.look-picker.compact .look-none {
  grid-column: 1 / -1;
}
.look-none {
  min-height: 70px;
  padding-left: 36px;
  align-content: center;
}
/* The default look for new pages, and the colours each look draws. */
.look-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #347dff;
  color: white;
  font-size: 11px;
  font-weight: 700;
}
.look-chips {
  display: flex;
  gap: 4px;
}
.look-chip {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #00000033;
}
.look-palette {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0;
  font-size: 12px;
}
.look-swatch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   CAROUSEL PARITY LAYER (Gilad 2026-10-04: "it needs to match" the carousel
   tool). Every value is copied from the Content Engine source; the receipt in
   each comment is a path in aos-content-engine (C/). It sits after every rule
   it restyles and before the Learning Log section, which keeps its own look
   and wins where the two meet. Desktop sizes live in
   @media (min-width: 768px) so the phone rules keep winning: 44px touch
   targets, 16px input text, the wrapped nav. The carousel does the same:
   h-11 on phones, md:h-8 on desktop (C/src/components/ui/button.tsx:32-33).
   ========================================================================== */

/* 1. Tokens: C/src/app/globals.css:112-141 (oklch copied 1:1, hex in comments) */
:root {
  --background: oklch(0.975 0.012 80); /* #fbf6ee */
  --foreground: oklch(0.145 0 0); /* #0a0a0a */
  --card: oklch(1 0 0); /* #ffffff */
  --primary: oklch(0.62 0.2 260); /* #3480fc (reels #347dff, same blue) */
  --secondary: oklch(0.97 0.005 80); /* #f7f5f1 */
  --muted: oklch(0.97 0.005 80); /* #f7f5f1 */
  --muted-foreground: oklch(0.5 0 0); /* #636363, the carousel's one grey */
  --accent: oklch(0.94 0.04 260); /* #dcecff */
  --destructive: oklch(0.65 0.2 25); /* #f14d4c */
  --border: oklch(0.91 0.005 70); /* #e3e1de */
  --radius: 0.625rem; /* 10px */
  --radius-md: calc(var(--radius) * 0.8); /* 8px, globals.css:104 */
  --radius-xl: calc(var(--radius) * 1.4); /* 14px, globals.css:106 */
  --ring: color-mix(in oklab, var(--primary) 50%, transparent); /* ring-ring/50 */
  --hairline: color-mix(in oklab, var(--border) 60%, transparent); /* border-border/60 */
}

/* 2. Body text: globals.css:256-267 */
body {
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* one muted grey instead of eight (#858b94 #77808b #78818d #818893 #8b9099
   #92959c #7d8490 #718095); the carousel uses muted-foreground everywhere */
.muted,
small,
.footnote,
.menu small,
.users th,
.clip-body .source-title,
.clip-body .moment-timing,
.workflow-note p,
.source-preview-note p,
.feedback-header p,
.feedback-timestamp small,
[data-draft-status],
[data-upload-status] {
  color: var(--muted-foreground);
}

/* 3. Top bar: C/src/app/(dashboard)/layout.tsx:151 (sticky h-14, border-border/60,
   bg-background/85, backdrop-blur-md, md:px-6, sm:gap-3) */
.top {
  background: color-mix(in oklab, var(--background) 85%, transparent);
  border-bottom: 1px solid var(--hairline);
}
.logo {
  color: var(--foreground);
}
.logo-mark {
  width: 32px; /* aos-mark.tsx:5 size-8 rounded-md text-[13px] */
  height: 32px;
  border-radius: var(--radius-md);
}
.logo > span:last-child {
  font-weight: 600; /* layout.tsx:159 font-display text-[14px] */
  letter-spacing: -0.005em;
}
.top nav a {
  font-weight: 500; /* top-tab-nav.tsx:363 text-[13px] font-medium */
  color: var(--muted-foreground);
  transition:
    background-color 0.15s,
    color 0.15s;
}
.top nav a:hover {
  background: var(--muted);
  color: var(--foreground);
}
.top nav a.active {
  background: color-mix(in oklab, var(--primary) 12%, transparent); /* bg-primary/12 */
  color: var(--primary);
}
/* account menu: account-menu.tsx:33-39, a ghost size=sm button, 12px,
   font-medium text-foreground; no disclosure triangle, a chevron instead */
.account-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px; /* button.tsx:37 size sm h-7 */
  padding: 0 10px; /* px-2.5 */
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 500;
  color: var(--foreground);
  transition: background-color 0.15s;
}
.account-menu summary::-webkit-details-marker {
  display: none;
}
.account-menu summary:hover,
.account-menu[open] > summary {
  background: var(--muted); /* ghost hover:bg-muted, aria-expanded:bg-muted */
}
.account-menu[open] > summary {
  margin-bottom: 0;
}
.account-menu .chevron {
  width: 14px;
  height: 14px;
  color: var(--muted-foreground);
}
.account-menu .menu {
  width: 224px; /* account-menu.tsx:51 w-56 */
  top: calc(100% + 6px);
}
@media (min-width: 751px) {
  /* size + sticky only where reels' header is one row */
  html {
    scroll-padding-top: 64px;
  }
  .top {
    position: sticky;
    top: 0;
    z-index: 30; /* above the page's own z-20 menus */
    height: 56px; /* h-14 */
    padding: 0 24px; /* md:px-6 */
    gap: 12px; /* sm:gap-3 */
    backdrop-filter: blur(12px); /* backdrop-blur-md */
    -webkit-backdrop-filter: blur(12px);
  }
  .top nav {
    gap: 4px; /* top-tab-nav.tsx:421 gap-1 */
  }
  .top nav a {
    height: 32px; /* top-tab-nav.tsx:363 h-8 px-3 rounded-full */
    padding: 0 12px;
    border-radius: 999px;
  }
}
@media (max-width: 750px) {
  .account-menu summary {
    min-height: 44px; /* phone touch target */
  }
}

/* 4. Page frame + title: ui/page-shell.tsx:24-27, ui/page-header.tsx:131-150 */
@media (min-width: 768px) {
  main:not(.auth) {
    max-width: 1152px; /* max-w-6xl */
    padding: 56px 40px; /* md:px-10 md:py-14 */
  }
}
.heading {
  border-bottom-color: var(--hairline); /* page-header.tsx:134 border-border/60 pb-8 */
  padding-bottom: 32px;
}
.eyebrow {
  font-size: 11px; /* page-header.tsx:140 text-[11px] font-medium tracking-[0.18em] */
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
  margin-bottom: 8px;
}
h1 {
  letter-spacing: -0.015em; /* page-header.tsx:144 leading-[1.1] tracking-[-0.015em] */
  line-height: 1.1;
  margin-bottom: 8px;
}
h2 {
  letter-spacing: -0.018em; /* globals.css:293 */
}
h3 {
  letter-spacing: -0.012em; /* globals.css:296 */
}
.heading p.muted {
  font-size: 15px; /* page-header.tsx:148 max-w-2xl text-[15px] */
  max-width: 42rem;
  margin: 0;
}

/* 5. Status tabs: C/src/app/(dashboard)/approvals/approvals-tabs.tsx:124,141,283 */
.tabs {
  gap: 4px; /* flex gap-1 border-b border-border/60 */
  border-bottom-color: var(--hairline);
}
.tabs a {
  padding: 12px 16px; /* px-4 py-3 text-[13px] font-medium border-b-2 */
  font-weight: 500;
  color: var(--muted-foreground);
  border-bottom-width: 2px;
}
.tabs a:hover {
  color: var(--foreground);
}
.tabs a.active {
  font-weight: 500;
  color: var(--foreground);
  border-color: var(--primary);
}
/* A tab strip wider than its space scrolls sideways, so its edge says when
   more tabs are past it: the right edge fades to the page with a "›" pinned
   on it, the left edge fades out. workspace.js sets the classes only while
   the strip overflows (in practice phones: five or six tabs with counts), so
   a strip that fits (desktop, tablet) is drawn exactly as before. The "›" is
   decoration: its empty alt text keeps it out of screen readers (the first
   line is the fallback for browsers without the alt syntax). */
.tabs.more-left {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 40px);
  mask-image: linear-gradient(to right, transparent, #000 40px);
}
.tabs.more-right::after {
  content: "›";
  content: "›" / "";
  position: sticky;
  right: 0;
  flex: 0 0 48px;
  margin-left: -52px; /* overlays the last tab; adds no width */
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 2px;
  font-size: 22px;
  line-height: 1;
  color: var(--muted-foreground);
  background: linear-gradient(to right, transparent, var(--background) 70%);
  pointer-events: none;
}
.status-count {
  display: inline-flex; /* :141 h-5 min-w-5 rounded-full bg-amber-500/15 px-1.5 text-[11px] font-semibold text-amber-700 */
  align-items: center;
  justify-content: center;
  height: 20px;
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: color-mix(in oklab, oklch(0.769 0.188 70.08) 15%, transparent);
  color: oklch(0.555 0.163 48.998);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* 6. Buttons: C/src/components/ui/button.tsx:12-24 (outline = cream bg-background,
   font-medium, rounded-lg; default = brand, shadow-xs; destructive = red tint) */
button,
.button {
  border-radius: var(--radius);
  border-color: var(--border);
  background: var(--background);
  color: var(--foreground);
  font-weight: 500;
  transition:
    background-color 0.15s,
    box-shadow 0.15s,
    color 0.15s;
}
button:hover,
.button:hover {
  background: var(--muted);
}
.primary {
  background: var(--primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.primary:hover {
  background: color-mix(in oklab, var(--primary) 90%, transparent);
  box-shadow: 0 8px 20px -10px var(--primary);
}
.danger {
  background: color-mix(in oklab, var(--destructive) 10%, transparent);
  border-color: transparent;
  color: var(--destructive);
}
.danger:hover {
  background: color-mix(in oklab, var(--destructive) 20%, transparent);
}
.ghost {
  /* ghost variant, button.tsx:21 (the flows builder adds the class) */
  background: transparent;
  border-color: transparent;
  color: var(--muted-foreground);
}
.ghost:hover {
  background: var(--muted);
  color: var(--foreground);
}
@media (min-width: 768px) {
  button,
  .button {
    min-height: 32px; /* md:h-8 md:px-2.5 gap-1.5 */
    padding: 0 10px;
    gap: 6px;
  }
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline-color: transparent; /* still drawn in forced-colours mode */
  box-shadow: 0 0 0 3px var(--ring); /* focus-visible:ring-3 ring-ring/50 */
}

/* 7. Inputs: C/src/components/ui/input.tsx:17 (border-input, rounded-lg,
   bg-transparent, md:h-9) */
input,
select,
textarea {
  border-color: var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--foreground);
}
@media (min-width: 768px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
  select {
    min-height: 36px;
    padding: 4px 10px;
  }
}
@media (max-width: 600px) {
  .queue-filters select {
    font-size: 16px; /* was 12px on phones (workspace.css .queue-filters select) */
  }
}

/* 8. Cards: ui/card.tsx:27 (rounded-xl ring-foreground/10) +
   approvals/queue-cockpit.tsx:718-728, 765, 795 */
.card {
  border-color: color-mix(in oklab, var(--foreground) 10%, transparent);
  border-radius: var(--radius-xl);
}
.clip-card {
  transition: border-color 0.2s;
}
.clip-card:hover {
  border-color: color-mix(in oklab, var(--foreground) 15%, transparent); /* :723 hover:border-foreground/15 */
}
.clip-top {
  padding: 16px; /* queue-cockpit.tsx:728 p-4 gap-4, md:p-5 md:gap-5 */
  gap: 16px;
}
@media (min-width: 768px) {
  .clip-top {
    padding: 20px;
    gap: 20px;
  }
}
.clip-card h3 {
  font-size: 18px; /* :765 font-display text-[18px] leading-[1.35] tracking-[-0.01em] */
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.clip-card .actions {
  gap: 8px; /* :795 gap-2 border-t border-border/60 bg-secondary/15 px-4 py-3 md:px-5 */
  padding: 12px 16px;
  border-top: 1px solid var(--hairline);
  background: color-mix(in oklab, var(--secondary) 15%, var(--card));
  border-radius: 0 0 calc(var(--radius-xl) - 1px) calc(var(--radius-xl) - 1px);
}
@media (min-width: 768px) {
  .clip-card .actions {
    padding: 12px 20px;
  }
  .clip-card .actions > button,
  .clip-card .actions > .button,
  .clip-card .card-actions-main > button,
  .clip-card .card-actions-main > .button,
  .clip-card .card-actions-side > button,
  .clip-card .card-actions-side > .button {
    min-height: 36px; /* size=sm + md:min-h-9 */
    font-size: 12.8px; /* text-[0.8rem] */
    border-radius: var(--radius-md);
  }
}
/* Reject on the card is the ghost variant + text-destructive (:829-834) */
.clip-card .actions > .danger:not(:hover),
.clip-card .card-actions-main > .danger:not(:hover),
.clip-card .card-actions-side > .danger:not(:hover) {
  background: transparent;
}
/* quiet hover tint, hover:bg-destructive/10 (queue-cockpit.tsx:831) */
.clip-card .actions > .danger:hover,
.clip-card .card-actions-main > .danger:hover,
.clip-card .card-actions-side > .danger:hover {
  background: color-mix(in oklab, var(--destructive) 10%, transparent);
}
/* status chip: C/src/components/post-card/badge-tints.ts:21-38 */
.badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.badge.ready {
  background: oklch(0.987 0.022 95.277); /* TINT_STAGE amber-50 */
  color: oklch(0.555 0.163 48.998); /* amber-700 */
  border-color: color-mix(in oklab, oklch(0.769 0.188 70.08) 35%, transparent);
}
.badge.approved {
  background: oklch(0.979 0.021 166.113); /* TINT_ORGANIC emerald-50 */
  color: oklch(0.508 0.118 165.612); /* emerald-700 */
  border-color: color-mix(in oklab, oklch(0.696 0.17 162.48) 30%, transparent);
}
.badge.rejected {
  background: color-mix(in oklab, var(--destructive) 10%, transparent);
  color: var(--destructive);
}
/* Feedback sent: waiting on us, the same calm blue as Making. */
.badge.feedback-sent {
  background: oklch(0.97 0.014 254.604);
  color: oklch(0.488 0.243 264.376);
  border-color: color-mix(in oklab, oklch(0.623 0.214 259.815) 30%, transparent);
}
[data-feedback-sent]:empty {
  display: none;
}
.feedback-sent-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted-foreground, #6b7280);
}
/* "Applying your feedback" (held until released): a quiet, neutral card.
   Doctrine 8: pending states stay calm. No play button, no picture. */
.badge.applying {
  background: var(--muted, #f4f4f5);
  color: var(--muted-foreground, #6b7280);
  border-color: var(--border, #e4e4e7);
}
.clip-card.applying-card {
  background: color-mix(in oklab, var(--muted, #f4f4f5) 45%, var(--card, #fff));
}
.clip-card .clip-media.applying-media {
  width: 96px;
  height: 170px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px dashed var(--border, #d4d4d8);
  background: repeating-linear-gradient(
    135deg,
    color-mix(in oklab, var(--muted, #f4f4f5) 70%, transparent) 0 10px,
    transparent 10px 20px
  );
}
.applying-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border, #d4d4d8);
  border-top-color: var(--muted-foreground, #9ca3af);
  animation: applying-turn 2.4s linear infinite;
}
@keyframes applying-turn {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .applying-mark {
    animation: none;
  }
}
.applying-note {
  font-size: 13px;
}
/* The operator's mark on a held clip, and the two release actions. */
.badge.not-released {
  margin-left: 6px;
  background: var(--card, #fff);
  color: var(--foreground, #18181b);
  border: 1px dashed color-mix(in oklab, var(--foreground, #18181b) 45%, transparent);
}
button.release {
  border-color: var(--foreground, #18181b);
  font-weight: 600;
}
[data-release-slot]:empty {
  display: none;
}
.release-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
}
.release-line .badge.not-released {
  margin-left: 0;
}
.badge.making {
  /* doctrine §2: blue = processing (was amber) */
  background: oklch(0.97 0.014 254.604);
  color: oklch(0.488 0.243 264.376);
  border-color: color-mix(in oklab, oklch(0.623 0.214 259.815) 30%, transparent);
}

/* 9. Reel tile on the card: C/src/components/reels/reel-card-preview.tsx:43-68
   (96px poster, round play button, no hint text). A tap on a reels card opens
   the "Watch reel" player dialog (reel-feedback.js:209-222, which also turns
   the card video's native controls off), so the tile itself never grows. */
.clip-card .reel-inline-player {
  width: 96px; /* md:w-24 */
  min-width: 96px;
  border-radius: var(--radius-md); /* rounded-[var(--radius-md)] border border-border bg-black */
  border: 1px solid var(--border);
  background: #000;
}
.clip-card .reel-inline-player video {
  object-fit: cover; /* size-full object-cover */
}
.clip-card .reel-play-button {
  inset: 0; /* absolute inset-0 bg-black/10 hover:bg-black/25 */
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgb(0 0 0 / 0.1);
  font-size: 0;
  color: transparent;
  box-shadow: none;
}
.clip-card .reel-play-button:hover {
  background: rgb(0 0 0 / 0.25);
}
.clip-card .reel-play-button::before {
  /* size-9 rounded-full bg-black/60 shadow-lg, Play size-4 */
  content: "";
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.6)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 4.5v15l13-7.5z'/%3E%3C/svg%3E")
    55% 50% / 16px no-repeat;
  box-shadow:
    0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
}
/* the card's "Press play to load this reel." hint: the carousel tile has none */
.clip-card .reel-inline-player [data-player-status] {
  display: none;
}
@media (max-width: 600px) {
  /* phones: the carousel stacks the tile above the text (flex-col) at w-20 */
  .clip-card .clip-top:has(> .reel-inline-player) {
    align-items: flex-start;
  }
  .clip-card .reel-inline-player {
    width: 80px;
    min-width: 80px;
    margin: 0;
  }
}

/* 10. Page picker + menus: account-picker.tsx:74-77, 134-151;
   ui/dropdown-menu.tsx:44 (rounded-lg p-1 shadow-md ring-1 ring-foreground/10) */
@media (min-width: 768px) {
  .heading .picker > button,
  .queue-filters .picker > button,
  .queue-filters select {
    min-height: 28px; /* outline size=sm: h-7 text-[0.8rem] rounded-md */
    font-size: 12.8px;
    border-radius: var(--radius-md);
  }
  .picker-trigger {
    max-width: 240px; /* sm:max-w-[240px] */
  }
  .picker-trigger .avatar {
    width: 20px; /* size-5 */
    height: 20px;
    font-size: 10px;
  }
  .menu button {
    min-height: 0;
  }
}
.menu {
  border: 0;
  border-radius: var(--radius);
  padding: 4px;
  box-shadow:
    0 0 0 1px color-mix(in oklab, var(--foreground) 10%, transparent),
    0 4px 6px -1px rgb(0 0 0 / 0.1),
    0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.menu button {
  padding: 8px 12px; /* px-3 py-2 gap-2.5 text-[13px] font-medium */
  gap: 10px;
  border-radius: var(--radius-md);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
}
.menu button:hover {
  background: var(--accent); /* focus:bg-accent */
}
.menu button[aria-selected="true"] {
  background: color-mix(in oklab, var(--secondary) 40%, transparent); /* bg-secondary/40 */
  color: var(--foreground);
}
.menu button.danger {
  color: var(--destructive);
}
.menu .check {
  color: var(--primary);
}
.menu .avatar {
  width: 24px; /* size-6 */
  height: 24px;
  font-size: 11px;
}
.menu button > span:not(.avatar):not(.check) {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.25;
}
.menu small {
  display: block;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.avatar {
  background: color-mix(in oklab, var(--primary) 12%, transparent);
  color: var(--primary);
  font-weight: 600;
}

/* 11. Toast + empty state */
#notice {
  /* sonner bottom-right, light card: (dashboard)/layout.tsx:202-210 */
  left: auto;
  right: 24px;
  transform: none;
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
  font-size: 13px;
}
@media (max-width: 600px) {
  #notice {
    left: 16px;
    right: 16px;
    max-width: none;
  }
}
/* The fixed video appears by itself (workspace.js liveOffer): on the full
   review, "A new version is ready - show it" stays in view while she
   finishes what she is typing, until she presses it: at the top on a wide
   screen, at the bottom on a phone (above the decision bar, never over
   "Back to clips"). */
.live-ready-bar {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 8px 10px;
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
}
@media (max-width: 600px) {
  .live-ready-bar {
    top: auto;
    bottom: calc(var(--review-stack-h, 0px) + 12px);
    left: 16px;
    right: 16px;
    transform: none;
    max-width: none;
  }
  .live-ready-bar button {
    width: 100%;
  }
}
.empty {
  /* ui/empty-state.tsx:27 rounded-md border-dashed bg-card/50 px-8 py-16 */
  border-style: dashed;
  border-color: var(--border);
  background: color-mix(in oklab, var(--card) 50%, transparent);
  border-radius: var(--radius-md);
  padding: 64px 32px;
}
.empty h2 {
  font-size: 22px; /* empty-state.tsx:35 text-[22px] leading-tight tracking-[-0.01em] */
  letter-spacing: -0.01em;
  line-height: 1.25;
}

/* 12. Forms + disclosures, found by looking at the running app */
/* labels: ui/label.tsx:14 text-sm font-medium (reels was 12px/600, and every
   input inherited that 600 through `font: inherit`) */
label {
  font-size: 14px;
  font-weight: 500;
}
/* input text: ui/input.tsx:17 font-normal, md:text-sm, placeholder muted */
input,
select,
textarea {
  font-weight: 400;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted-foreground);
}
@media (min-width: 601px) {
  input,
  select,
  textarea {
    font-size: 14px;
  }
}
.queue-filters select {
  font-weight: 500; /* the page picker beside it is an outline button, font-medium */
}
.clip-card .actions .checkbox {
  font-size: 12.8px; /* same size as the card's buttons */
}
/* no native ▶/▼ marker: a chevron that turns when open, like the carousel's
   summaries (approvals-workspace.tsx:320 list-none + a rotating icon) */
summary {
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
details:not(.card-more):not(.account-menu) > summary::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 6px;
  vertical-align: -2px;
  background: var(--muted-foreground);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transition: transform 0.2s;
}
details[open]:not(.card-more):not(.account-menu) > summary::after {
  transform: rotate(180deg);
}
/* one content width: .narrow (1060px) sat 6px inside the 1072px heading */
.narrow {
  max-width: none;
}
/* spacing the old 42px buttons used to hide */
[data-action="add-source"] + .stack {
  margin-top: 28px;
}
#verdict-form details > button + button {
  margin-left: 8px;
}
#verdict-form details > small {
  display: block;
  margin-top: 6px;
}
/* phones: a long @handle beside the 58px Learning Log avatar only fits on one
   line with the old tighter tracking (it broke "@stepstolongevit|y" at -0.015em) */
@media (max-width: 600px) {
  .ll-heading h1 {
    letter-spacing: -0.05em;
  }
}
/* ===== end of CAROUSEL PARITY LAYER ===== */

/* Learning Log (P3a-2): the carousel Learning Log's first view in Reels'
   own look. Cards grow on hover; every number opens a pop-up. */
.ll-heading .ll-title {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.ll-heading h1 {
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}
.ll-heading p {
  margin: 0;
  max-width: 620px;
}
.avatar.xl {
  width: 58px;
  height: 58px;
  font-size: 24px;
}
.ll-errors {
  margin-bottom: 18px;
}
.ll-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.ll-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  background: #fff;
  border: 1px solid #e7e5df;
  border-radius: 15px;
  padding: 18px 20px;
  color: #20252e;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
a.ll-metric:hover,
a.ll-metric:focus-visible {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 34px -18px #28364a55;
}
.ll-metric.active {
  outline: 2px solid #1f9d63;
}
.ll-metric-label {
  font-size: 13px;
  font-weight: 700;
  color: #6c737e;
}
.ll-metric-value {
  font: 800 36px/1.1 Jakarta, Arial;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.ll-metric-sub {
  font-size: 13px;
  color: #858b94;
}
.ll-metric.win {
  border-color: #b9e6cf;
  background: linear-gradient(180deg, #f1fbf6, #fff);
}
.ll-metric.win .ll-metric-value {
  color: #13804f;
}
.ll-metric.warn .ll-metric-value {
  color: #ab6306;
}
.ll-metric.unknown .ll-metric-value {
  color: #9aa0a8;
}
.ll-pop {
  min-width: 0;
}
.ll-pop-panel {
  position: fixed;
  z-index: 60;
  width: 380px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border: 1px solid #e3e3df;
  border-radius: 13px;
  box-shadow: 0 18px 50px #28364a33;
  padding: 16px;
  color: #20252e;
  font-size: 14px;
  text-align: left;
  font-weight: 400;
}
.ll-pop-title {
  font: 700 16px Jakarta, Arial;
  margin: 0;
}
.ll-pop-period {
  font-size: 13px;
  color: #858b94;
  margin: 2px 0 0;
}
.ll-pop-body {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: min(420px, 60vh);
  overflow-y: auto;
}
.ll-pop-body p {
  margin: 0;
}
.ll-pop-foot {
  margin-top: 12px;
  border-top: 1px solid #eeece6;
  padding-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #858b94;
}
.ll-row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ll-row-sub {
  margin: 2px 0 0 38px;
  font-size: 12.5px;
  color: #858b94;
}
.ll-num {
  flex: none;
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ll-share {
  display: inline-block;
  width: 44px;
  margin-left: 8px;
  color: #858b94;
  font-weight: 400;
}
.ll-big {
  font: 800 22px Jakarta, Arial;
}
.ll-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 600;
  color: #20252e;
}
.ll-brand > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ll-brand .avatar {
  width: 28px;
  height: 28px;
  font-size: 12px;
}
a.ll-brand:hover,
a.ll-rowlink:hover {
  color: #347dff;
}
.ll-kicker {
  margin: 8px 0 0 !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6c737e;
}
.ll-bucket,
.ll-newest {
  display: block;
  border-radius: 9px;
  padding: 6px 8px;
  color: #20252e;
}
a.ll-bucket:hover,
a.ll-newest:hover {
  background: #f3f6fc;
}
.ll-newest small {
  display: block;
}
.ll-bar {
  display: block;
  height: 6px;
  margin-top: 5px;
  border-radius: 6px;
  background: #ecebe6;
  overflow: hidden;
}
.ll-bar > span {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: #8fb5ff;
}
.ll-bar > span.zero {
  background: #22b573;
}
.ll-section {
  padding: 0;
  overflow: visible;
}
.ll-pad {
  padding: 22px 24px 4px;
}
.ll-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 22px 14px;
  border-bottom: 1px solid #eeece6;
}
.ll-section-head h2,
.ll-pad h2 {
  margin: 0 0 4px;
}
.ll-section-head p {
  margin: 0;
  font-size: 13px;
}
.ll-close {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: #6c737e;
  font-size: 24px;
  flex: none;
}
.ll-close:hover {
  background: #f3f6fc;
}
.ll-empty {
  text-align: center;
  padding: 34px 22px;
  margin: 0;
}
.ll-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 720px;
  overflow-y: auto;
}
.ll-list > li + li {
  border-top: 1px solid #f0eee9;
}
.ll-list-row,
.ll-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 11px 22px;
  color: #20252e;
}
.ll-item {
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
}
a.ll-list-row:hover,
a.ll-item:hover {
  background: #f7f9fd;
}
.ll-list-main {
  flex: 1;
  min-width: 0;
  display: grid;
}
.ll-who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-size: 13px;
  color: #858b94;
}
.ll-who strong {
  color: #20252e;
  font-weight: 600;
}
.ll-quote {
  font-size: 15px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ll-rule-line,
.ll-sentence {
  font-size: 14.5px;
}
.ll-rule-line strong {
  color: #347dff;
}
.ll-verdict-line {
  font-size: 13px;
  color: #858b94;
  font-weight: 600;
}
.ll-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ll-pill {
  display: inline-block;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 12.5px;
  font-weight: 600;
  background: #f1f0ec;
  color: #5b626c;
  font-variant-numeric: tabular-nums;
}
.ll-pill.good,
.ll-pill.active {
  background: #e3f6ec;
  color: #13804f;
}
.ll-pill.mid,
.ll-pill.proposed {
  background: #fff5df;
  color: #946019;
}
.ll-pill.low,
.ll-pill.not_classified {
  background: #fdeceb;
  color: #b2382f;
}
.ll-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ll-pills a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 20px;
  border: 1px solid #e3e3df;
  color: #5b626c;
  font-weight: 600;
  font-size: 13px;
}
.ll-pills a.active {
  background: #347dff;
  border-color: #347dff;
  color: #fff;
}
.ll-chips {
  margin-top: 12px;
  align-items: center;
}
.ll-chip-off {
  font-size: 12px;
  color: #9aa0a8;
}
.ll-table-wrap {
  overflow-x: auto;
}
.ll-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.ll-table th,
.ll-table td {
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid #f0eee9;
}
.ll-table th.num,
.ll-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ll-table th {
  background: #faf9f6;
}
.ll-table th button {
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6c737e;
}
.ll-table tbody tr {
  cursor: pointer;
  transition: background 0.12s;
}
.ll-table tbody tr:nth-child(even) {
  background: #fcfbf8;
}
.ll-table tbody tr:hover {
  background: #f1f5fe;
}
.ll-table tbody tr.active {
  background: #eaf8f1;
  box-shadow: inset 3px 0 0 #1f9d63;
}
.ll-rowlink {
  min-height: 44px;
  font-size: 15px;
}
.ll-initials {
  width: 28px;
  height: 28px;
  font-size: 11px;
}
.ll-foot,
.ll-trend-foot {
  margin: 0;
  padding: 12px 22px;
  border-top: 1px solid #eeece6;
  font-size: 13px;
  color: #858b94;
}
.ll-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.ll-two > .card {
  margin-bottom: 22px;
  min-width: 0;
}
.ll-who-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 18px;
  padding: 12px 18px;
  border: 1px solid #c9dbff;
  background: #f2f6ff;
  border-radius: 15px;
  font-size: 15px;
}
.ll-verdict {
  margin: 12px 0 0;
  font: 800 24px/1.25 Jakarta, Arial;
  letter-spacing: -0.02em;
}
.ll-verdict span {
  display: block;
  margin-top: 4px;
  font: 400 14px Inter, Arial;
  letter-spacing: 0;
  color: #858b94;
}
.ll-verdict.down {
  color: #13804f;
}
.ll-verdict.up {
  color: #c2412d;
}
.ll-verdict.unknown {
  color: #9aa0a8;
}
.ll-chart-wrap {
  padding: 16px 24px 12px;
}
.ll-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 13px;
  color: #858b94;
}
.ll-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ll-legend-hint {
  margin-left: auto;
}
.ll-key-line {
  width: 20px;
  height: 3px;
  border-radius: 3px;
  background: #347dff;
}
.ll-key-back {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #e0766a;
}
.ll-chart {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.ll-axis {
  position: relative;
  width: 36px;
  flex: none;
  font-size: 12px;
  color: #858b94;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ll-axis span {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
}
.ll-plot {
  flex: 1;
  min-width: 0;
}
.ll-plot-area {
  position: relative;
}
.ll-plot-area svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ll-grid {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid #eeece6;
}
.ll-weeks {
  position: absolute;
  inset: 0;
  display: grid;
}
.ll-week {
  height: 100%;
}
.ll-week-hit {
  position: relative;
  display: block;
  height: 100%;
  border-radius: 9px;
}
.ll-week-hit:hover,
.ll-week-hit:focus-visible {
  background: #f3f6fc80;
}
.ll-dot {
  position: absolute;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #347dff;
  border: 2px solid #fff;
  transform: translate(-50%, -50%);
}
.ll-week-hit:hover .ll-dot {
  width: 16px;
  height: 16px;
}
.ll-dot-label {
  position: absolute;
  left: 50%;
  transform: translate(-50%, calc(-100% - 8px));
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #20252e;
}
.ll-came-back,
.ll-week-labels {
  display: grid;
  text-align: center;
  font-size: 12px;
  color: #858b94;
}
.ll-came-back {
  margin-top: 6px;
  font-size: 13px;
}
.ll-week-labels span {
  overflow: hidden;
  white-space: nowrap;
}
.ll-trend-rows {
  border-top: 1px solid #eeece6;
}
.ll-trend-head,
.ll-trend-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 1fr 1fr 40px;
  gap: 16px;
  align-items: center;
  padding: 10px 24px;
}
.ll-trend-head {
  background: #faf9f6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6c737e;
}
.ll-trend-row {
  min-height: 52px;
  color: #20252e;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  border-top: 1px solid #f0eee9;
}
.ll-trend-row:hover {
  background: #f7f9fd;
}
.ll-trend-row em {
  display: none;
  font-style: normal;
}
.ll-trend-row small {
  display: block;
  font-size: 12.5px;
}
.ll-now {
  font-weight: 600;
}
.ll-dir {
  font-size: 20px;
  font-weight: 700;
}
.ll-dir.down {
  color: #13804f;
}
.ll-dir.up {
  color: #c2412d;
}
.ll-dir.same,
.ll-dir.unknown {
  color: #858b94;
}
.ll-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: #1c222b40;
}
.ll-drawer {
  position: fixed;
  z-index: 71;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(560px, 100vw);
  background: #fff;
  box-shadow: -18px 0 50px #28364a33;
  display: flex;
  flex-direction: column;
}
.ll-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 14px 24px;
  border-bottom: 1px solid #eeece6;
}
.ll-drawer-head h2 {
  margin: 0;
}
.ll-drawer-body {
  overflow-y: auto;
  padding: 18px 24px 40px;
}
.ll-drawer-body p {
  margin: 0 0 12px;
}
.ll-pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ll-rule-text {
  font-size: 16px;
  line-height: 1.55;
  padding: 14px 16px;
  border-radius: 12px;
  background: #faf9f6;
  border: 1px solid #eeece6;
}
.ll-revert {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #eeece6;
}
.ll-revert > button {
  justify-self: start;
  min-width: 120px;
}
/* The carousel's RevertButton row: an optional reason box, then one button. */
.ll-revert-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ll-revert-row input {
  flex: 1;
  width: auto;
  min-width: 0;
}
.ll-revert-result {
  margin: 0;
}
@media (max-width: 1024px) {
  .ll-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ll-two {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .ll-table .phone-hidden {
    display: none;
  }
  .ll-table th,
  .ll-table td {
    padding: 8px 8px 8px 4px;
  }
  .ll-table th:first-child,
  .ll-table td:first-child {
    padding-left: 14px;
  }
  .ll-trend-head {
    display: none;
  }
  .ll-trend-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    padding: 10px 16px;
  }
  .ll-trend-row > .ll-brand {
    width: 100%;
  }
  .ll-trend-row em {
    display: inline;
  }
  .ll-week-labels .ll-sparse {
    visibility: hidden;
  }
  .ll-week-labels span {
    overflow: visible;
  }
  /* Fixed widths: the table fits a phone whatever font has loaded. */
  .ll-table {
    font-size: 14px;
    table-layout: fixed;
  }
  .ll-table th.num,
  .ll-table td.num {
    width: 68px;
  }
  .ll-table th button {
    font-size: 10px;
    letter-spacing: 0.02em;
    line-height: 1.25;
    white-space: normal;
    text-align: right;
  }
  .ll-table .ll-rowlink {
    display: flex;
    max-width: 100%;
  }
  .ll-dot-label {
    display: none;
  }
  .ll-legend-hint {
    margin-left: 0;
  }
  .ll-pad,
  .ll-chart-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  .ll-section-head,
  .ll-list-row,
  .ll-item,
  .ll-foot,
  .ll-trend-foot {
    padding-left: 16px;
    padding-right: 16px;
  }
  .ll-metric {
    padding: 14px;
  }
  .ll-metric-value {
    font-size: 30px;
  }
  .ll-verdict {
    font-size: 20px;
  }
}
/* Phones: every touch target is at least 44px (ux-ui-doctrine §1.9). The 12
   trend weeks get a 44px column each and the plot scrolls sideways inside its
   card, like the doctrine's horizontal-scroll strips; the y-axis stays put. */
@media (max-width: 480px) {
  .ll-pills a,
  .ll-revert-row input,
  .ll-revert-row button {
    min-height: 44px;
  }
  .ll-plot {
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }
  .ll-plot-area,
  .ll-came-back,
  .ll-week-labels {
    min-width: calc(var(--ll-weeks, 12) * 44px);
  }
}

/* ux-flows 10-04 — NEW classes only (builder "flows": page menu, queue
   filters). Existing rules belong to the look builder; nothing here restyles
   them. Page menu rows follow the carousel account-picker.tsx: picture, the
   @handle on one line, the page name under it, both truncated. */
.menu .page-option {
  display: block;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.25;
}
.menu .page-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.avatar.page-globe {
  background: var(--muted);
  color: var(--muted-foreground);
}
.picker-trigger .avatar.page-globe svg {
  width: 12px;
  height: 12px;
}
.menu .menu-label {
  padding: 8px 12px;
  margin: -4px -4px 4px;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
  font-weight: 600;
  color: #20252e;
}
.menu .menu-toggle {
  justify-content: center;
  text-align: center;
  margin-top: 4px;
  border-top: 1px solid var(--hairline);
  border-radius: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-foreground);
}
/* A tucked test page row: buttons are display:flex, which beats [hidden]. */
.menu [data-test-page][hidden] {
  display: none;
}
.queue-filters .filters-end {
  margin-left: auto;
}
/* Review keys (carousel queue-cockpit.tsx:568-573 hint, :1223-1227 Kbd):
   hidden md:flex gap-2 text-[11px] text-muted-foreground/80. */
.key-hint {
  display: none;
}
@media (min-width: 768px) {
  .key-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    white-space: nowrap;
    color: color-mix(in oklab, var(--muted-foreground) 80%, transparent);
  }
}
.key-hint kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  min-width: 20px;
  padding: 0 4px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  color: color-mix(in oklab, var(--foreground) 70%, transparent);
}
/* The focused card (queue-cockpit.tsx:721-722: border-primary/45
   ring-1 ring-primary/15). It beats the hover border. */
.clip-card.key-focus,
.clip-card.key-focus:hover {
  border-color: color-mix(in oklab, var(--primary) 45%, transparent);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--primary) 15%, transparent);
}
/* Clip card actions (carousel queue-cockpit.tsx:794-890): decisions on the
   left, quiet links + ••• on the right. */
.card-actions-main,
.card-actions-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.card-actions-side {
  margin-left: auto;
}
.card-more .card-more-menu {
  position: absolute;
  z-index: 10;
  right: 0;
  top: 100%;
  display: flex;
  flex-direction: column;
  min-width: 170px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 25px #25334820;
}
.card-more .card-more-menu button {
  position: static;
  width: 100%;
  justify-content: flex-start;
  border: 0;
  box-shadow: none;
  white-space: nowrap;
}
/* The bulk bar and the per-card Select boxes wait for "Select". */
#main:not(.selecting) .bulk-only {
  display: none !important;
}
.review-note {
  margin: 0;
  font-size: 13px;
}
/* Users & pages (carousel Users & Brands): role pills and @handle chips. */
.role-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.role-pill.admin {
  background: #347dff;
  color: #fff;
}
.role-pill.owner {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.role-pill.reviewer,
.role-pill.none {
  background: var(--muted);
  color: var(--muted-foreground);
}
.page-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.page-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #20252e;
  font-size: 12px;
  white-space: nowrap;
  text-decoration: none;
}
.page-chip:hover {
  background: var(--muted);
}
.page-chip small {
  display: inline;
  font-size: 10px;
  color: var(--muted-foreground);
}
.view-as {
  white-space: nowrap;
}
/* Users & pages, Email column (only rendered while email sign-in is on). */
.user-email-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.user-email {
  overflow-wrap: anywhere;
  min-width: 0;
}
.users td .email-only-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 11px;
  white-space: nowrap;
}
.set-email {
  white-space: nowrap;
  min-height: 32px;
  padding: 4px 12px;
  font-size: 13px;
}
#user-email-form .actions .danger {
  margin-left: auto;
}
/* Users & pages, "Add person" (only rendered while its switch is on). */
.toolbar .add-person {
  margin-left: auto;
}
#add-person-form legend {
  font-weight: 600;
  margin-bottom: 8px;
}
.person-pages {
  display: grid;
  gap: 2px;
  max-height: 220px;
  overflow-y: auto;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.person-pages .checkbox {
  min-height: 36px;
  overflow-wrap: anywhere;
}
.person-pages .checkbox small {
  color: var(--muted-foreground);
}
/* A long @handle in the Your clips title never breaks mid-word on a phone. */
.page-title-text {
  min-width: 0;
}
@media (max-width: 600px) {
  .ll-heading h1.page-handle {
    font-size: 24px;
    overflow-wrap: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Product sections (Gilad 11-21, approved mockup "Reels Tool Sections" v2): the small Text | Podcast
   switch, drawn only for a person whose page has two products (static/workspace.js
   sectionProducts). Nobody else's header changes. */
#product-switch[hidden] {
  display: none;
}
.product-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--muted);
  flex: none;
}
.product-switch a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.product-switch a:hover {
  color: var(--foreground);
}
.product-switch a.active {
  background: var(--card);
  color: var(--foreground);
  font-weight: 600;
  box-shadow: 0 1px 2px rgb(20 20 30 / 0.08);
}
.product-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.product-dot.product-text {
  background: oklch(0.6 0.19 260);
}
.product-dot.product-podcast {
  background: oklch(0.62 0.13 55);
}
@media (max-width: 750px) {
  /* the switch on its own row under the logo, Menu and account (mockup v2, phone) */
  .top.has-product-switch {
    height: auto;
    flex-wrap: wrap;
    row-gap: 8px;
    padding-block: 10px;
  }
  .top.has-product-switch #product-switch {
    order: 9;
    flex-basis: 100%;
  }
  .top.has-product-switch .product-switch a {
    min-height: 36px;
  }
}

/* Reels UX gaps (10-05): small icons + a Ready count in the top menu
   (top-tab-nav.tsx:344-358 gap-1.5, size-4 icon, count pill), and the phone
   header as one sticky row with the links behind a Menu button
   (top-tab-nav.tsx:458-480). */
.top nav a {
  gap: 6px;
}
.top nav a .nav-icon {
  width: 16px; /* size-4 */
  height: 16px;
  flex: none;
}
.top nav a .nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 16px; /* h-4 min-w-4 rounded-full px-1 text-[10px] font-semibold */
  min-width: 16px;
  margin-left: 2px;
  padding: 0 4px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--primary) 12%, transparent);
  color: var(--primary);
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.top nav a.active .nav-count {
  background: color-mix(in oklab, var(--primary) 20%, transparent);
}
.top nav a .nav-count::after {
  content: attr(data-count);
}
.nav-toggle {
  display: none;
}
/* The member's reels left + Plans in the top bar (static/reels-plans.js, Gilad 11-24): the
   account menu's ghost size, the carousel's muted grey, the primary blue for the button. */
.reels-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  font-size: 12px;
  white-space: nowrap;
}
.reels-count {
  font-weight: 600;
  color: var(--foreground);
}
.reels-count.reels-out {
  color: var(--destructive);
}
.reels-today,
.reels-used {
  color: var(--muted-foreground);
}
.reels-bar .reels-used {
  margin-left: -6px; /* "· 30 used this month" reads as one phrase with the count */
}
.reels-free {
  font-weight: 600;
  color: var(--foreground);
}
.reels-bar .reels-plans-btn {
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in oklab, var(--primary) 40%, transparent);
  background: color-mix(in oklab, var(--primary) 12%, transparent);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}
.reels-plans-title {
  margin: 0 0 6px;
  font-size: 20px;
}
.reels-plans-out {
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--destructive) 10%, transparent);
  color: var(--foreground);
  font-weight: 600;
}
/* the member's usage at the top of the pop-up (Gilad 12-04): two by two, the number large */
.reels-usage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
  clear: both; /* below the floated close button, the full width of the plans under it */
}
.reels-usage-item {
  display: grid;
  align-content: space-between; /* a label on two lines never lifts its number off the row */
  gap: 2px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--muted, var(--card));
}
.reels-usage dt {
  font-size: 12px;
  color: var(--muted-foreground);
}
.reels-usage dd {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--foreground);
  overflow-wrap: anywhere;
}
.reels-usage-item.reels-out dd {
  color: var(--destructive);
}
.reels-plans-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.reels-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.reels-plan.is-current {
  border-color: var(--primary);
  background: color-mix(in oklab, var(--primary) 6%, var(--card));
}
.reels-plan-text {
  display: grid;
  gap: 2px;
}
.reels-plan-price {
  font-weight: 600;
}
.reels-plan-current {
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
}
.reels-plans-note {
  margin: 12px 0 0;
  font-size: 13px;
}
/* a phone's one header row has no room: a strip right under it (it sticks with it). Credits left,
   credits used and Plans share its first row; the day's line and a free pass get a row each below
   (Gilad 12-04: credits left AND used always visible, on a phone too; one 36 px row cut the day's
   line to "6 ..." and hid the used one). Its height is the rows it has, so the page starts below it. */
@media (max-width: 750px) {
  html:has(#reels-bar) {
    --reels-strip: 36px;
  }
  html:has(#reels-bar :is(.reels-today, .reels-free)) {
    --reels-strip: 54px;
  }
  html:has(#reels-bar .reels-today):has(#reels-bar .reels-free) {
    --reels-strip: 72px;
  }
  .top .reels-bar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: var(--reels-strip, 36px);
    box-sizing: border-box;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    row-gap: 2px;
    margin: 0;
    padding: 4px 16px;
    background: var(--card);
    border-bottom: 1px solid var(--hairline);
  }
  /* the second and third rows: the free pass, then "4 of 10 reels today (6 being made)" */
  .top .reels-bar .reels-free,
  .top .reels-bar .reels-today {
    flex: 1 0 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    line-height: 16px;
  }
  .top .reels-bar .reels-free {
    order: 1;
  }
  .top .reels-bar .reels-today {
    order: 2;
  }
  body:has(#reels-bar) #main {
    margin-top: var(--reels-strip, 36px);
  }
  /* the sticky header (56) AND the strip cover the top: anything scrolled into view (Setup's Next,
     a cover card, a focused box) lands below both, never under the strip (live check 11-24: 64 px
     left a cover card's top under the credits strip) */
  html:has(#reels-bar) {
    scroll-padding-top: calc(var(--reels-strip, 36px) + 64px);
  }
  .top.nav-open:has(#reels-bar) nav {
    top: calc(100% + var(--reels-strip, 36px));
  }
}

@media (max-width: 750px) {
  html {
    scroll-padding-top: 64px;
  }
  .top {
    position: sticky;
    top: 0;
    z-index: 30; /* above the page's own z-20 menus */
    height: 56px; /* one row, h-14 */
    min-height: 0;
    flex-wrap: nowrap;
    padding: 0 16px;
    gap: 10px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .top > .logo {
    flex: 1;
    min-width: 0;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--card);
    color: var(--foreground);
    font-size: 12px;
    font-weight: 500;
  }
  .nav-toggle:hover,
  .nav-toggle[aria-expanded="true"] {
    background: var(--muted);
  }
  .nav-toggle svg {
    width: 16px;
    height: 16px;
  }
  .top nav {
    display: none;
  }
  .top.nav-open nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    height: auto;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    gap: 4px;
    padding: 8px 12px 12px;
    background: var(--card);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 8px 20px -12px rgb(0 0 0 / 0.25);
  }
  .top nav a {
    min-height: 44px; /* phone touch target */
    padding: 0 12px;
  }
  .account-menu {
    margin-left: 0;
  }
  .account-menu summary #identity {
    display: inline-block;
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
/* A wide screen: a long account name shortens too (200 px, about 30 letters), so it never pushes
   the menu behind the Menu button on its own (fitNav, 12-01: a 32-letter name next to the credits
   bar left the three Text links 2 px short at 1280 px and folded them) */
@media (min-width: 751px) {
  .account-menu summary #identity {
    display: inline-block;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
  }
}
/* 13. Email sign-in (sign-in page + confirm page; nothing here is on screen
   while email sign-in is off: both pages' new elements exist only when on) */
.auth [hidden] {
  display: none; /* .stack is a grid and buttons are flex: both beat [hidden] */
}
#email-link-sent:focus {
  outline: none; /* focused by script so a screen reader reads it; not a control */
}
#email-link-address {
  overflow-wrap: anywhere;
}
.text-link {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--primary);
  font-weight: 500;
}
.text-link:hover {
  background: none;
  text-decoration: underline;
}
.signin-join {
  margin: 0;
}
.signin-joined {
  margin: 0;
}
.signin-join a {
  color: var(--primary);
  font-weight: 600;
}
.signin-password {
  margin-top: 22px;
}
.signin-password > summary {
  display: inline-block;
  color: var(--muted-foreground);
  font-weight: 500;
}
.signin-password[open] > summary {
  margin-bottom: 0;
}
.signin-password > .card {
  margin-top: 16px;
}

/* ==========================================================================
   PAGE SETTINGS v2 (2026-10-05): "Your reel style" card (page-style.js) and
   the one-line rows under it. Cream canvas, white card, one royal blue.
   Phone: 44px targets, 16px inputs, no sideways scroll at 380px.
   ========================================================================== */
.settings-v2 {
  max-width: 1100px;
  margin: 0 auto;
}
.ps-card {
  padding: 24px;
}
.ps-head h2 {
  margin: 0 0 4px;
}
.ps-head p {
  margin: 0;
}
/* a small quiet explanation next to the thing it explains */
.ps-hint {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.4;
}
.ps-hint[hidden] {
  display: none;
}
.ps-group legend + .ps-hint {
  margin-top: -6px;
}
.ps-preview .ps-hint {
  max-width: 300px;
  text-align: center;
}
.ps-head {
  margin-bottom: 14px;
}
.ps-reason {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 13px;
}
.ps-includes {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}
.ps-includes[hidden] {
  display: none;
}
/* a save is in flight: nothing on the card can be changed */
.ps-saving :is(.ps-styles, [data-controls], [data-more-slot], [data-admin]) {
  opacity: 0.55;
}
/* Page settings header: one small title ("Page settings"), on every screen
   size, so the style tiles and the preview are on the first screen. */
.heading.settings-heading {
  margin-bottom: 16px;
  padding-bottom: 16px;
}
.settings-heading p.muted {
  display: none;
}
.settings-heading h1 {
  margin: 0;
  font-size: 24px;
}
@media (max-width: 600px) {
  .heading.settings-heading {
    margin-bottom: 12px;
    padding-bottom: 12px;
  }
  .settings-heading h1 {
    font-size: 20px;
  }
  .settings-v2 > .toolbar {
    margin-bottom: 12px;
  }
}
.ps-styles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.ps-style {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 92px;
  padding: 12px 16px 12px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  text-align: left;
}
.ps-style:hover {
  background: var(--muted);
}
.ps-style[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}
.ps-still {
  flex: none;
  width: 42px;
  aspect-ratio: 9 / 16;
  border-radius: 6px;
  overflow: hidden;
  background: #282b30;
}
.ps-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ps-style-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.ps-style-text strong {
  font-size: 16px;
  font-weight: 600;
}
.ps-style-text small {
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}
.ps-body {
  display: grid;
  gap: 20px;
}
.ps-controls {
  display: grid;
  gap: 20px;
  align-content: start;
  min-width: 0;
}
.ps-controls [data-controls] {
  display: grid;
  gap: 20px;
}
.ps-group {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: grid;
  gap: 10px;
}
.ps-group legend {
  padding: 0;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
}
.ps-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ps-chip {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  gap: 8px;
  font-weight: 500;
}
.ps-chip[aria-pressed="true"],
.ps-font[aria-pressed="true"],
.ps-brand.selected .ps-brand-pick {
  border-color: var(--primary);
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--ring);
  color: var(--foreground);
}
.ps-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgb(0 0 0 / 0.25);
  flex: none;
}
/* the brand pill and its code box always share one line, in both rows */
.ps-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 140px);
  justify-content: start;
  align-items: center;
  gap: 8px;
}
.ps-brand-pick {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px 0 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.ps-brand-pick input[type="color"] {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.ps-brand-pick input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
.ps-brand-pick input[type="color"]::-webkit-color-swatch {
  border: 1px solid rgb(0 0 0 / 0.25);
  border-radius: 50%;
}
/* No brand colour picked yet: an empty ring to tap, never a leftover colour. */
.ps-swatch {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: none;
}
.ps-brand-empty .ps-swatch {
  border: 1.5px dashed var(--muted-foreground);
  background: var(--muted);
}
.ps-brand-empty .ps-swatch::before {
  content: "+";
  grid-area: 1 / 1;
  color: var(--muted-foreground);
  font-size: 18px;
  line-height: 1;
}
.ps-brand-empty .ps-swatch input[type="color"] {
  grid-area: 1 / 1;
  opacity: 0;
}
.ps-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.ps-hex {
  width: 100%;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}
.ps-hex::placeholder {
  font-family: Inter, system-ui, sans-serif;
  text-transform: none;
}
.ps-hex[aria-invalid="true"] {
  border-color: var(--destructive);
}
.ps-hex-error {
  color: var(--destructive);
  grid-column: 1 / -1;
}
.ps-hex-error[hidden] {
  display: none;
}
.ps-note {
  margin: 0;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 13px;
}
.ps-fonts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.ps-font {
  min-height: 64px;
  font-size: 20px;
  letter-spacing: 0;
  border-radius: var(--radius-xl);
}
.ps-toggle {
  justify-self: start;
  min-height: 44px;
  gap: 10px;
  padding: 0 14px 0 10px;
}
.ps-switch {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--border);
  transition: background-color 0.15s;
}
.ps-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
  transition: transform 0.15s;
}
.ps-toggle[aria-checked="true"] .ps-switch {
  background: var(--primary);
}
.ps-toggle[aria-checked="true"] .ps-switch::after {
  transform: translateX(16px);
}
.ps-more {
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
}
.ps-more summary {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.ps-more .look-grid {
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
}
.ps-save {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
}
.ps-save-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.ps-save .primary {
  min-height: 44px;
  padding: 0 22px;
  font-size: 15px;
}
.ps-link {
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--muted-foreground);
  text-decoration: underline;
  padding: 0 4px;
}
.ps-link:hover {
  background: none;
  color: var(--foreground);
}
.ps-link[hidden] {
  display: none;
}
.ps-saved {
  color: oklch(0.52 0.14 150);
  font-weight: 600;
}
.ps-save-note {
  margin: 0;
  font-size: 13px;
}
.ps-preview {
  display: grid;
  gap: 8px;
  justify-items: center;
  align-content: start;
}
.ps-frame {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #16191b;
  box-shadow: 0 10px 30px -14px rgb(0 0 0 / 0.45);
}
.ps-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ps-frame-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #c9ccd1;
  font-size: 13px;
  padding: 0 20px;
  text-align: center;
  line-height: 1.4;
}
.ps-frame video[hidden] {
  display: none;
}
/* Fast preview: the caption-free clip and the captions drawn over it,
   exactly on top of the exact clip (same box, same cover fit). */
.ps-frame .ps-fast {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ps-frame .ps-fast[hidden] {
  display: none;
}
.ps-frame-empty[hidden],
.ps-updating[hidden],
.ps-preview-error[hidden] {
  display: none;
}
.ps-updating {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.65);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.ps-preview-error {
  margin: 0;
  max-width: 300px;
  text-align: center;
  font-size: 13px;
  color: var(--muted-foreground);
}
.ps-readonly {
  margin: 0;
}
/* desktop: controls left, the preview sticky on the right */
@media (min-width: 900px) {
  .ps-body {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
  }
  .ps-preview {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 76px; /* below the 56px sticky top bar */
    align-self: start;
  }
  .ps-controls {
    grid-column: 1;
    grid-row: 1;
  }
}
/* phone: the preview on top, kept in view while the controls scroll */
@media (max-width: 899px) {
  .ps-preview {
    position: sticky;
    top: 56px; /* right under the sticky top bar */
    z-index: 2;
    padding: 8px 0;
    background: var(--card);
    /* paint over the card's side padding so controls never peek past it */
    box-shadow:
      -24px 0 0 var(--card),
      24px 0 0 var(--card);
  }
  .ps-frame {
    max-width: none;
    width: auto;
    height: min(42vh, 360px);
  }
  .ps-preview .ps-hint {
    max-width: none;
    font-size: 12px;
  }
  /* Anything brought into view (keyboard, a tapped label) lands below the
     pinned preview, never underneath it. */
  .ps-controls :is(button, input, select, textarea, summary, fieldset) {
    /* the frame + the one hint line under it (Meme style), on top of the
       page's own top-bar offset */
    scroll-margin-top: calc(min(42vh, 360px) + 24px + 32px);
  }
}
@media (max-width: 600px) {
  .ps-card {
    padding: 16px;
  }
  .ps-preview {
    box-shadow:
      -16px 0 0 var(--card),
      16px 0 0 var(--card);
  }
  .ps-styles {
    gap: 8px;
  }
  .ps-style {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
  }
  .ps-still {
    display: none;
  }
  .ps-style-text strong {
    font-size: 15px;
  }
  .ps-style-text small {
    font-size: 12px;
  }
  .ps-controls input,
  .ps-controls select,
  .ps-controls textarea {
    font-size: 16px;
  }
  .ps-controls .two {
    grid-template-columns: 1fr;
  }
}
/* the other settings: one line each until opened */
.settings-row {
  padding: 0;
  margin-bottom: 10px;
}
.settings-row > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 20px;
  font-size: 15px;
}
.settings-row[open] > summary {
  margin-bottom: 0;
  border-bottom: 1px solid var(--hairline);
}
.settings-row-body {
  padding: 18px 20px 20px;
}
.settings-row-body .card {
  border: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
}
.settings-row-body #page-learning > h2 {
  display: none;
}
.ps-notes {
  margin: 0;
  padding-left: 18px;
  color: var(--muted-foreground);
  font-size: 13px;
}
.ps-notes[hidden] {
  display: none;
}
/* 14. Show / hide password on the sign-in page (on screen with email sign-in
   on or off). A .text-link button on its own row, right under its box. */
.password-toggle {
  justify-self: end;
  margin-top: -9px;
  font-size: 14px;
}
/* Phone review (UX audit row 3): watch and decide without scrolling.
   Phones only; nothing here applies from 601px up. */
@media (max-width: 600px) {
  /* Your clips: a tighter heading, the picture beside the text, so the first
     card's Approve / Send feedback / Reject sit in the first screen. */
  main:has([data-clip-list]) .ll-heading {
    margin-bottom: 12px;
    padding-bottom: 12px;
    gap: 10px;
  }
  main:has([data-clip-list]) .ll-heading p.muted {
    font-size: 14px;
    line-height: 1.35;
    margin-top: 2px;
  }
  main:has([data-clip-list]) .queue-filters {
    margin: 10px 0;
  }
  .clip-card .clip-top:has(> .reel-inline-player) {
    flex-direction: row;
    gap: 12px;
    padding: 12px;
  }
  .clip-card .clip-top:has(> .reel-inline-player) .clip-body {
    width: auto;
    flex: 1;
    min-width: 0;
    padding: 0;
  }
  .clip-card .clip-top:has(> .reel-inline-player) h3 {
    font-size: 16px;
    line-height: 1.3;
    margin: 6px 0 4px;
  }
  .clip-card .clip-top:has(> .reel-inline-player) .clip-body p {
    margin: 4px 0 0;
  }
  .clip-card .clip-top:has(> .reel-inline-player) .source-title {
    font-size: 13px;
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }
  .clip-card .clip-top:has(> .reel-inline-player) .clip-body small,
  .clip-card .clip-top:has(> .reel-inline-player) .clip-body p a {
    font-size: 13px;
  }
  .clip-card .clip-top:has(> .reel-inline-player) + .actions {
    padding: 10px 12px;
  }
  .clip-card .clip-top:has(> .reel-inline-player) + .actions button {
    font-size: 13px;
  }
  /* The three decisions share one row, also at 360px. */
  .clip-card .clip-top:has(> .reel-inline-player) + .actions .card-actions-main {
    flex-wrap: wrap;
    width: 100%;
  }
  /* ...and Edit takes its own full row under them (Gilad 10-15) */
  .clip-card .clip-top:has(> .reel-inline-player) + .actions .card-actions-main > .card-edit {
    flex-basis: 100%;
  }
  .clip-card .clip-top:has(> .reel-inline-player) + .actions .card-actions-main > button {
    flex: 1 1 auto;
    padding-inline: 10px;
    white-space: nowrap;
  }
}
/* Full review on a phone: the video leaves room and the decisions stay in
   reach in a bar at the bottom of the screen. Only when the review offers a
   decision (a scheduled or posted reel has Download alone and keeps the
   normal page), and only on a screen tall enough to hold a video above the
   bar (with the keyboard open the bar flows in the page as before).
   --review-bar-h is the bar's real height and --review-stack-h adds a shown
   refusal line; workspace.js measures both, so the page's free space, the
   refusal line and the notice toast follow the bar however it wraps. */
@media (max-width: 600px) and (min-height: 621px) {
  main:has(.review .verdict-actions > :is([name="decision"], [data-send-feedback], [data-card-decision])) {
    padding-top: 16px;
    padding-bottom: calc(var(--review-bar-h, 112px) + 32px);
  }
  main:has(.review .verdict-actions > :is([name="decision"], [data-send-feedback], [data-card-decision])) > .heading {
    margin-top: 12px !important;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }
  main:has(.review .verdict-actions > :is([name="decision"], [data-send-feedback], [data-card-decision])) > .heading h1 {
    font-size: 22px;
  }
  .review:has(.verdict-actions > :is([name="decision"], [data-send-feedback], [data-card-decision])) .player {
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    max-height: calc(100svh - 270px - var(--review-bar-h, 112px));
    min-height: 240px;
  }
  .review .verdict-actions:has(> :is([name="decision"], [data-send-feedback], [data-card-decision])) {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    margin: 0;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    gap: 6px;
    flex-wrap: wrap;
    background: var(--card);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgb(0 0 0 / 0.06);
  }
  .review #verdict-form .verdict-actions:has(> :is([name="decision"], [data-send-feedback], [data-card-decision])) > button {
    flex: 1 1 auto;
    min-height: 44px;
    padding-inline: 8px;
    font-size: 13px;
    white-space: nowrap;
  }
  /* An owner's Download takes its own row under the decisions. */
  .review #verdict-form .verdict-actions:has(> :is([name="decision"], [data-send-feedback], [data-card-decision])) > [data-action="download"] {
    flex-basis: 100%;
  }
  /* A refused decision is said right above the bar, not far down the page;
     the notice toast sits above the bar, or above that line when it shows. */
  .review #verdict-form:has(.verdict-actions > :is([name="decision"], [data-send-feedback], [data-card-decision])) > .form-error:not(:empty) {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(var(--review-bar-h, 112px) + 8px);
    z-index: 60;
    margin: 0;
    padding: 10px 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
  }
  body:has(.review .verdict-actions > :is([name="decision"], [data-send-feedback], [data-card-decision])) #notice {
    bottom: calc(var(--review-stack-h, 112px) + 12px);
  }
}
/* The three decisions stay on one row down to 320px. */
@media (max-width: 359px) and (min-height: 621px) {
  .review .verdict-actions:has(> :is([name="decision"], [data-send-feedback], [data-card-decision])) {
    padding-inline: 6px;
    gap: 4px;
  }
  .review #verdict-form .verdict-actions:has(> :is([name="decision"], [data-send-feedback], [data-card-decision])) > button {
    padding-inline: 4px;
  }
}
@media (max-width: 600px) {
  /* phones: the same 80px tile as a reel card; the text stays beside it, so a
     card with nothing to press stays short */
  .clip-card .clip-media.applying-media {
    width: 80px;
    height: 142px;
  }
}

/* Admin options: Match a font from a screenshot (font-match.js) */
.fm {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
}
.fm h3 {
  margin: 0;
  font-size: 15px;
}
.fm-stage {
  position: relative;
  justify-self: start;
  max-width: 100%;
  line-height: 0;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}
.fm-stage[hidden] {
  display: none;
}
.fm-stage img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  border-radius: 6px;
}
.fm-box {
  position: absolute;
  border: 2px solid var(--primary);
  background: rgba(52, 125, 255, 0.15);
  pointer-events: none;
}
.fm-box[hidden] {
  display: none;
}
.fm-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.fm-results {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fm-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.fm-pair figure {
  margin: 0;
}
.fm-pair img {
  display: block;
  width: 100%;
  border-radius: 6px;
  background: #111;
}
.fm-pair figcaption {
  font-size: 12px;
  color: var(--muted-foreground);
}
.fm-name {
  margin: 6px 0 2px;
}

/* Original vs Corrected in the full review (workspace.js versionsCard):
   side by side; on a phone one at a time behind the two-button toggle. */
.versions .versions-change {
  font-weight: 600;
}
.versions-note p {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.versions-toggle {
  display: none;
  gap: 8px;
  margin-top: 12px;
}
.versions-toggle button[aria-pressed="true"] {
  background: #edf3ff;
  border-color: #347dff;
  color: #347dff;
}
.versions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.versions-grid figure {
  margin: 0;
}
.versions-grid figcaption {
  font-weight: 600;
  margin-bottom: 6px;
}
.versions .player {
  max-height: 520px;
}
@media (max-width: 600px) {
  .versions-toggle {
    display: flex;
  }
  .versions-grid {
    grid-template-columns: 1fr;
  }
  .versions[data-active="corrected"] [data-version="original"],
  .versions[data-active="original"] [data-version="corrected"] {
    display: none;
  }
  .versions .player {
    max-height: 60vh;
  }
}

/* Learning Log: Notes per week (learning-log.js noteCounts) */
.ll-note-counts-page {
  font-size: 15px;
  margin: 18px 0 6px;
}
/* Owner editor: the live preview stage (workspace.js stageSlot / mountStage).
   A 9:16 frame scaled to fit, the clip's layers stacked inside it; the real
   video above stays the default view. */
.stage-toggle {
  display: flex;
  gap: 8px;
  margin: 10px 0 8px;
}
.stage-toggle button[aria-pressed="true"] {
  background: #16191d;
  color: #fff;
}
.stage-frame {
  position: relative;
  width: 100%;
  max-width: min(370px, calc(76vh * 9 / 16));
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
}
.stage-frame > .stage-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.stage-frame > img.stage-layer {
  object-fit: fill;
}
/* the reel's own still (B1b): display only, never a control */
.stage-frame > .stage-backdrop {
  object-fit: fill;
  pointer-events: none;
}
.stage-frame > .stage-media {
  position: absolute;
  object-fit: fill;
  /* transparent: at a fractional size a black box showed as a 1 px seam */
  background: transparent;
}
/* Waiting for the page picture: nothing of the frame is shown yet, only a
   plain "Loading the preview…" on a neutral fill. */
.stage-frame[data-background-pending] {
  background: var(--muted) !important;
}
.stage-frame[data-background-pending] > :not(.stage-loading) {
  visibility: hidden;
}
.stage-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 14px;
}
.stage-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.stage-controls input[type="range"] {
  flex: 1;
  min-width: 0;
}
.stage-note,
.stage-reason {
  font-size: 14px;
  margin: 8px 0 0;
}
/* The real player is hidden while the stage shows: the phone review rule
   above (.player {display: block}) would otherwise beat [hidden]. */
.review .player[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .stage-frame {
    max-width: min(100%, calc(48vh * 9 / 16));
  }
}
/* Owner editor B2: the controls under the live preview
   (static/stage-editor.js). The strip is the clip's timeline: caption lines,
   the trimmed-off ends and the playhead. */
/* A hidden control stays hidden whatever its display (a flex button). */
.stage-editor [hidden] {
  display: none !important;
}
/* A Save's answer sits under that Save; scrolled into view, it stays clear
   of the phone's decision bar. */
.stage-editor [data-se-status] {
  scroll-margin-top: 12px;
  scroll-margin-bottom: calc(var(--review-bar-h, 112px) + 16px);
}
.stage-editor {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.stage-editor .se-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.se-strip {
  position: relative;
  height: 44px;
  border-radius: 8px;
  background: #e8ebef;
  touch-action: none;
  user-select: none;
  overflow: visible;
}
.se-strip-lines,
.se-strip-marks {
  position: absolute;
  inset: 0;
}
.se-strip-marks {
  pointer-events: none;
}
.se-mark-line {
  position: absolute;
  top: 12px;
  height: 20px;
  border-radius: 4px;
  background: #9fb3c8;
  border-left: 1px solid #fff;
}
.se-off {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(22, 25, 29, 0.55);
}
.se-head {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: #16191d;
}
.se-handle {
  position: absolute;
  top: -6px;
  bottom: -6px;
  width: 18px;
  margin-left: -9px;
  padding: 0;
  border-radius: 6px;
  background: #16191d;
  cursor: ew-resize;
  z-index: 2;
}
.se-section summary {
  font-weight: 600;
  cursor: pointer;
}
.se-section {
  display: grid;
  gap: 8px;
}
.se-lines {
  display: grid;
  gap: 4px;
  max-height: 260px;
  overflow: auto;
}
.se-line-note:empty {
  display: none;
}
.se-line-note {
  color: #a3261c;
}
.se-kind {
  display: block;
  color: #4a5561;
}
/* Phone review with the decision bar: the stage is as tall as the player
   was, and scrolling it into view keeps it above the bar. */
@media (max-width: 600px) and (min-height: 621px) {
  .review .stage-frame {
    max-width: min(100%, calc((100svh - 270px - var(--review-bar-h, 112px)) * 9 / 16));
  }
  .review .stage {
    scroll-margin-top: 12px;
    scroll-margin-bottom: calc(var(--review-bar-h, 112px) + 16px);
  }
}

/* New marker + the folded Older group on the Ready tab. */
.badge.new-reel {
  margin-left: 6px;
  background: oklch(0.97 0.014 254.604);
  color: oklch(0.488 0.243 264.376);
  border-color: color-mix(in oklab, oklch(0.623 0.214 259.815) 30%, transparent);
}
.older-group {
  margin-top: 24px;
}
.older-group > summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 600;
}
.older-group > p {
  margin: 0 0 12px;
}
.skipped-line {
  margin: 0 0 12px;
}

/* Legal pages (/terms /privacy /refund /copyright, legal_pages.py) and the
   small link row under the sign-in form and at the foot of the workspace. */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 70px;
}
.legal > .logo {
  margin-bottom: 34px;
}
.legal h2 {
  margin-top: 30px;
}
.legal li {
  margin-bottom: 8px;
}
.guide img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 8px 0 4px;
  border: 1px solid var(--border, #ddd);
  border-radius: 8px;
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: center;
  margin-top: 30px;
  font-size: 13px;
}
/* "By clicking “<the button>”, you agree to the Terms of Service and Privacy Policy." right under
   each sign-in button, inside its card: body size and colour, underlined links (launch words 11-23) */
.legal-agree {
  margin: 0;
}
.legal-agree a {
  text-decoration: underline;
}
.site-legal {
  padding: 0 24px 28px;
}

/* Text reels 3/4 (switched off): the Text reels tab, static/text-reels.js.
   Same tokens as every other card; nothing new. */
.tr-make form { display: grid; gap: 0.6rem; }
.tr-make input[name="topic"] { width: 100%; }
.tr-source { margin-bottom: 1rem; }
.tr-source form { display: grid; gap: 0.6rem; }
.tr-source input { width: 100%; }
.tr-from { font-size: 0.875rem; overflow-wrap: anywhere; margin: 0; }
.tr-hint { font-size: 0.875rem; }
.tr-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem; }
.tr-item { display: grid; gap: 0.75rem; }
.tr-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.tr-head .status-pill { font-size: 0.75rem; padding: 0.15rem 0.6rem; border-radius: 999px;
  background: var(--muted); color: var(--muted-foreground); white-space: nowrap; }
.tr-head .tr-done { background: var(--accent); color: var(--primary); }
.tr-head .tr-failed { color: var(--destructive); }
.tr-body { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 1rem;
  align-items: start; }
.tr-video { width: 100%; aspect-ratio: 9 / 16; border-radius: var(--radius-md);
  background: var(--foreground); }
.tr-side { display: grid; gap: 0.6rem; }
.tr-caption-label { display: grid; gap: 0.3rem; font-weight: 600; }
.tr-caption { width: 100%; font: inherit; font-weight: 400; resize: vertical; }
.tr-flag { margin: 0; color: var(--destructive); font-size: 0.875rem; }
.tr-song { margin: 0; }
@media (max-width: 640px) {
  .tr-body { grid-template-columns: 1fr; }
  .tr-video { max-width: 260px; }
}

/* Text reels 5 (switched off): "Text reel style" in Page settings, static/text-reel-style.js.
   Same tokens as every other card; the preview pictures are real renders. */
.trs { display: grid; gap: 0.6rem; margin-bottom: 1rem; }
.trs h2 { margin: 0; font-size: 1.05rem; }
.trs-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 1rem;
  align-items: start; }
.trs-form { display: grid; gap: 0.75rem; }
.trs-form fieldset { border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 0.6rem 0.75rem; display: grid; gap: 0.45rem; margin: 0; }
.trs-form legend { font-weight: 600; padding: 0 0.3rem; }
.trs-form label { display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; }
.trs-form .trs-radio, .trs-form .trs-check { justify-content: flex-start; gap: 0.5rem; }
.trs-form input[type="color"] { width: 3rem; height: 2rem; padding: 0; border: 1px solid
  var(--border); border-radius: var(--radius-sm, 6px); background: none; }
.trs-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.trs-preview img { width: 100%; aspect-ratio: 9 / 16; border-radius: var(--radius-md);
  background: var(--muted); object-fit: cover; }
.trs-preview p { grid-column: 1 / -1; margin: 0; font-size: 0.875rem; }
@media (max-width: 720px) {
  .trs-body { grid-template-columns: 1fr; }
}
.trs-warn p { margin: 0; color: var(--destructive); font-size: 0.875rem; }
.trs-form input[type="range"] { flex: 1; }
.trs-form input[type="file"] { max-width: 60%; }
.trs-pic-on { display: flex; align-items: center; justify-content: space-between; margin: 0; }
/* Text reels onboarding (switched off): static/text-reel-onboarding.js. */
.tr-onboard { display: grid; gap: 0.75rem; margin-bottom: 1rem; }
.tr-onboard fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.tr-onboard legend { padding: 0; margin-bottom: 0.5rem; }
.tr-onboard .toolbar { margin-top: 0.75rem; }
.tro-look:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.tro-warn { margin: 0; font-size: 0.875rem; }
.tro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; }
.tro-look { display: grid; gap: 0.35rem; align-content: start; padding: 0.5rem;
  border: 2px solid var(--border); border-radius: var(--radius-md); cursor: pointer; }
.tro-look.selected { border-color: var(--primary); }
.tro-look input { position: absolute; opacity: 0; pointer-events: none; }
.tro-look img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: var(--radius-sm, 6px); }
.tro-look .muted { font-size: 0.8125rem; }

/* ==========================================================================
   Text reels as three pages: Setup / Make / Approvals (static/text-reel-pages.js,
   switched off: drawn only for a page with text_reels_pages). The carousel tool's
   approvals look: one card per reel, video left, full-width stacked actions right.
   ========================================================================== */
.trp { display: grid; gap: 1rem; max-width: 960px; }
.trp-card { display: grid; gap: 1rem; }
.trp-small { font-size: 0.875rem; margin: 0; }
.trp-label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.9375rem; }
/* "Or paste the text" hides the link box and its label: grid beats [hidden] otherwise */
.trp-form label[hidden], .trp-form input[hidden] { display: none; }
.trp-label input, .trp-label textarea, .trp-form input { width: 100%; font: inherit; font-weight: 400; }
.trp-label textarea { resize: vertical; }
.trp-big { min-height: 2.75rem; font-size: 1rem; width: 100%; justify-content: center; }
.trp-spin { display: inline-block; width: 1em; height: 1em; border-radius: 50%; vertical-align: -0.15em;
  border: 2px solid var(--border); border-top-color: var(--primary); animation: trp-spin 0.8s linear infinite; }
@keyframes trp-spin { to { transform: rotate(360deg); } }

/* Setup */
.trp-steps { display: grid; gap: 1.75rem; }
.trp-step { display: grid; gap: 0.9rem; }
.trp-step + .trp-step { border-top: 1px solid var(--hairline); padding-top: 1.5rem; }
.trp-step-head { display: flex; gap: 0.75rem; align-items: flex-start; }
.trp-step-head h2 { margin: 0; font-size: 1.125rem; }
.trp-step-head h2:focus { outline: none; }
.trp-step-head h2:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.trp-num { flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--primary); font-weight: 700; font-size: 0.875rem; }
.trp-drop { position: relative; display: grid; place-items: center; min-height: 6.5rem; padding: 1rem;
  border: 1.5px dashed var(--border); border-radius: var(--radius-xl); background: var(--muted); cursor: pointer;
  text-align: center; transition: border-color 0.15s, background 0.15s; }
.trp-drop:hover, .trp-drop:focus-within { border-color: var(--primary); background: var(--accent); }
.trp-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.trp-drop-text { display: grid; gap: 0.2rem; }
.trp-swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.trp-swatch { width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 1px solid var(--border);
  box-shadow: inset 0 0 0 2px #fff; }
.trp-swatch.main { width: 2.25rem; height: 2.25rem; outline: 2px solid var(--primary); outline-offset: 2px; }
.trp-looks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; }
.trp-look { display: grid; gap: 0.4rem; justify-items: center; padding: 0.4rem; border-radius: var(--radius-xl);
  border: 2px solid transparent; cursor: pointer; text-align: center; font-size: 0.9375rem; }
.trp-look:hover { background: var(--muted); }
.trp-look.selected { border-color: var(--primary); background: var(--accent); }
.trp-look:focus-within { outline: 2px solid var(--ring); outline-offset: 2px; }
.trp-look input { position: absolute; opacity: 0; pointer-events: none; }
.trp-look-img { position: relative; display: block; width: 100%; }
.trp-look-img img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: var(--radius-md); box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); background: #fff; }
.trp-look-busy { position: absolute; inset: 0; display: grid; place-items: center; border-radius: var(--radius-md);
  background: rgb(255 255 255 / 0.6); font-size: 1.5rem; }
.trp-look-busy-text { position: absolute; left: 4px; right: 4px; bottom: 6px; padding: 2px 4px; border-radius: 6px; text-align: center;
  font-size: 0.6875rem; line-height: 1.25; background: var(--background); color: var(--muted-foreground); }
.trp-ctx { display: grid; gap: 0.75rem; }
.trp-ctx-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.trp-ctx > .button { justify-self: start; }
.trp-ctx input[data-trp-offer-text], .trp-ctx input[data-trp-caption-line] { width: 100%; font: inherit; }
.trp-ends { border: 0; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
/* the ending being changed starts its own group: a clear space above its "Ending 2" label and
   below its last card when a saved ending follows (live 11-14: ~10 px, read as one block) */
.trp-end-saved + .trp-ends, .trp-ends + .trp-end-saved { margin-top: 1.25rem; }
.trp-ends legend { margin-bottom: 0.5rem; padding: 0; }
.trp-end { position: relative; display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.75rem 0.9rem;
  border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; background: var(--card); }
.trp-end:hover { background: var(--muted); }
.trp-end.selected { border-color: var(--primary); background: var(--accent); }
.trp-end input[type="radio"] { margin-top: 0.25rem; accent-color: var(--primary); }
.trp-end > span { display: grid; gap: 0.2rem; }
.trp-own-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: 0.4rem; font-weight: 600; }
.trp-own-row input[name="offer_word"] { width: 7.5rem; text-transform: uppercase; }
.trp-own-row input[name="offer_what"] { flex: 1 1 12rem; }
.trp-own textarea[name="ending_text"] { width: 100%; margin-top: 0.4rem; resize: none; font: inherit; }
.trp-own { display: grid; gap: 0.3rem; }
.trp-warn { color: var(--destructive, #b42318); }
.trp-end-saved { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: space-between; align-items: center; padding: 0.6rem 0.9rem; border: 1px solid var(--border); border-radius: 0.6rem; margin-top: 0.5rem; }
.trp-end-saved > span:first-child { display: grid; gap: 0.2rem; min-width: 0; flex: 1 1 14rem; }
.trp-end-actions { display: flex; gap: 0.4rem; }
.trp-add-ending { margin-top: 0.6rem; justify-self: start; }
.trp-add-ending[hidden] { display: none; }   /* .button's inline-flex beat [hidden]: a 42 px gap above Save on a new, empty ending (live check 11-13) */
.trp-end-pick { border: 0; margin: 0.4rem 0 0; padding: 0; }
.trp-end-pick legend { padding: 0; margin-bottom: 0.4rem; }
.trp-end-opts { display: grid; gap: 0.35rem; }
.trp-end-opt { display: flex; gap: 0.5rem; align-items: flex-start; }
.trp-end-opt input { flex: none; margin-top: 0.2rem; }
.trp-end-opt span { overflow-wrap: anywhere; }
.trp-save { display: grid; gap: 0.75rem; }
.trp-saved, .trp-hint { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--accent); border-color: transparent; }
.trp-advanced { border-top: 1px solid var(--hairline); padding-top: 1rem; }
.trp-advanced > summary { cursor: pointer; font-weight: 600; color: var(--muted-foreground); }
.trp-advanced[open] > summary { margin-bottom: 1rem; color: var(--foreground); }
/* Setup easy to scan (beginner sweep 11-19): one "what this is" line per part, "Next" folds a
   finished part to one line of what it holds ("Change" opens it), and a magnifier on every look
   and cover card opens its picture full width (a phone card is ~150 px wide) */
.trp-setup-intro { margin: 0; }
.trp-step-title { flex: 1 1 auto; min-width: 0; display: grid; gap: 0.15rem; }
.trp-step-title p { margin: 0; }
.trp-step-head > [data-trp-unfold] { flex: none; align-self: center; }
.trp-step-body { display: grid; gap: 0.9rem; min-width: 0; }
.trp-step-body[hidden] { display: none; }
.trp-step-body > * { min-width: 0; }
.trp-next { justify-self: start; }
.trp-folded .trp-what, .trp-folded [data-trp-look-note] { display: none; }
.trp-folded .trp-num { background: var(--primary); color: #fff; }
.trp-step-sum { font-weight: 600; overflow-wrap: anywhere; }
.trp-advanced > .trp-what { margin: 0 0 0.75rem; }
.trp-zoom { position: absolute; bottom: 6px; right: 6px; z-index: 2; width: 34px; height: 34px; min-height: 0; padding: 0;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid rgb(0 0 0 / 0.15);
  background: rgb(255 255 255 / 0.92); color: #111; box-shadow: 0 1px 4px rgb(0 0 0 / 0.2); cursor: zoom-in; }
/* bottom-right, never over the preview's headline; the busy and failed notes keep clear of it */
.trp-zoom ~ .trp-look-busy .trp-look-busy-text, .trp-zoom ~ .trp-look-failed { right: 44px; }
.trp-zoom:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.trp-zoom-dialog { width: min(440px, calc(100vw - 16px)); max-width: none; max-height: calc(100dvh - 16px); padding: 0.5rem;
  border: 0; border-radius: var(--radius-xl); background: var(--card); color: var(--foreground); overflow: auto; }
.trp-zoom-dialog::backdrop { background: rgb(0 0 0 / 0.65); }
.trp-zoom-dialog figure { margin: 0; display: grid; gap: 0.5rem; justify-items: center; }
.trp-zoom-dialog img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 150px); object-fit: contain;
  border-radius: var(--radius-md); background: #fff; }
.trp-zoom-actions { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 0.5rem; flex-wrap: wrap; }

/* Make */
.trp-make-card { max-width: 640px; }
/* "Or paste the text" (2026-11-13): a quiet link under the link box; the box itself never zooms a phone (16px) */
.trp-paste-toggle { justify-self: start; }
.trp-fine { display: grid; gap: 0.5rem; }
.trp-fine-toggle { justify-self: start; }
.trp-fine-toggle::after { content: " \25BE"; }
.trp-fine-toggle[aria-expanded="true"]::after { content: " \25B4"; }
.trp-fine-box { display: grid; gap: 0.6rem; padding: 0.75rem; border: 1px solid var(--border, rgba(127,127,127,0.3)); border-radius: 10px; }
.trp-fine-box > .muted { margin: 0; }
.trp-fine[hidden], .trp-fine-box[hidden] { display: none; }
/* a Fine tune choice that is off in Setup: shown greyed, unticked, with one line to Setup */
.trp-check.trp-fine-offpick { color: var(--muted-foreground); cursor: default; opacity: 0.75; }
.trp-fine-off { margin: 0; }
.trp-fine-off[hidden] { display: none; }
.trp-paste { display: grid; gap: 0.6rem; }
.trp-paste[hidden] { display: none; }
.trp-paste textarea { width: 100%; box-sizing: border-box; font-size: 16px; font-weight: 400; min-height: 10rem;
  resize: vertical; }
.trp-paste-count { margin: 0; }
.trp-paste-count.trp-over { color: var(--danger, #b42318); }
.trp-form { display: grid; gap: 0.6rem; }
.trp-form .trp-big { margin-top: 0.5rem; }
/* Generate's progress card, at the top (beginner guide 11-18: the old small line sat under the box) */
.trp-progress { display: flex; align-items: center; gap: 0.9rem; max-width: 640px; background: var(--accent);
  border-color: transparent; }
.trp-progress[hidden] { display: none; }
.trp-progress-text { flex: 1; min-width: 0; display: grid; gap: 0.15rem; }
.trp-progress-text p { margin: 0; }
.trp-progress > .button { flex: none; }
.trp-progress.trp-progress-done { gap: 0.4rem; flex-wrap: wrap; }
.trp-left { margin: 0; }

/* Approvals */
.trp-tabs { display: inline-flex; gap: 0.25rem; padding: 0.25rem; border-radius: var(--radius); background: var(--muted);
  justify-self: start; }
.trp-tabs button { border: 0; background: transparent; padding: 0.4rem 0.9rem; border-radius: var(--radius-md);
  font-weight: 600; color: var(--muted-foreground); }
.trp-tabs button[aria-selected="true"] { background: var(--card); color: var(--foreground);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }
.trp-count { display: inline-block; min-width: 1.4em; padding: 0 0.35em; margin-left: 0.25rem; border-radius: 999px;
  background: var(--accent); color: var(--primary); font-size: 0.75rem; }
.trp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.trp-reel { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.trp-reel.trp-pending { grid-template-columns: 1fr; }
/* a day header in the list ("Today · 10 approved", Stef 11-22): small, muted, close to its cards */
.trp-day { margin: 0.25rem 0 -0.5rem; }
.trp-day:first-child { margin-top: 0.75rem; }
.trp-day h2 { margin: 0; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; color: var(--muted-foreground); }
.trp-days { overflow-wrap: anywhere; }
.trp-media video { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: var(--radius-md); background: #000; }
.trp-side { display: grid; gap: 0.75rem; align-content: start; }
.trp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
.trp-head h2 { margin: 0; font-size: 1.0625rem; line-height: 1.35; }
.trp-pill { flex: none; font-size: 0.75rem; font-weight: 600; padding: 0.15rem 0.6rem; border-radius: 999px;
  background: var(--muted); color: var(--muted-foreground); white-space: nowrap; }
.trp-pill.trp-done { background: var(--accent); color: var(--primary); }
.trp-pill.trp-ok { background: oklch(0.94 0.06 150); color: oklch(0.42 0.12 150); }
.trp-pill.trp-failed { color: var(--destructive); }
.trp-version { color: var(--primary); }
.trp-from { overflow-wrap: anywhere; }
/* the hook step's quiet "New hook. Before: ..." line (text_reels/hook_step.py swap_of) */
.trp-hook-before { overflow-wrap: anywhere; margin-top: 0.25rem; }
.trp-hook-before button { margin-left: 0.25rem; padding: 0.15rem 0.5rem; min-height: 0; font-size: inherit; vertical-align: baseline; }
.trp-bad { color: var(--destructive); }
.trp-okline { color: oklch(0.42 0.12 150); font-weight: 600; }
.trp-actions { display: grid; gap: 0.5rem; }
/* "Post to" on a reel waiting for approval (auto-publishing piece 2, dark: drawn only when the list
   sends publish_to); TikTok's fields open under its box */
.trp-postto { display: grid; gap: 0.45rem; margin: 0; padding: 0.75rem; min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); }
.trp-postto legend { padding: 0 0.25rem; }
.trp-postto p { margin: 0; }
.trp-postto select { max-width: 100%; }
.trp-postto [data-trp-post-row] { display: grid; gap: 0.45rem; min-width: 0; }
/* what happened on each platform (tl/autopublish-posted, dark: drawn only when a card carries
   `publishing`): one row per platform, its state chip, and for one that needs the member its action */
.trp-pub { display: grid; gap: 0.5rem; min-width: 0; }
.trp-pub p { margin: 0; }
.trp-pub-list { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.trp-pub-row { display: grid; gap: 0.3rem; min-width: 0; padding: 0.5rem 0.65rem; border: 1px solid var(--border); border-radius: var(--radius); }
.trp-pub-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; min-width: 0; }
.trp-pub-name { font-weight: 600; font-size: 0.875rem; overflow-wrap: anywhere; min-width: 0; }
.trp-pub-do { justify-self: start; }
/* after Approve / Not for me / Put it back the list settles for a second before the next card's
   buttons take a press (static/text-reel-pages.js SETTLE_MS: a double tap approved a second reel) */
.trp-settling [data-trp-do="approve"], .trp-settling [data-trp-do="reject"], .trp-settling [data-trp-do="restore"],
.trp-settling [data-trp-do="remove"], .trp-settling [data-trp-do="remove-yes"] {
  pointer-events: none; opacity: 0.55; transition: opacity 0.15s; }
.trp-panel[hidden], .trp-own[hidden] { display: none; }
.trp-panel { display: grid; gap: 0.6rem; padding: 0.9rem; border-radius: var(--radius); background: var(--muted); }
.trp-confirm p { margin: 0; }
.trp-danger { color: var(--destructive); border-color: var(--destructive); }
.trp-caption > summary { cursor: pointer; font-weight: 600; }
.trp-caption-text { width: 100%; margin-top: 0.5rem; font: inherit; resize: vertical; }
/* under the caption (Stef 11-22): Edit caption + Simpler caption, always in sight (not folded) */
.trp-caption-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.trp-caption-help { margin: 0.35rem 0 0.25rem; }
/* Generate's "How many reels from this link" (Stef 11-22) */
.trp-count-pick[hidden] { display: none; }
.trp-count-pick select { width: 100%; max-width: 12rem; }
.trp-count-pick p { margin: 0.25rem 0 0; }
/* the end of every caption, on every reel (Stef 11-20): what Setup adds, and Change right there */
.trp-capend { margin: 0.5rem 0 0.75rem; }
.trp-capend > p { margin: 0; line-height: 1.5; }
.trp-capend-panel { display: grid; gap: 0.6rem; margin-top: 0.5rem; }
.trp-capend-panel input[name=caption_line] { width: 100%; }
/* Setup's "Your caption" inside "How your reels end" */
.trp-sub { margin: 1.25rem 0 0; font-size: 1rem; }
.trp-files { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.trp-wait { display: flex; align-items: center; gap: 0.6rem; color: var(--muted-foreground); }
.trp-countdown { color: var(--foreground); font-variant-numeric: tabular-nums; white-space: nowrap; }
.trp-empty { display: grid; gap: 0.5rem; justify-items: start; }
.trp-empty h2 { margin: 0; }
.trp-approved { opacity: 0.98; }
/* the instant editor (2026-11-13): a saved edit's picture until its mp4 arrives, the live picture */
.trp-still { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius-md); background: var(--muted); }
.trp-still-wait { position: relative; overflow: hidden; }
.trp-still-wait img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.trp-still-note { position: absolute; left: 0.6rem; right: 0.6rem; bottom: 0.6rem; display: flex; align-items: center;
  justify-content: center; padding: 0.4rem 0.6rem; border-radius: var(--radius); background: var(--background);
  color: var(--muted-foreground); font-size: 0.8125rem; text-align: center; }
.trp-spin-sm { width: 0.85em; height: 0.85em; margin-right: 0.45em; border-width: 2px; }
button[data-trp-wait] { display: inline-flex; align-items: center; justify-content: center; cursor: progress; }
.trp-live[hidden] { display: none; }
/* the Edit panel on a phone (device check 2026-11-13): Save stays in reach above the keyboard */
.trp-label-row { display: flex; justify-content: space-between; gap: 0.5rem; }
.trp-panel textarea[name="headline"] { resize: vertical; }
.trp-savebar { position: sticky; bottom: 0; z-index: 2; margin: 0 -0.9rem -0.9rem; padding: 0.6rem 0.9rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: var(--muted); border-top: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); }
.trp-panel [data-trp-problem][hidden] { display: none; }
.trp-problem-line { display: block; }
.trp-problem-line + .trp-problem-line { margin-top: 0.25rem; }
[data-trp-count].trp-over { color: var(--destructive); font-weight: 600; }
.trp-head-limit { margin: 0; color: var(--muted-foreground); }
.trp-head-limit.trp-bad { color: var(--destructive); }
.trp-head-limit[hidden] { display: none; }
@media (max-width: 760px) {
  /* under 16px, iPhone Safari zooms the page when a box is tapped */
  .trp-panel input, .trp-panel textarea, .trp-panel select, .trp-caption-text { font-size: 16px; }
}
.trp-live { margin: 0; display: grid; gap: 0.3rem; justify-items: start; }
.trp-live img { display: block; width: 100%; max-width: 200px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius-md); background: var(--background); }

@media (max-width: 760px) {
  .trp-looks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trp-ctx-row { grid-template-columns: 1fr; }
  .trp-reel { grid-template-columns: 1fr; }
  .trp-media video, .trp-media .trp-still { max-width: 320px; margin: 0 auto; }
  .trp-saved, .trp-hint { flex-direction: column; align-items: stretch; }
  .trp-progress { flex-wrap: wrap; }
  .trp-progress > .button { flex: 1 1 100%; }
}
@media (max-width: 420px) {
  .trp-looks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Text reels pages, round ui-r1 */
.trp-look-failed { position: absolute; left: 0.25rem; right: 0.25rem; bottom: 0.25rem; padding: 0.3rem 0.4rem; border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.75); color: #fff; font-size: 0.75rem; line-height: 1.25; text-align: center; }
.trp-look-blank { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: var(--radius-md);
  background: var(--muted); }
.trp-locked { margin: 0; padding: 0.55rem 0.75rem; border-radius: var(--radius-md); background: var(--card);
  border: 1px dashed var(--border); color: var(--muted-foreground); font-weight: 400; font-size: 0.9375rem; }
div.trp-locked { display: grid; gap: 0.4rem; }
div.trp-locked p { margin: 0; }
.trp-file { position: relative; display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; font-weight: 400; }
.trp-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.trp-file-name { overflow-wrap: anywhere; }
.trp-ctx input[name="site_url"] { min-width: 0; }
@media (max-width: 760px) {
  .trp-steps { gap: 1.1rem; }
  .trp-step { gap: 0.6rem; }
  .trp-step + .trp-step { padding-top: 1rem; }
  .trp-step-head p:not(.trp-what):not(.trp-step-sum) { display: none; }   /* each part keeps its one "what this is" line */
  .trp-step-body { gap: 0.6rem; }
  .trp-drop { min-height: 4rem; padding: 0.6rem; }
  /* member sweep 11-12: all five looks in view, wrapped (a sideways swipe row hid three of them) */
  .trp-looks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trp-end { padding: 0.6rem 0.75rem; }
  .trp-end .trp-small { display: none; }
  .trp-end.selected .trp-small, .trp-own .trp-small { display: initial; }
}
/* grid children never widen the page (the phone's swipe row scrolls inside its own box) */
.trp, .trp > *, .trp-card, .trp-steps, .trp-step, .trp-looks, .trp-ctx, .trp-ends, .trp-end > span,
[data-trp-setup-form], .trp-step > * { min-width: 0; }
@media (max-width: 760px) {
  .trp-own-row input[name="offer_what"] { flex: 1 1 100%; }
}
.trp-look { position: relative; }   /* its hidden radio stays inside it (no page overflow) */
/* round ui-r2: the "for ..." field is a textarea that grows; on a phone the look strip shows a
   peek of the next look, so members see there are more */
.trp-own-row textarea[name="offer_what"] { flex: 1 1 12rem; min-width: 0; min-height: 2.6rem; resize: none; overflow: hidden;
  font: inherit; font-weight: 400; line-height: 1.4; padding: 0.45rem 0.6rem; }
@media (max-width: 760px) {
  .trp-own-row textarea[name="offer_what"] { flex: 1 1 100%; }
}
@media (max-width: 480px) {
  .trp-looks { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* a phone: two per row */
}
/* round member-screens: the niche in Setup, and reels that could not be made */
.trp-niche { display: grid; gap: 0.4rem; margin-top: 0.9rem; }
.trp-niche select, .trp-niche input { width: 100%; max-width: 28rem; min-width: 0; }
.trp-failed { margin-top: 1rem; }
.trp-failed > summary { cursor: pointer; font-weight: 600; color: var(--muted-foreground); }
.trp-failed > .trp-list { margin-top: 0.75rem; }
/* round ui-r3: "use my logo on reels" */
.trp-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; cursor: pointer; }
.trp-check input { accent-color: var(--primary); width: 1.05rem; height: 1.05rem; }
/* "Schedule all approved": the list scrolls inside the block, rows apart, the whole row is the tap
   target with a 24px box, and the confirm button stays in view under it (sticky, with the count) */
.trp-all-list { max-height: min(60vh, 32rem); overflow-y: auto; overscroll-behavior: contain; display: flex;
  flex-direction: column; gap: 0.375rem; margin: 0.5rem 0; padding: 0.25rem; border: 1px solid var(--border);
  border-radius: 0.5rem; background: var(--card); }
.trp-check.trp-all-item { flex: 0 0 auto; min-height: 44px; padding: 0.375rem 0.5rem; border-radius: 0.375rem; gap: 0.625rem; }
.trp-check.trp-all-item:hover { background: color-mix(in oklab, var(--border) 35%, transparent); }
.trp-check.trp-all-item input { width: 24px; height: 24px; flex: 0 0 24px; margin: 0; }
.trp-check.trp-all-item img { flex: 0 0 36px; }
.trp-all-bar { position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.625rem 0;
  background: var(--card); border-top: 1px solid var(--border); }
.trp-ok-word { color: oklch(0.42 0.12 150); font-weight: 600; font-size: 0.875rem; }
/* round ui-r4: logo or screenshot, two clear choices */
.trp-kind { border: 0; margin: 0; padding: 0; display: grid; gap: 0.35rem; min-width: 0; }
.trp-kind legend { padding: 0; margin-bottom: 0.25rem; }
.trp-kind legend.trp-label { display: block; }
.trp-yesno { display: flex; gap: 1.5rem; }
.trp-colours { display: grid; gap: 0.4rem; margin-top: 1rem; }
.trp-colour-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.trp-colour { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; }
.trp-swatch { flex: none; width: 2.25rem; height: 2.25rem; border: 1px solid var(--border); border-radius: 50%; }
.trp-colour-text { display: grid; gap: 0.15rem; }
.trp-colour-text > span { font-size: 0.8125rem; color: var(--muted-foreground); }
.trp-colour input[type=text] { width: 6.25rem; padding: 0.35rem 0.5rem; font: inherit; font-size: 1rem;
  font-variant-numeric: tabular-nums; text-transform: uppercase; }
/* the wrong-code line keeps its room (empty when the codes are right): its arrival at the moment
   of a press used to move everything below ~27 px (2 lines on a phone) and the press was lost */
[data-trp-colour-error] { line-height: 1.5; min-height: 1.5em; }
@media (max-width: 600px) { [data-trp-colour-error] { min-height: 3em; } }
.trp-first { margin: 0 0 0.75rem; padding: 0.75rem 1rem; border-radius: 0.6rem; background: var(--muted);
  font-weight: 600; }

/* ==========================================================================
   phone polish 11-13 (device check of the live tool, 2026-11-13)
   1. iPhone/iPad Safari zooms the page in when a text box under 16px is
      tapped: every box a member can reach is 16px on a phone or a touch
      screen (the .trp-label / .trp-form rules above re-inherit 15px).
   2. Tap targets: at least 44px tall on phones, the look barely changes.
   3. 200% text / 320px: the header and the Approvals tabs wrap, nothing
      leaves the screen.
   4. The message bar (#notice) sits at the top on phones, under the header,
      clear of the notch, so it never covers a screen's main button; a tap
      closes it (workspace.js).
   ========================================================================== */
@media (max-width: 600px), (hover: none) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]),
  select,
  textarea,
  .trp-label input,
  .trp-label textarea,
  .trp-form input,
  .trp-form textarea,
  .trp-niche select,
  .trp-niche input,
  .trp-caption-text {
    /* !important: a dozen class rules above set 14-15px on single boxes */
    font-size: 16px !important;
  }
}
@media (max-width: 600px), (hover: none) and (pointer: coarse) {
  /* Setup's Yes / No and the tick rows: the whole label is the target */
  .trp-yesno label,
  .trp-check {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  /* the Feedback window's × */
  dialog.fb-dialog .fb-close {
    min-width: 44px;
    min-height: 44px;
    margin: -10px -12px 0 0;
  }
  dialog.fb-dialog .fb-tabs button {
    min-height: 44px;
  }
  /* footer legal links: taller rows, same words (the agreement sentence's links stay inline, at body line-height) */
  .legal-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
  }
  .legal-links {
    gap: 0 18px;
  }
  .trp-tabs button,
  .trp-failed > summary,
  .trp-caption > summary {
    min-height: 44px;
  }
  .trp-from a {
    display: inline-block;
    padding-block: 12px;
    margin-block: -12px;
  }
  .trp-failed-line .text-link {
    min-height: 44px;
    padding-inline: 6px;
  }
  .top .nav-toggle,
  .top .logo {
    min-height: 44px;
    min-width: 44px;
  }
}
@media (max-width: 600px) {  /* the message bar: at the top, under the header, never over a screen's button */
  body:not(:has(.review .verdict-actions)) #notice {
    top: calc(env(safe-area-inset-top, 0px) + 64px);
    bottom: auto;
    cursor: pointer;
  }
}
#notice {
  cursor: pointer;
  margin-bottom: env(safe-area-inset-bottom, 0px);
}
@media (max-width: 299px) {
  /* 200% text on a phone (~206px wide): wrap, never off-screen (320px already fits) */
  .top {
    position: static; /* a 2-3 row header would hold a third of the screen */
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
    row-gap: 6px;
    padding-block: 6px;
  }
  .trp-tabs {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
  }
  .trp-tabs button {
    flex: 1 1 auto;
  }
  .trp-reel,
  .trp-reel > *,
  .trp-head {
    min-width: 0;
  }
  .trp-head {
    flex-wrap: wrap;
  }
  /* the account menu opened 72 px past the left edge here: "Sign out" was off-screen */
  .account-menu .menu {
    left: 0;
    right: auto;
    width: min(224px, calc(100vw - 32px));
  }
}

/* Setup's "Change my Instagram username" (page_rename.py): the name, its button, the small form */
.trp-rename { display: grid; gap: 0.35rem; margin-bottom: 0.75rem; min-width: 0; }
.trp-rename .trp-label { display: block; }
.trp-rename-now { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; min-width: 0; }
.trp-rename-now strong { overflow-wrap: anywhere; }
.trp-rename-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; min-width: 0; }
.trp-rename-row input { flex: 1 1 14rem; min-width: 0; font: inherit; }
.trp-rename p { margin: 0; }

/* Setup extras (tl/setup-extras): the page picture row and "Match my design" */
.trp-picture { display: flex; gap: 0.75rem; align-items: center; margin-top: 0.75rem; }
.trp-picture-img { width: 48px; height: 48px; flex: none; font-size: 1.1rem; }
.trp-picture-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.trp-picture .trp-label { display: block; }
.trp-req { margin-left: 0.35rem; font-size: 0.75rem; font-weight: 600; color: var(--danger, #c0392b); }
.trp-ok-mark { margin-left: 0.35rem; font-size: 0.75rem; font-weight: 600; color: var(--success, #1e8e3e); }
.trp-file { cursor: pointer; display: inline-flex; margin-top: 0.25rem; }
.trp-match { display: grid; gap: 0.4rem; margin-top: 0.75rem; padding: 0.75rem; border: 1px dashed var(--border, #d0d5dd); border-radius: var(--radius-xl, 12px); min-width: 0; }
/* a picture dragged over "Change picture" / "Upload my design": the Feedback form's drop highlight (member-feedback.css .fb-over) */
.trp-picture.trp-drop-over, .trp-match.trp-drop-over { border-color: var(--primary, #347dff); background: var(--accent, #dcecff); }
.trp-picture.trp-drop-over { outline: 1px dashed var(--primary, #347dff); outline-offset: 4px; border-radius: var(--radius-md, 8px); }
.trp-match-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.trp-match-fig { margin: 0; display: grid; gap: 0.25rem; justify-items: center; }
.trp-match-fig img { width: 135px; height: 240px; object-fit: cover; border-radius: 8px; }
/* Setup's "Your cover" (covers plan 2b): the design cards are look cards (.trp-look); the
   "Upload my own design" card shows a quiet + until a picture is uploaded */
.trp-cover-add { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; line-height: 1;
  color: var(--muted-foreground); pointer-events: none; }
.trp-cover-own { display: grid; gap: 0.5rem; justify-items: start; min-width: 0; }
/* Approvals: a refresh that failed keeps the cards; this small bar says so, with Retry (pre-launch 2026-11-21) */
.trp-retry { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0 0 0.75rem;
  padding: 0.5rem 0.75rem; border: 1px solid var(--hairline); border-radius: var(--radius-md);
  background: var(--muted); color: var(--muted-foreground); font-size: 0.875rem; }
.trp-retry[hidden] { display: none; }
/* "Show more" under a list that has more reels than were sent */
.trp-more { display: block; margin: 0.75rem auto 0; }

/* Access ended (piece 2): one card on Setup / Generate */
.access-ended h2 {
  margin: 0;
}
.access-ended .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* Access ended (owner 11-22): Approvals is watch + download only. The decide / edit / feedback /
   remove / put-back controls are not drawn; downloads, Copy caption and watching stay. */
.ended-line {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--muted);
  font-size: 14px;
}
#main.trp-ended :is(.trp-actions, [data-trp-hook-options], [data-trp-hook-before] button,
  .trp-panel, .trp-empty .button, [data-trp-do]:not([data-trp-do="copy"])),
#main.pod-ended :is(.card-actions-main, .card-more-menu .danger, .bulk-only,
  [data-action="start-select"], .heading .actions .button.primary,
  .verdict-actions > :not([data-action="download"]), [data-send-feedback], [data-card-decision],
  [data-use-clip], [data-discard], [data-restore], #verdict-form textarea + button) {
  display: none !important;
}

/* The administrator's Admin menu (owner 11-24, the carousel's admin dropdown, top-tab-nav.tsx:425-470):
   one "Admin" button after the normal menu opens Pages · People · Inbox · Overview. Only drawn for an
   administrator outside view-as (static/workspace.js adminTools); nobody else's header changes. */
.top nav.nav-grouped {
  overflow: visible;
}
.nav-admin {
  position: relative;
  flex: none;
  align-self: center;
}
.product-dot.product-animation {
  background: oklch(0.62 0.14 150);
}
.nav-admin > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px dashed color-mix(in oklab, var(--primary) 45%, transparent);
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.nav-admin > summary::-webkit-details-marker {
  display: none;
}
.nav-admin[open] > summary {
  margin-bottom: 0;
}
.nav-admin.active > summary,
.nav-admin[open] > summary {
  background: color-mix(in oklab, var(--primary) 12%, transparent);
}
.nav-admin .menu {
  left: 0;
  right: auto;
  top: calc(100% + 6px);
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.top nav .nav-admin .menu a {
  justify-content: flex-start;
  border-radius: 8px;
}
@media (width <= 750px) {
  /* (range syntax: the phone header's own block stays the file's last max-width block) */
  .nav-admin .menu {
    position: static;
    width: auto;
    box-shadow: none;
    border: 0;
    padding: 4px 0 0 8px;
  }
}

/* The administrator's page switcher (owner 11-24: "we need all pages, for admin, everywhere in the
   tool"; workspace.js adminPagePicker): taller, with a scrollbar you can see and a search box at
   the top once there are many pages. Members' menus keep .menu as it was. */
.menu.admin-page-menu {
  width: 290px;
  max-height: min(70vh, 600px);
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: #b9c3d3 transparent;
}
.menu.admin-page-menu::-webkit-scrollbar { width: 8px; }
.menu.admin-page-menu::-webkit-scrollbar-thumb { background: #b9c3d3; border-radius: 8px; }
.menu.admin-page-menu .page-search {
  position: sticky;
  top: -8px;
  z-index: 1;
  width: 100%;
  margin: 0 0 6px;
  box-sizing: border-box;
  box-shadow: 0 -8px 0 white;
}
.menu.admin-page-menu .page-search-none { margin: 8px 10px; font-size: 0.9rem; }
/* each card's page on the administrator's All pages text Approvals (text-reel-pages.js card) */
.trp-page { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 0.92rem; }
.trp-page img, .trp-page .trp-page-initial {
  width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none;
}
.trp-page .trp-page-initial {
  display: inline-flex; align-items: center; justify-content: center;
  background: #edf4ff; color: #347dff; font-size: 0.75rem; font-weight: 700;
}
/* a row the page search left out: buttons are display:flex, which beats [hidden] */
.menu.admin-page-menu [data-page-find][hidden] { display: none; }

/* ==========================================================================
   The administrator's Approvals = the carousel tool's list (owner 11-25, about the grid that was
   here: "This is way too messy. I said the carousel tool. ... Check out the carousel tool list. Make
   it the same. Stop drifting."). One card a row, the Content Engine's Approvals queue card
   (C/src/app/(dashboard)/approvals/queue-cockpit.tsx QueueItem, measured live 11-25 at 1440 px:
   1072 px wide in the 1152 px frame, 12 px apart, rounded 14 px, a 3 px stripe on the left; on top,
   p-5 gap-5: the reel 96 px wide 9:16 (80 px and above the words on a phone), the chips, the 18 px
   headline, the 11.5 px muted line; under a hairline the action bar, 12 px 20 px, buttons 36 px
   (44 px on a phone): Approve · Edit text · Not for me on the left, Details · Download on the right).
   text-reel-pages.js card(grid) draws li.trp-row; members never get it (their card is unchanged).
   ========================================================================== */
.trp.trp-grid { max-width: none; }
.trp-grid .trp-list { gap: 12px; }                                   /* flex flex-col gap-3 */
.trp-grid .trp-list > .trp-day { margin: 0.5rem 0 -0.25rem; }
.trp-row.card { display: block; position: relative; padding: 0; margin: 0; overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
/* cardAccent (badge-tints.ts): a 3 px stripe on the left; the reels tool has no Organic / CTA, one colour */
.trp-row.card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: oklch(0.673 0.182 276.935 / 0.55); }
.trp-row.card:hover { border-color: color-mix(in oklab, var(--foreground) 15%, transparent);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.trp-row.card:not(:has([data-trp-panel]:not([hidden]))):hover { transform: translateY(-2px); }
/* the top: the reel, then the words (queue-cockpit.tsx:730 flex-col gap-4 p-4, md:flex-row md:gap-5 md:p-5) */
.trp-row-top { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 16px; }
.trp-row .trp-media { position: relative; flex: none; width: 80px; aspect-ratio: 9 / 16; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-md); background: #000; transition: width 0.2s; }
.trp-row .trp-media video, .trp-row .trp-media .trp-still { display: block; width: 100%; height: 100%; max-width: none;
  margin: 0; aspect-ratio: auto; object-fit: cover; border-radius: 0; }
/* reel-card-preview.tsx: poster + a round play button; a tap grows it and plays (240 px, a phone: full width) */
.trp-row .trp-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; background: rgb(0 0 0 / 0.1); box-shadow: none; }
.trp-row .trp-play:hover { background: rgb(0 0 0 / 0.25); }
.trp-row .trp-play::before { content: ""; width: 36px; height: 36px; border-radius: 50%;
  background: rgb(0 0 0 / 0.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 4.5v15l13-7.5z'/%3E%3C/svg%3E") 55% 50% / 16px no-repeat;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.trp-row .trp-stop { display: none; position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; min-height: 0;
  padding: 0; border: 0; border-radius: 50%; align-items: center; justify-content: center;
  background: rgb(0 0 0 / 0.6); color: #fff; font-size: 18px; line-height: 1; }
.trp-row.trp-playing .trp-play { display: none; }
.trp-row.trp-playing .trp-stop { display: inline-flex; }
.trp-row.trp-playing .trp-media { width: 100%; max-width: 320px; }
.trp-row .trp-side { flex: 1 1 auto; width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
/* PostCardChips: the status chip; the page on the right (where the carousel names its page) */
.trp-row-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.trp-row .trp-pill { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border: 1px solid;
  border-radius: 999px; font-size: 11px; font-weight: 500; white-space: nowrap;
  background: oklch(0.97 0.014 254.604); color: oklch(0.488 0.243 264.376);          /* working: blue */
  border-color: color-mix(in oklab, oklch(0.623 0.214 259.815) 30%, transparent); }
.trp-row .trp-pill.trp-done { background: oklch(0.987 0.022 95.277); color: oklch(0.555 0.163 48.998); /* TINT_STAGE */
  border-color: color-mix(in oklab, oklch(0.769 0.188 70.08) 35%, transparent); }
.trp-row .trp-pill.trp-ok { background: oklch(0.979 0.021 166.113); color: oklch(0.508 0.118 165.612);  /* emerald */
  border-color: color-mix(in oklab, oklch(0.696 0.17 162.48) 30%, transparent); }
.trp-row .trp-pill:is(.trp-failed, [class="trp-pill"]) { background: color-mix(in oklab, var(--destructive) 10%, transparent);
  color: var(--destructive); border-color: color-mix(in oklab, var(--destructive) 30%, transparent); }
.trp-row .trp-page { display: inline-flex; align-items: center; gap: 6px; min-width: 0; margin: 0 0 0 auto;
  font-size: 12px; color: var(--muted-foreground); }
.trp-row .trp-page img, .trp-row .trp-page .trp-page-initial { width: 20px; height: 20px; }
.trp-row .trp-page strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500;
  color: color-mix(in oklab, var(--foreground) 70%, transparent); }
/* the headline: font-display text-[18px] leading-[1.35] tracking-[-0.01em] (Jakarta 600, as the carousel draws it) */
.trp-row .trp-row-hook { margin: 2px 0 0; font-family: Jakarta, Arial; font-size: 18px; font-weight: 600;
  line-height: 1.35; letter-spacing: -0.01em; color: var(--foreground); overflow-wrap: anywhere; }
/* PostCardMeta: text-[11.5px] muted, gap-x-3, the dots faint */
.trp-row-meta { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 4px; margin: 0;
  font-size: 11.5px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.trp-row-meta .trp-dot { color: color-mix(in oklab, var(--muted-foreground) 40%, transparent); }
.trp-row-meta a { display: inline-flex; align-items: center; gap: 4px; color: inherit;
  text-decoration: underline dotted; text-underline-offset: 2px; }
.trp-row-meta a:hover { color: var(--foreground); }
.trp-row-meta .trp-ico { width: 12px; height: 12px; opacity: 0.6; }
.trp-row .trp-side > p { margin: 0; font-size: 12.5px; }
.trp-row .trp-side > p[hidden] { display: none; }
/* everything else waits for Details (the carousel's "Open full post") */
.trp-row-more { display: grid; gap: 10px; padding-top: 4px; }
.trp-row:not(.trp-pending):not(:has([data-trp-panel="full"]:not([hidden]))) :is(.trp-row-more, .fb-report-row) { display: none; }
.trp-row .trp-full-mark, .trp-row .trp-full-less { display: none; }
.trp-row:has([data-trp-panel="full"]:not([hidden])) .trp-full-more { display: none; }
.trp-row:has([data-trp-panel="full"]:not([hidden])) .trp-full-less { display: inline; }
.trp-row:has([data-trp-panel="full"]:not([hidden])) .trp-full-btn .trp-ico { display: none; }
/* the action bar (queue-cockpit.tsx:797 border-t border-border/60 bg-secondary/15 px-4 py-3 md:px-5, gap-2) */
.trp-row-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px;
  border-top: 1px solid var(--hairline); background: color-mix(in oklab, var(--secondary) 15%, var(--card)); }
.trp-row-main { display: contents; }
.trp-row-aside { display: flex; align-items: center; gap: 8px; }
.trp-row-bar :is(button, .button) { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: auto; min-height: 44px; padding: 0 10px; border-radius: var(--radius-md); font-size: 12.8px;
  font-weight: 500; white-space: nowrap; }
.trp-row-bar .trp-ico { width: 16px; height: 16px; flex: none; }
/* Reject = ghost + text-destructive, hover:bg-destructive/10 (queue-cockpit.tsx:829-835) */
.trp-row-bar .trp-row-no { color: var(--destructive); }
.trp-row-bar .trp-row-no:hover { background: color-mix(in oklab, var(--destructive) 10%, transparent); color: var(--destructive); }
/* "Open full post": text-[13px] muted; Download: ghost, the ink colour */
.trp-row-bar .trp-full-btn { font-size: 13px; color: var(--muted-foreground); }
.trp-row-bar .trp-full-btn .trp-ico { width: 14px; height: 14px; }
.trp-row-bar .trp-row-dl { color: var(--foreground); }
@media (min-width: 768px) {
  .trp-row-top { flex-direction: row; gap: 20px; padding: 20px; }
  .trp-row .trp-media { width: 96px; }
  .trp-row.trp-playing .trp-media { width: 240px; }
  .trp-row-bar { padding: 12px 20px; }
  .trp-row-aside { margin-left: auto; }
  .trp-row-bar :is(button, .button) { min-height: 36px; }
}
/* the tabs: ApprovalsTabs (approvals-tabs.tsx) underline tabs, px-4 py-3 text-[13px], an amber count */
.trp-grid .trp-tabs { display: flex; flex-wrap: nowrap; justify-self: stretch; max-width: none; gap: 4px; padding: 0;
  overflow-x: auto; border-radius: 0; background: none; border-bottom: 1px solid var(--hairline); }
.trp-grid .trp-tabs button { flex: none; min-height: 0; padding: 12px 16px; border: 0; border-bottom: 2px solid transparent;
  border-radius: 0; background: none; box-shadow: none; font-size: 13px; font-weight: 500; color: var(--muted-foreground); }
.trp-grid .trp-tabs button:hover { background: none; color: var(--foreground); }
.trp-grid .trp-tabs button[aria-selected="true"] { border-bottom-color: var(--primary); background: none; box-shadow: none;
  color: var(--foreground); }
.trp-grid .trp-tabs .trp-count { display: inline-flex; align-items: center; justify-content: center; height: 20px;
  min-width: 20px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: oklch(0.769 0.188 70.08 / 0.15);
  color: oklch(0.555 0.163 48.998); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* The administrator's Generate / Setup before a page is picked (workspace.js pickPage) */
.pick-card { display: grid; gap: 12px; }
.pick-card h2 { margin: 0; }
.pick-card .page-search { width: 100%; max-width: 28rem; }
.pick-page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.pick-page { display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 10px 12px; text-align: left;
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); min-width: 0; }
.pick-page:hover { border-color: var(--primary); }
.pick-page .page-option { display: grid; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.pick-page .page-option small { font-weight: 400; color: var(--muted-foreground); }
.pick-page[hidden] { display: none; }

/* validator 11-25 (admin rows): the "saved" note fits the small picture; a failed row's chip has no extra top space;
   the underline tabs fit a 390 px phone */
.trp-row .trp-still-note { left: 4px; right: 4px; bottom: 4px; font-size: 10px; line-height: 1.2; }
.trp-row .trp-pill.trp-failed { margin-top: 0; }
@media (max-width: 400px) {
  .trp-grid .trp-tabs button { padding: 10px 8px; }
}

/* A wide screen whose menu does not fit (static/workspace.js fitNav, staging 11-28: "Posts &
   results" was cut to "Posts &" at 1280 px): the links fold behind the phone's Menu button and
   open as a panel under it. A menu that fits never gets this class. */
@media (min-width: 751px) {
  .top.nav-fold .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--card);
    color: var(--foreground);
    font-size: 12px;
    font-weight: 500;
  }
  .top.nav-fold .nav-toggle:hover,
  .top.nav-fold .nav-toggle[aria-expanded="true"] {
    background: var(--muted);
  }
  .top.nav-fold .nav-toggle svg {
    width: 16px;
    height: 16px;
  }
  .top.nav-fold nav {
    display: none;
  }
  .top.nav-fold > .logo {
    flex: none;
  }
  .top.nav-fold.nav-open nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    position: absolute;
    top: 100%;
    left: 16px;
    width: 280px;
    height: auto;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    gap: 4px;
    padding: 8px;
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 20px -12px rgb(0 0 0 / 0.25);
  }
  .top.nav-fold.nav-open nav a {
    height: 40px;
  }
  /* what followed the menu (Feedback, the account) keeps to the right, as before */
  .top.nav-fold > nav + * {
    margin-left: auto;
  }
}
