/* RipClip visual system. Kept separate from Claude's original styles. */
/* CLAUDE 10-12: the palette lives in style.css's Graphite tokens; only the card radius is set here */
:root {
  --radius: var(--r-lg);
  /* CLAUDE 10-18 (design polish B2): the two timings the app pages share beyond motion.css: a press that lets go on a
     spring, and a thumbnail that grows under the pointer */
  --d-release: 220ms;
  --d-zoom: 400ms;
}
body {
  margin: 0;
  background: var(--bg);
  font-family: 'Rip UI', 'Segoe UI', sans-serif; /* Mona Sans (interface.css) */
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  transition:
    background 0.16s,
    border-color 0.16s,
    color 0.16s,
    transform 0.16s;
}
button {
  min-height: var(--h-md);
  border-radius: var(--r-md);
}
button:disabled {
  cursor: wait;
}
.primary,
.accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
}
.primary:hover,
.accent:hover {
  background: var(--c-primary-hover);
  border-color: var(--c-primary-hover);
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
}
.badge {
  color: var(--accent);
  border-color: #4a4a4c;
  background: transparent;
  font-size: 9px;
}
.studio-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: var(--r-md);
  /* CLAUDE 10-11 (owner: "the background green is a bit much, a dark colour with an elegant white tone"): the mark is
     white on a dark tile in every header; green stays the accent for actions */
  background: linear-gradient(180deg, #26272a, #161719);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: #f3f2ee;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
}
/* CLAUDE 10-20 (coordinator, phone QA: the ◧ glyph read as a broken logo): the R logo (logo-mark.svg, as the landing and
   the sign-in dialog) fills the tile, whatever size each header gives it */
.studio-mark img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}
.brand-light {
  font-weight: 400;
  color: var(--c-fg-2);
}
/* CLAUDE 10-12 Graphite: no eyebrow labels above headings (the heading says it); kept hidden where markup still has one */
.eyebrow {
  display: none;
}
/* Persistent workspace navigation */
#home {
  background: var(--bg);
  padding-left: 220px;
  overflow: auto;
}
.home-glow {
  display: none;
}
.home-nav {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 24px 12px 16px;
  background: var(--c-surface);
  border-right: 1px solid var(--c-line);
  z-index: 3;
  gap: 0;
}
.home-brand {
  gap: 10px;
  font-size: 19px;
  letter-spacing: -0.4px;
  padding: 0 8px;
  margin-bottom: 24px;
  font-weight: 600;
}
.home-brand small {
  display: none; /* CLAUDE 10-12: no "CREATOR WORKSPACE" eyebrow under the name */
}
/* CLAUDE 10-12 Graphite: the sidebar's create is quiet; each page's own primary leads */
.home-nav .nav-create {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  background: transparent;
  color: var(--c-fg);
  border: 0;
  padding: 0 11px;
  min-height: var(--h-md);
  font-size: var(--t-body);
  font-weight: 500;
  border-radius: var(--r-sm);
  margin-bottom: var(--s-4);
}
.home-nav .nav-create:hover {
  background: var(--c-raised);
  color: var(--c-fg);
}
.nav-create span {
  font-size: 17px;
  font-weight: 400;
  width: 20px;
  text-align: center;
  color: var(--c-fg-2);
}
.nav-label {
  display: none; /* no "WORKSPACE" eyebrow */
}
/* lists: text rows; the selection is the text colour plus a thin indicator, never a filled box */
.home-tabs {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.home-tabs a {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  border: 0;
  border-radius: var(--r-sm);
  padding: 0 11px;
  min-height: var(--h-md);
  color: var(--c-fg-3);
  font-size: var(--t-body);
  font-weight: 500;
}
.home-tabs a.active {
  color: var(--c-fg);
  background: transparent;
}
/* CLAUDE 10-18 (design polish B2): while the script runs one bar slides between the pages (motion.css .m-vtabs); this
   per-link bar is only what shows without it */
.home-tabs:not(.m-js) a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--c-fg);
}
.home-tabs a:hover {
  color: var(--c-fg);
  background: transparent;
}
.nav-icon {
  font-size: 16px;
  width: 20px;
  display: inline-flex;
  justify-content: center;
  color: var(--c-fg-3);
}
.active .nav-icon,
.home-tabs a:hover .nav-icon {
  color: var(--c-fg);
}
.home-tabs .count {
  margin-left: auto;
  background: transparent;
  color: var(--c-fg-3);
  font-size: var(--t-meta);
  padding: 0;
}
.nav-bottom {
  margin-top: auto;
  padding-top: var(--s-5);
}
/* the social logos in the sidebar: plain marks, no circles (socials.css styles the site's) */
.home-nav .soc {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  border-radius: var(--r-sm);
  opacity: 0.7;
}
.home-nav .soc:hover {
  background: var(--c-raised);
  opacity: 1;
}
.home-nav .soc i {
  width: 15px;
  height: 15px;
}
.home-nav [data-socials] {
  gap: 2px;
}
.local-status {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: var(--t-meta);
  color: var(--c-fg-3);
}
.local-status i,
.workspace-ready i {
  width: 5px;
  height: 5px;
  background: var(--c-signal);
  border-radius: 50%;
  display: inline-block;
}
.local-status > span {
  margin-left: auto;
  color: var(--c-fg-3);
  font-size: var(--t-meta);
  letter-spacing: 0.4px;
}
.nav-bottom p {
  font-size: var(--t-meta);
  color: var(--c-fg-3);
  line-height: 1.6;
  margin: var(--s-2) 0 var(--s-3);
}
.home-nav #homeWorkspace {
  width: 100%;
  display: flex;
  justify-content: space-between;
  border: 0;
  border-radius: var(--r-sm);
  color: var(--c-fg-2);
  font-size: var(--t-body);
  padding: 0 11px;
  min-height: var(--h-md);
  align-items: center;
}
.workspace-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
  flex: none;
  border-bottom: 1px solid var(--c-line);
  padding: 0 44px;
  color: var(--c-fg-3);
  font-size: var(--t-label);
  letter-spacing: 0;
}
.workspace-ready {
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0;
  font-size: var(--t-label);
  color: var(--c-fg-2);
}
button.workspace-ready {
  font: inherit;
  font-size: var(--t-body);
  font-weight: 500;
  color: var(--c-fg);
  background: transparent;
  border: 0;
  border-radius: var(--r-sm);
  padding: 6px 10px;
  min-height: var(--h-md);
  cursor: pointer;
}
button.workspace-ready:hover {
  background: var(--c-raised);
}
/* Home: useful entry point and real footage rather than a blank landing page */
#home h1 {
  font-weight: 620;
  font-size: clamp(42px, 4.4vw, 67px);
  letter-spacing: -3.3px;
  line-height: 1.06;
  margin: 0 0 23px;
}
#home h1 > span {
  color: var(--accent);
}
.text-button {
  background: transparent;
  border: 0;
  font-size: 11px;
  color: #adadb0;
}
.text-button:hover {
  color: var(--accent);
  background: transparent;
}
.recent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.recent-card {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  background: #161618;
  border: 1px solid #303032;
  padding: 10px;
  border-radius: var(--r-md);
  min-width: 0;
}
.recent-card:hover {
  border-color: #5d5d60;
  background: #202022;
}
.recent-card img {
  width: 88px;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--r-xs);
}
.recent-card b {
  font-size: 12px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
  font-weight: 550;
}
.recent-card small {
  color: #8e8e91;
  font-size: 10px;
  display: block;
  margin-top: 6px;
}
.recent-card .recent-arrow {
  margin-left: auto;
  color: #858588;
}
.recent-empty {
  color: #99999c;
  font-size: 13px;
  line-height: 1.6;
}
/* Library: source projects and portrait clips have different visual weight. */
.page-inner,
.page-inner.wide {
  width: min(1300px, 100%);
  padding: 40px 44px 60px;
}
.page-inner.narrow {
  width: min(860px, 100%);
  margin: 0 auto;
}
/* CLAUDE 10-12 Graphite (owner 10-11: OpusClip's "My projects" is the tone; no box unless it carries meaning): a 22 px
   page title, the toolbar as ghosts, tabs as text, uniform 16:9 thumbnails with no card behind them */
.library-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}
.lib-title {
  font-size: var(--t-page);
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0 0 var(--s-1);
}
.page-sub {
  font-size: var(--t-body);
  color: var(--c-fg-3);
  line-height: 1.6;
}
.library-heading > .primary {
  font-size: var(--t-body);
  min-height: var(--h-md);
  padding: 0 14px;
}
.library-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}
/* CLAUDE 10-18 (design polish B2, finding 7): the field's hairline is a straight 1 px bottom strip (style.css
   --field-line: no crescent) and, on focus, a brighter strip draws in from the left over it instead of the line
   swapping colour */
.library-search {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  background:
    linear-gradient(var(--c-fg-2), var(--c-fg-2)) no-repeat left bottom / 0 1px,
    var(--field-line) no-repeat left bottom / 100% 1px;
  border: 0;
  border-radius: 0;
  padding: 0 4px;
  width: min(320px, 100%);
  transition: background-size var(--d-ui) var(--ease-out);
}
.library-search > span {
  font-size: 18px;
  color: var(--c-fg-3);
}
.library-search input#librarySearch {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 7px 0;
  font-size: var(--t-body);
  outline: 0;
}
.library-search:focus-within {
  background-size:
    100% 1px,
    100% 1px;
}
/* owner 10-11 (feedback 10): paste a link to import a video, and refresh, beside Search */
.lib-link {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  width: min(300px, 100%);
}
.lib-link input#libLink {
  font-size: var(--t-body);
}
.lib-icon-btn {
  width: var(--h-md);
  height: var(--h-md);
  min-height: 0;
  padding: 0;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--c-fg-2);
}
.lib-icon-btn:hover {
  color: var(--c-fg);
}
.lib-icon-btn.spin svg {
  animation: lib-spin var(--d-count) var(--ease-out);
}
@keyframes lib-spin {
  to {
    transform: rotate(360deg);
  }
}
.sort-label {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-left: auto;
  color: var(--c-fg-3);
  font-size: var(--t-label);
  white-space: nowrap;
}
.sort-label select {
  font-size: var(--t-label);
  padding: 7px 30px 7px 8px;
  width: auto;
  box-shadow: none;
}
/* CLAUDE 10-18 (design polish B2): the tabs are controls.css .m-tabs (dashboard.js adds the class and slides one straight
   bar to the open tab); style.css's per-link border line is switched off under it, the text stays where it was */
.lib-tabs {
  gap: var(--s-5);
  margin-bottom: var(--s-5);
  border-bottom: 1px solid var(--c-line);
}
.lib-tabs.m-tabs {
  gap: var(--s-5);
}
.lib-tabs.m-tabs > a {
  padding: 8px 0 10px;
  margin: 0;
  border-bottom: 0;
  font-size: var(--t-label);
}
.coll-row {
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}
.coll-tile {
  min-width: 170px;
  height: 52px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  gap: var(--s-3);
}
.coll-tile:hover {
  background: var(--c-raised);
}
.coll-tile.add {
  order: 10;
  min-width: 150px;
  font-size: var(--t-label);
  color: var(--c-fg-2);
}
.coll-tile .coll-icon {
  background: var(--c-raised);
  color: var(--c-fg-2);
  border: 0;
  border-radius: var(--r-sm);
  width: 32px;
  height: 32px;
  font-size: 15px;
}
.coll-tile b {
  font-size: var(--t-body);
  font-weight: 500;
}
.coll-tile small {
  font-size: var(--t-meta);
  color: var(--c-fg-3);
  margin-top: 2px;
  display: block;
}
.sec-title {
  font-size: var(--t-title);
  color: var(--c-fg);
  font-weight: 600;
  margin-bottom: var(--s-3);
}
.storage {
  font-size: var(--t-meta);
  color: var(--c-fg-3);
}
.storage .pill {
  background: transparent;
  border: 0;
  color: var(--c-fg-3);
  font-size: var(--t-meta);
  padding: 0 0 0 6px;
}
.proj-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--s-5) var(--s-4);
  align-items: start;
}
.proj-tile {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  min-width: 0;
}
.proj-tile .cover {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
}
.proj-tile .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* CLAUDE 10-18 (design polish B2, G3): a thumbnail is alive under the pointer, not dimmed (dimming reads as disabled):
   the picture grows 2 % over 400 ms and the "···" fades in; a touch screen has no hover, so it keeps the "···" */
@media (hover: hover) and (pointer: fine) {
  .proj-tile .cover img {
    transition:
      scale var(--d-zoom) var(--ease-out),
      opacity var(--d-ui) ease;
  }
  .proj-tile:hover .cover img {
    scale: 1.02;
  }
  .proj-tile .row .dots {
    opacity: 0;
    transition: var(--m-hover);
  }
  .proj-tile:is(:hover, :focus-within) .row .dots,
  .proj-tile .row .dots:focus-visible {
    opacity: 1;
  }
}
.proj-tile .row {
  padding: 0;
  margin-top: var(--s-2);
}
.proj-tile .name {
  font-size: var(--t-body);
  font-weight: 500;
}
.proj-tile .info {
  padding: 0;
  color: var(--c-fg-3);
  font-size: var(--t-meta);
  margin-top: 2px;
}
.proj-tile .info b {
  color: var(--c-fg-2);
  font-weight: 400;
}
/* CLAUDE 10-20 (phone QA P1-7): a clip job's steps (app-base.js processingSteps): done ones ticked, the current one in
   the text colour, the rest quiet */
.proc-steps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-2);
  margin: var(--s-1) 0 0;
  padding: 0;
  list-style: none;
  color: var(--c-fg-3);
  font-size: var(--t-meta);
}
.proc-steps li.done::before {
  content: '✓ ';
}
.proc-steps li[aria-current='step'] {
  color: var(--c-fg);
  font-weight: 500;
}
/* the cover's status is a thin line on its bottom edge plus the text under the title, not an overlay */
.proj-tile .cover .foot {
  text-align: left;
  padding: 18px 10px 7px;
  font-size: var(--t-meta);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}
.proj-tile .cover .foot::after {
  content: ''; /* the status line: a straight 2 px bar, not an inset shadow on the rounded cover */
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--c-signal);
}
.proj-tile .cover .foot b {
  color: var(--c-fg);
  font-weight: 500;
}
.proj-tile .cover .badge-new {
  background: var(--c-fg);
  color: var(--c-primary-ink);
  font-size: var(--t-meta);
  font-weight: 500;
  right: 8px;
  top: 8px;
  padding: 2px 6px;
  border-radius: var(--r-xs);
}
/* CLAUDE 10-05 (the owner): Upload new video is always the first slot, so it never scrolls away behind the projects.
   10-12: the one dashed outline in the app, the same 16:9 as the thumbnails */
.upload-tile {
  order: -1;
  min-height: 0;
  aspect-ratio: 16 / 9;
  background: transparent;
  border: 1px dashed var(--c-line-strong);
  border-radius: var(--r-md);
  font-size: var(--t-body);
  color: var(--c-fg-2);
  transition:
    var(--m-hover),
    scale var(--d-release) var(--ease-spring);
}
/* P18: a drag over it, or the pointer, turns the dash solid and a step brighter (the colour fades; the dash flips) */
.upload-tile:hover,
.upload-tile.over,
.upload-tile:focus-visible {
  border-style: solid;
  border-color: var(--c-fg-3);
  background: var(--c-raised);
  color: var(--c-fg);
}
.upload-tile .plus {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  border: 0;
  background: var(--c-raised);
  font-size: 20px;
  color: var(--c-fg-2);
}
.lib-back {
  font-size: var(--t-label);
  margin-bottom: var(--s-5);
  color: var(--c-fg-2);
}
.page-head h2 {
  font-size: var(--t-page);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.lib-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--s-5) var(--s-4);
}
.lib-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.lib-card .thumb {
  aspect-ratio: 9/16;
  max-height: none;
  border-radius: var(--r-md);
  overflow: hidden;
}
.lib-card .thumb video {
  object-fit: contain;
  background: var(--c-stage);
}
/* CLAUDE 10-18 (design polish B2, G3): no dimming under the pointer; the picture grows a touch instead */
@media (hover: hover) and (pointer: fine) {
  .lib-card .thumb video {
    transition: scale var(--d-zoom) var(--ease-out);
  }
  .lib-card:hover .thumb video {
    scale: 1.02;
  }
}
.lib-card .body {
  padding: var(--s-2) 0 var(--s-2);
  gap: var(--s-1);
}
.lib-card .title {
  font-size: var(--t-body);
  font-weight: 500;
  line-height: 1.45;
}
.lib-card .preview {
  font-size: var(--t-label);
  color: var(--c-fg-3);
  line-height: 1.5;
  min-height: 0;
}
.lib-card .meta {
  font-size: var(--t-meta);
  color: var(--c-fg-3);
}
.lib-card .actions {
  padding: 0;
  gap: var(--s-1);
}
.lib-card .actions a {
  background: transparent;
  border: 0;
  color: var(--c-fg-2);
  font-size: var(--t-label);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lib-card .actions a:hover {
  background: var(--c-raised);
  color: var(--c-fg);
}
/* CLAUDE 10-04: Post is the card's one action with a fill; Edit and Download sit quiet beside it */
.lib-card .actions button {
  background: var(--c-raised);
  border-color: transparent;
  color: var(--c-fg);
  font-size: var(--t-label);
  font-weight: 500;
}
.lib-card .actions [data-edit] {
  background: transparent;
  border: 0;
  color: var(--c-fg-2);
  font-weight: 500;
}
.lib-card .score {
  padding: 4px 7px;
  border-radius: var(--r-xs);
  background: rgba(14, 14, 16, 0.78);
  text-align: left;
}
.lib-card .score small {
  font-size: var(--t-meta);
  color: var(--c-fg-2);
  letter-spacing: 0;
}
.lib-card .score b {
  font-size: var(--t-title);
  display: block;
  margin-top: 1px;
  color: var(--c-fg);
}
.lib-card .edited-tag {
  background: var(--c-fg);
  color: var(--c-primary-ink);
  font-size: var(--t-meta);
  padding: 2px 6px;
  font-weight: 500;
  letter-spacing: 0;
  border-radius: var(--r-xs);
}
.lib-card .dur {
  font-size: var(--t-meta);
  padding: 2px 6px;
}
.lib-card .fav {
  border-radius: var(--r-sm);
  font-size: 17px;
}
.lib-card .fav.on {
  color: #e5b5c0;
  border-color: transparent;
}
/* CLAUDE 10-12 Graphite: the card "···" menu is a floating layer (--c-overlay, --e-float) that pops from its button */
.card-menu {
  position: fixed;
  max-height: calc(100vh - 24px);
  overflow: auto;
  background: var(--c-overlay);
  border: 0;
  box-shadow: var(--e-float);
  border-radius: var(--r-md);
  transform-origin: top left;
}
.card-menu:not([hidden]) {
  animation: rc-pop var(--d-ui) var(--ease-out);
}
.card-menu button {
  font-size: var(--t-body);
  color: var(--c-fg);
}
.card-menu button:hover {
  background: rgba(255, 255, 255, 0.05);
}
.card-menu .label {
  color: var(--c-fg-3);
}
@media (prefers-reduced-motion: reduce) {
  .card-menu:not([hidden]) {
    animation: m-fade var(--d-ui) ease; /* calm, not dead (plan 3.5): the menu fades, it does not scale */
  }
}
.page-inner details,
.contact-form {
  background: #111111;
  border-color: var(--line);
}
.page-inner details {
  padding: 18px;
}
.page-inner summary {
  font-size: 13px;
  font-weight: 550;
}
.page-inner details p {
  font-size: 12px;
  color: #a9a9ac;
  line-height: 1.8;
}
.page-head.center {
  text-align: left;
  align-items: flex-start;
}
.contact-actions {
  flex-wrap: wrap;
}
.contact-actions small {
  font-size: 11px;
  line-height: 1.6;
}
/* Editor: captions first; advanced source tools remain available on demand. */
header {
  height: 74px;
  background: #0b0b0b;
  border-color: var(--line);
  padding: 0 24px;
  gap: 20px;
}
.brand {
  min-width: 180px;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.6px;
  gap: 10px;
}
.brand small {
  font-size: 8px;
  letter-spacing: 1.8px;
  color: #8a8a8d;
}
.header-actions {
  gap: 7px;
}
.header-actions button {
  font-size: 11px;
}
.local-pill {
  font-size: 9px;
  color: #949497;
}
body.signed-in .local-pill {
  display: none; /* CLAUDE 10-03: signed in, the account name is what the owner wants to see there */
}
.project-title input {
  font-size: 12px;
}
.project-title span {
  font-size: 9px;
  color: #b1b1b4;
  margin-top: 5px;
}
main {
  grid-template-columns: minmax(340px, 1.1fr) minmax(280px, 1fr) 300px;
  gap: 16px;
  padding: 20px;
  max-width: 1700px;
  height: calc(100dvh - 74px);
  min-height: 650px;
} /* transcript column widened (OpusClip gives the script ~45% of the screen) */
.panel {
  background: var(--c-surface);
  border: 0;
  border-radius: var(--r-md);
  padding: var(--s-4);
}
.library {
  padding: var(--s-4);
  overflow: hidden;
}
.section-title {
  color: var(--c-fg);
  font-size: var(--t-body);
  letter-spacing: 0;
  text-transform: none;
}
.section-title span {
  color: var(--c-fg-3);
  font-size: var(--t-meta);
  font-weight: 400;
}
.source-tools {
  border: 1px solid #2a2a2a;
  border-radius: var(--r-sm);
  margin-bottom: 21px;
  flex: none;
}
.source-tools > summary {
  padding: 11px 12px;
  color: #b4b4b7;
  font-size: 11px;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.source-tools > summary span {
  color: #8c8c8f;
}
.source-tools-body {
  padding: 12px;
  max-height: 350px;
  overflow: auto;
}
.source-tools .import-box {
  min-height: 105px;
}
.source-tools .divider {
  margin-top: 15px;
}
.kick-import {
  flex-direction: column;
}
.kick-import input {
  padding: 9px;
}
.kick-import button {
  font-size: 10px;
}
.transcription .field {
  font-size: 10px;
}
.transcription details {
  margin-bottom: 8px;
}
.transcription small {
  font-size: 9px;
  color: #8c8c8f;
}
.transcription summary {
  font-size: 10px;
}
.field {
  color: #b3b3b6;
  font-size: 11px;
}
:where(input:not([type='checkbox']):not([type='range']):not([type='color']), select, textarea) {
  color: var(--c-fg);
  border-radius: var(--r-sm);
}
.caption-list {
  min-height: 160px;
}
.caption-row {
  background: #151517;
  border: 1px solid #333335;
  border-radius: var(--r-sm);
  padding: 10px;
  margin-bottom: 9px;
}
.caption-row.active {
  background: #2c2c2e;
  border-color: #88888b;
}
.caption-row .row-top {
  gap: 3px;
}
.caption-row .row-top input {
  font-size: 9px;
  max-width: 69px;
}
.caption-row textarea {
  font-size: 12px;
  line-height: 1.55;
  min-height: 46px;
  color: #e5e5e8;
}
.caption-row button {
  min-height: 24px;
  color: #b7b7ba;
}
.caption-row summary {
  color: #808083;
  font-size: 8px;
}
.caption-tools button {
  font-size: 10px;
}
.word-row input {
  font-size: 9px !important;
}
.stage {
  background: radial-gradient(ellipse at 50% 40%, #27322055, transparent 70%);
  border: 1px solid #29292b;
  border-radius: var(--r-md);
  padding: 18px;
  min-height: 0;
}
.stage-heading {
  padding-bottom: 18px;
  align-items: center;
}
.stage-heading h1 {
  font-size: 18px;
  letter-spacing: -0.5px;
  margin-top: 7px;
}
.stage-heading .eyebrow {
  font-size: 8px;
}
.format-pill {
  font-size: 9px;
  padding: 6px 8px;
  background: #1b1b1d;
  border-color: #3a3a3c;
  color: #c0c0c3;
}
.preview-wrap {
  border: 1px solid #4c4c4e;
  border-radius: var(--r-md);
  max-height: calc(100dvh - 345px);
  min-height: 260px;
  box-shadow: 0 20px 60px #0006;
  background: #0b0e0a;
}
.transport {
  gap: 9px;
  padding: 15px 0 12px;
}
.transport button {
  font-size: 12px;
  min-height: 30px;
}
.transport span {
  font-size: 9px;
  color: #a4a4a7;
  font-variant-numeric: tabular-nums;
}
.stage-note {
  font-size: 9px;
  color: #8e8e91;
  line-height: 1.6;
  text-align: center;
}
.sequence-strip {
  display: flex;
  gap: 4px;
  width: 100%;
  margin: 0 0 10px;
  flex: none;
}
.sequence-strip button {
  flex: 1;
  min-width: 0;
  min-height: 25px;
  background: #2b2b2d;
  border: 1px solid #4d4d4f;
  color: #d2d2d5;
  font-size: 8px;
  padding: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: var(--r-xs);
}
.sequence-strip button.active {
  background: #acacaf;
  color: #1a1a1c;
  border-color: var(--c-fg);
}
.inspector {
  overflow: auto;
}
.inspector .section-title {
  margin-bottom: var(--s-4);
}
/* CLAUDE 10-12 Graphite: the Style studio's pages are text tabs with an underline under the open one */
.tabs {
  gap: var(--s-4);
  border-bottom: 1px solid var(--c-line);
}
.tabs button {
  flex: 0 0 auto;
  font-size: var(--t-label);
  font-weight: 500;
  padding: 10px 0;
  color: var(--c-fg-3);
}
.tabs button:hover {
  color: var(--c-fg-2);
  background: transparent;
}
.tabs .active {
  color: var(--c-fg);
  border-color: var(--c-fg);
}
.font-sample {
  background: #111113;
  border-color: #3d3d3f;
  font-size: 18px;
  color: #e2e2e5;
}
.font-upload {
  font-size: var(--t-label);
  color: var(--c-fg-2);
}
.font-sources {
  font-size: 9px;
}
.toggles {
  font-size: 9px;
  color: #b0b0b3;
}
.color-field,
.switch-row,
.range-field {
  color: #a9a9ac;
  font-size: 10px;
}
.range-field {
  margin-bottom: 21px;
}
.divider {
  background: #353537;
}
.hint {
  font-size: 10px;
  color: #8d8d90;
  line-height: 1.7;
}
.job-card {
  background: #1b2916f5;
  border-color: #636366;
  bottom: 55px;
}
.job-card strong {
  font-size: 13px;
}
.job-card small {
  font-size: 11px;
  color: #c4c4c7;
}
.job-card #jobDownloads {
  flex-wrap: wrap;
}
#toast {
  background: #2a2a2c;
  border-color: #707073;
  color: #e8e8eb;
  z-index: 100;
  font-size: 12px;
  box-shadow: 0 15px 50px #0007;
  border-radius: var(--r-md);
}
.card-menu {
  z-index: 90;
}
input:disabled,
button:disabled {
  opacity: 0.5;
}
progress {
  accent-color: var(--c-signal);
}
dialog {
  background: #1c1c1e;
  border-color: #515154;
  color: #eaeaed;
}
dialog p {
  color: #a9a9ac;
}
@media (max-width: 1200px) {
  #home {
    padding-left: 190px;
  }
  .home-nav {
    width: 190px;
    padding: 26px 15px 18px;
  }
  .home-brand {
    font-size: 20px;
  }
  #home h1 {
    font-size: 49px;
    letter-spacing: -2.7px;
  }
  .workspace-top {
    padding: 0 30px;
  }
  .page-inner,
  .page-inner.wide {
    padding: 35px 30px;
  }
  .recent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .recent-card:nth-child(3) {
    display: none;
  }
  main {
    grid-template-columns: 250px minmax(260px, 1fr) 270px;
    gap: 12px;
    padding: 12px;
  }
  .stage {
    padding: 13px;
  }
  .local-pill {
    display: none;
  }
  .brand {
    min-width: 155px;
    font-size: 18px;
  }
  .stage-heading h1 {
    font-size: 16px;
  }
  .header-actions {
    gap: 5px;
  }
}
@media (max-width: 1000px) {
  #home h1 {
    font-size: 58px;
  }
  .proj-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  .lib-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  }
  .brand {
    min-width: unset;
  }
  .project-title {
    display: none;
  }
  .header-actions {
    margin-left: auto;
  }
  main {
    height: auto;
    grid-template-columns: 1fr 1fr;
    min-height: 0;
  }
  .stage {
    grid-column: 1/-1;
    grid-row: 1;
    max-height: none;
  }
  .preview-wrap {
    height: 420px;
    min-height: 0;
    max-height: none;
    flex: none;
  }
  .stage-heading,
  .transport,
  .trim-bar,
  .sequence-strip {
    max-width: 620px;
  }
  .library,
  .inspector {
    max-height: 740px;
    min-height: 580px;
  }
  .header-actions .quiet {
    display: block;
  }
  .library-heading {
    align-items: flex-start;
  }
}
@media (max-width: 820px) {
  #home {
    padding-left: 0;
  }
  .home-nav {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    bottom: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 12px;
    background: #0b0b0bfa;
    backdrop-filter: blur(16px);
  }
  .home-brand {
    margin: 0;
    font-size: 20px;
  }
  .home-brand small {
    font-size: 7px;
  }
  .home-brand .studio-mark {
    width: 30px;
    height: 30px;
    font-size: 23px;
  }
  .home-nav .nav-create {
    margin-left: auto;
    font-size: 10px;
    padding: 6px 10px;
    min-height: 30px;
  }
  .nav-create span {
    font-size: 16px;
  }
  .nav-label,
  .nav-bottom {
    display: none;
  }
  .home-tabs {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    width: 100%;
    padding: 0 0 10px;
    gap: 5px;
  }
  .home-tabs a {
    white-space: nowrap;
    font-size: 10px;
    padding: 7px 10px;
    border-radius: var(--r-sm);
  }
  .nav-icon {
    display: none;
  }
  .home-tabs .count {
    font-size: 9px;
  }
  .workspace-top {
    padding: 0 22px;
    min-height: 47px;
    font-size: 8px;
  }
  .workspace-ready {
    font-size: 9px;
  }
  #home h1 {
    font-size: 49px;
    letter-spacing: -2.5px;
  }
  .recent-grid {
    grid-template-columns: 1fr;
  }
  .recent-card img {
    width: 82px;
  }
  .recent-card b {
    max-width: 220px;
  }
  .text-button {
    font-size: 10px;
    padding: 6px;
  }
  .page-inner,
  .page-inner.wide {
    padding: 28px 20px 40px;
  }
  .library-heading {
    gap: 10px;
    flex-wrap: wrap;
  }
  .library-heading .page-sub {
    font-size: var(--t-label);
  }
  .library-heading > .primary {
    font-size: var(--t-body);
    min-height: var(--h-touch);
    padding: 0 14px;
  }
  .library-toolbar {
    flex-wrap: wrap;
    gap: var(--s-2);
  }
  .library-search {
    width: 100%;
  }
  .lib-link {
    flex: 1 1 100%; /* the link field has its own row: squeezed beside Sort by, its placeholder read "Past" (10-18 phone screenshot) */
    width: auto;
  }
  .lib-icon-btn {
    width: var(--h-touch);
    height: var(--h-touch);
  }
  .sort-label {
    margin-left: auto;
    font-size: var(--t-label);
  }
  .lib-title {
    font-size: var(--t-page);
  }
  .lib-tabs,
  .lib-tabs.m-tabs {
    gap: var(--s-5);
  }
  .coll-tile {
    min-width: 0;
    flex: 1;
    height: 63px;
    padding: 0 12px;
    gap: 9px;
  }
  .coll-tile.add {
    min-width: 130px;
  }
  .coll-tile b {
    font-size: var(--t-meta);
  }
  .coll-tile .coll-icon {
    width: 27px;
    height: 27px;
  }
  .coll-tile small {
    font-size: var(--t-meta); /* 11 px is the floor (it was 9) */
  }
  .sec-head {
    align-items: center;
    gap: 10px;
  }
  .storage .pill {
    display: none;
  }
  .proj-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .proj-tile {
    padding: 5px 5px 12px;
    border-radius: var(--r-md);
  }
  .proj-tile .name {
    font-size: var(--t-label);
  }
  .proj-tile .cover .foot {
    font-size: var(--t-meta);
    padding: 20px 8px 7px;
  }
  .proj-tile .cover .badge-new {
    font-size: var(--t-meta);
    padding: 3px 5px;
  }
  .proj-tile .row {
    margin-top: 9px;
  }
  .upload-tile {
    min-height: 155px;
    font-size: var(--t-label);
  }
  .lib-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .lib-card {
    padding: 5px 5px 0;
    border-radius: var(--r-md);
  }
  .lib-card .body {
    padding: 10px 3px;
    gap: 7px;
  }
  .lib-card .title {
    font-size: var(--t-label);
  }
  .lib-card .preview {
    font-size: var(--t-meta);
  }
  .lib-card .actions {
    padding: 0 2px 7px;
    gap: 5px;
  }
  .lib-card .actions a,
  .lib-card .actions button {
    font-size: var(--t-meta);
    padding: 8px 5px;
  }
  .lib-card .edited-tag {
    font-size: var(--t-meta);
    left: 6px;
    top: 6px;
  }
  .lib-card .dur {
    font-size: var(--t-meta);
    right: 6px;
    top: 6px;
  }
  .lib-card .score {
    left: 6px;
    bottom: 6px;
    padding: 5px 6px;
  }
  .lib-card .score b {
    font-size: var(--t-title);
  }
  .lib-card .score small {
    font-size: var(--t-meta);
  }
  .lib-card .fav {
    right: 6px;
    bottom: 6px;
    width: 25px;
    height: 25px;
    font-size: 14px;
  }
  .page-head {
    flex-direction: row;
  }
  .page-head h2 {
    font-size: 26px;
  }
  .page-inner.narrow {
    padding: 28px 20px;
  }
  .contact-form {
    padding: 16px;
  }
  .contact-form .pair {
    grid-template-columns: 1fr;
  }
  header {
    height: auto;
    min-height: 65px;
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 12px;
  }
  .brand {
    font-size: 18px;
  }
  .brand .studio-mark {
    width: 29px;
    height: 29px;
    font-size: 22px;
  }
  .brand small {
    font-size: 7px;
  }
  .header-actions {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }
  .header-actions button {
    font-size: 10px;
    min-height: 33px;
    padding: 7px 10px;
  }
  .header-actions .quiet {
    display: block;
  }
  .header-actions #homeBtn {
    display: none;
  }
  .header-actions #exportBtn {
    margin-left: auto;
  }
  .stage {
    padding: 13px;
    border-radius: var(--r-md);
  }
  .preview-wrap {
    height: 390px;
  }
  .library,
  .inspector {
    max-height: 720px;
  }
  main {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 12px;
  }
  .stage {
    grid-column: 1;
  }
  .library {
    min-height: 480px;
  }
  .inspector {
    min-height: 0;
  }
  .stage-heading h1 {
    font-size: 17px;
  }
  .trim-bar > .eyebrow {
    display: none;
  }
  .caption-list {
    min-height: 230px;
  }
  .source-tools-body {
    max-height: 270px;
  }
}
/* CLAUDE 10-18 (design polish B2, plan 3.5 "calm, not dead"): reduced motion no longer kills every animation and
   transition (that cut each fade and colour change as well); movement and scale go through the shared tokens
   (--shift-*, --press, --pop are 0 / 1 in motion.css), opacity and colour stay. Only smooth scrolling is switched off here */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
/* the workspace owns scrolling; avoid an invisible editor creating a second scrollbar. */
body.at-home {
  overflow: hidden;
}
body.at-home > header,
body.at-home > main {
  display: none;
}
.home-tabs {
  scrollbar-width: none;
}
.home-tabs::-webkit-scrollbar {
  display: none;
}
/* font picker (opens inline: the inspector scrolls, so a floating popover would be clipped) */
.font-field {
  position: relative;
}
.font-picker-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #0b0b0b;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.font-picker-btn:hover,
.font-picker-btn[aria-expanded='true'] {
  border-color: var(--accent);
}
.font-picker-btn:focus-visible,
.font-row:focus-visible,
.font-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
#fontPickerName {
  font-size: 19px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.font-picker-meta {
  flex: none;
  font-size: 11px;
  color: var(--muted);
}
.font-picker-meta::after {
  content: '▾';
  margin-left: 8px;
}
.font-picker {
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #0b0b0b;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.font-picker[hidden] {
  display: none;
}
#fontSearch {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #000;
  color: var(--text);
  font-size: 13px;
}
#fontSearch:focus {
  border-color: var(--accent);
  outline: none;
}
.font-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.font-tab {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: transparent;
  color: #bdbdbd;
  font-size: 11px;
  cursor: pointer;
}
.font-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.font-list {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overscroll-behavior: contain;
}
.font-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.font-row:hover {
  background: #161616;
}
.font-row.active {
  border-color: var(--accent);
  background: #111113;
}
.font-row-name {
  font-size: 20px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.font-row-meta {
  flex: none;
  font-size: 10px;
  color: var(--muted);
}
.font-empty {
  margin: 12px 4px;
  color: var(--muted);
  font-size: 12px;
}
/* "beta" pill on the setup page's viewer-clips switch */
.beta-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
/* facecam split controls (Layout tab) */
.split-controls {
  border: 1px solid #353537;
  border-radius: var(--r-sm);
  padding: 12px 12px 2px;
  margin: -4px 0 18px;
}
.corner-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 10px;
  color: #a9a9ac;
}
.corner-row span {
  flex: 1;
}
.corner-row button {
  padding: 4px 9px;
  font-size: 13px;
  line-height: 1;
}
/* overlay layer cards (Text tab) */
.overlay-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.overlay-card {
  border: 1px solid #353537;
  border-radius: var(--r-sm);
  padding: 12px 12px 2px;
  background: #151517;
}
.overlay-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 11px;
  color: #cfcfd2;
}
.overlay-head strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.overlay-head span {
  font-size: 10px;
  color: #8d8d90;
  font-variant-numeric: tabular-nums;
}
.overlay-head button {
  padding: 2px 7px;
}
.overlay-card textarea {
  margin-bottom: 12px;
}
.overlay-card .pair {
  margin-bottom: 6px;
}
.overlay-card .pair button {
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  background: var(--c-raised);
  color: var(--c-fg-2);
  font-size: var(--t-label); /* CLAUDE 11-09: was 10 px words floating in the panel */
}
.overlay-card.selected {
  border-color: var(--c-fg);
  box-shadow: 0 0 0 1px rgba(242, 240, 235, 0.33);
}
/* CLAUDE 10-01 Text v2 inspector: style toggles, In / Out / Loop tiles, saved styles */
.tfx-head {
  margin: 14px 0 8px;
  color: #cfcfd2;
  font-size: 11px;
  font-weight: 600;
}
/* CLAUDE 10-08: the Text tab's collapsible groups (Font, Stroke, Background, Shadow, Glow, Transform, Timing) */
.ov-grp {
  border-top: 1px solid #2a2a2c;
  padding: 2px 0 6px;
}
.ov-grp > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  color: #cfcfd2;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.ov-grp > summary::-webkit-details-marker {
  display: none;
}
.ov-grp > summary::after {
  content: '▾';
  margin-left: auto;
  color: #8d8d90;
  transition: transform 0.15s;
}
.ov-grp:not([open]) > summary::after {
  transform: rotate(90deg);
}
.ov-grp > summary:focus-visible {
  outline: 2px solid var(--c-fg);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .ov-grp > summary::after {
    transition: none;
  }
}
.tfx-row {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}
.tfx-gap {
  flex: 1;
}
.tfx-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 28px;
  padding: 0;
  font-size: 13px;
}
.tfx-btn[aria-pressed='true'],
.tfx-tile[aria-pressed='true'],
.tfx-tabs [aria-selected='true'] {
  border-color: #afafb2;
  background: #29292b;
  color: #fff;
}
.tfx-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}
.tfx-tabs button {
  padding: 6px;
  font-size: 11px;
}
.tfx-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}
/* CLAUDE 10-29 (Text library round 5): the animation picker's tabs (Trending, Basic, Slide ...), one scrolling row of
   underlined words like the Text page's own tabs (.tfx-sub); hidden while a search or the Favorites filter is on */
.tfx-cats {
  display: flex;
  gap: var(--s-4);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-bottom: 1px solid var(--c-line);
}
.tfx-cats::-webkit-scrollbar {
  display: none;
}
.tfx-cats[hidden] {
  display: none;
}
.tfx-cats button {
  flex: 0 0 auto;
  min-height: 0;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--c-fg-3);
  font-size: var(--t-label);
  font-weight: 500;
  white-space: nowrap;
}
/* a tile's name and its sub line (Letters, middle out) */
.tfx-name,
.tfx-subname {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tfx-subname {
  margin-top: -3px;
  color: var(--c-fg-3);
  font-size: var(--t-meta);
}
/* while the catalog loads (the first open): tiles' shapes, breathing */
.tfx-skel {
  height: 62px;
  border-radius: var(--r-md);
  background: var(--c-line);
  animation: tfx-skel var(--d-skel) ease-in-out infinite alternate;
}
@keyframes tfx-skel {
  to {
    opacity: 0.45;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tfx-skel {
    animation: none;
  }
}
.tfx-more {
  grid-column: 1 / -1;
  height: 1px;
}
/* CLAUDE 10-23 (round 4): the animation picker's search and Favorites filter, pinned with In / Out / Loop */
.tfx-find {
  display: flex;
  gap: var(--s-1);
  align-items: center;
}
.tfx-find input {
  flex: 1;
  min-width: 0;
}
.tfx-empty {
  grid-column: 1 / -1;
  margin: var(--s-2) 0;
  color: var(--c-fg-3);
  font-size: var(--t-label);
  text-align: center;
}
.tfx-tile {
  position: relative;
  display: grid;
  gap: 4px;
  place-items: center;
  padding: 8px 2px 6px;
  font-size: 10px;
  overflow: hidden;
}
/* CLAUDE 10-20: the pinned In / Out / Loop row and its length (controls.css .pin-set), and a check on the applied tile */
.tfx-pin {
  display: grid;
  gap: var(--s-1);
  margin-bottom: var(--s-2);
}
.tfx-pin .tfx-tabs,
.tfx-pin .range-field {
  margin: 0;
}
.tfx-tile[aria-pressed='true']:not([data-anim='none'])::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: var(--r-pill);
  background: var(--c-fg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230e0e10' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}
/* CLAUDE 10-15 Curve and Bubble (app-textshape.js): the Text page's Basic / Bubble tabs (the inspector's text tabs with an
   underline), the Bubble tiles' pictures and their options */
.tfx-sub {
  display: flex;
  gap: var(--s-4);
  margin: 0 0 var(--s-3);
  border-bottom: 1px solid var(--c-line);
}
.tfx-sub button {
  flex: 0 0 auto;
  min-height: 0;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--c-fg-3);
  font-size: var(--t-label);
  font-weight: 500;
}
.tfx-sub button[aria-selected='true'],
.tfx-cats button[aria-selected='true'] {
  color: var(--c-fg);
  box-shadow: inset 0 -2px 0 var(--c-fg);
}
@media (max-width: 767px) {
  .tfx-sub button,
  .tfx-cats button {
    padding: 12px 0;
    font-size: 14px;
  }
}
/* CLAUDE 10-16: three pages now (Basic, Bubble, Effects): only the one named by data-sub shows */
.layer-ed .overlay-card[data-sub] [data-sub-pane] {
  display: none;
}
.layer-ed .overlay-card[data-sub='basic'] [data-sub-pane='basic'],
.layer-ed .overlay-card[data-sub='bubble'] [data-sub-pane='bubble'],
.layer-ed .overlay-card[data-sub='effects'] [data-sub-pane='effects'] {
  display: block;
}
.tfx-tile svg {
  display: block;
  max-width: 100%;
}
.tfx-bub-opts {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.tfx-bub-opts[hidden],
.tfx-bub-opts [hidden] {
  display: none;
}
.tfx-demo {
  display: inline-block;
  min-height: 22px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  will-change: transform, opacity;
}
.tfx-save {
  align-items: stretch;
}
.tfx-presets {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.tfx-presets div {
  display: flex;
  gap: 4px;
}
.tfx-presets div button:first-child {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
#preview {
  touch-action: none;
}
/* the high-quality on-screen copy of #preview (app.js present); clicks go through to #preview */
#previewView {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.preview-wrap:fullscreen #previewView {
  display: none;
}
/* multi-track timeline under the preview */
.edit-timeline {
  width: 100%;
  margin: 0 0 10px;
  border: 1px solid #363638;
  border-radius: var(--r-sm);
  background: #121214;
  padding: 8px 8px 10px;
  flex: none;
}
.tl-tools {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}
.tl-tools button {
  font-size: 10px;
  padding: 5px 8px;
  min-height: 26px;
}
.tl-body {
  display: flex;
  gap: 6px;
}
.tl-labels {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 52px;
  flex: none;
}
.tl-labels span {
  height: 22px;
  line-height: 22px;
  font-size: 9px;
  color: #8d8d90;
  letter-spacing: 0.4px;
}
.tl-tracks {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  user-select: none;
}
.tl-track {
  position: relative;
  height: 22px;
  background: #19191b;
  border-radius: var(--r-xs);
  overflow: hidden;
}
.tl-block {
  position: absolute;
  top: 2px;
  bottom: 2px;
  border-radius: 3px;
  font-size: 9px;
  line-height: 18px;
  padding: 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}
.tl-seg {
  background: #3d3d3f;
  color: #e1e1e4;
  border: 1px solid #616164;
  cursor: pointer;
}
.tl-seg:nth-child(even) {
  background: #353537;
}
.tl-seg.selected {
  border-color: var(--c-fg);
  box-shadow: 0 0 0 1px var(--c-fg) inset;
}
.tl-cap {
  background: #3a4652;
  opacity: 0.85;
}
.tl-ov {
  background: #5a4a14;
  color: #fff3c2;
  border: 1px solid #8a7422;
  cursor: grab;
  border-left-width: 4px;
  border-right-width: 4px;
}
.tl-ov.selected {
  border-color: var(--c-fg);
}
.tl-ov:active {
  cursor: grabbing;
}
.tl-music {
  background: #233a4d;
  color: #bcdcf5;
}
.tl-tick {
  position: absolute;
  top: 3px;
  bottom: 3px;
  width: 2px;
  margin-left: -1px;
  background: #ffb04a;
  border-radius: 1px;
}
.tl-playhead {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  margin-left: -1px;
  background: #fff; /* CLAUDE 10-03: white at every width, like CapCut (green is for primary actions) */
  pointer-events: none;
  box-shadow: 0 0 3px #0009;
}
.tl-seg {
  cursor: grab;
  border-left-width: 3px;
  border-right-width: 3px;
}
.tl-seg:active {
  cursor: grabbing;
}
/* compact timeline so the preview keeps its height */
.edit-timeline {
  padding: 6px 8px 7px;
  margin-bottom: 8px;
}
.tl-tools {
  margin-bottom: 6px;
}
.tl-tools button {
  min-height: 22px;
  padding: 3px 7px;
}
.tl-track,
.tl-labels span {
  height: 18px;
  line-height: 18px;
}
.tl-block {
  line-height: 14px;
  font-size: 8.5px;
}
.tl-labels,
.tl-tracks {
  gap: 3px;
}
