/* palette restored to the user's black + Kick green (#53fc18); ChatGPT's charcoal/lime hexes were mapped 1:1, layout untouched */
/* RipClip visual system. Kept separate from Claude's original styles. */
:root {
  --bg: #000000;
  --panel: #0f0f0f;
  --line: #262626;
  --muted: #8f8f8f;
  --text: #f3f3f3;
  --accent: #53fc18;
  --accent-ink: #0d0d0f;
  --radius: 14px;
}
body {
  margin: 0;
  background: var(--bg);
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  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: 36px;
  border-radius: 8px;
}
button:disabled {
  cursor: wait;
}
.primary,
.accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
}
.primary:hover,
.accent:hover {
  background: #7dff4d;
  border-color: #7dff4d;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.badge {
  color: var(--accent);
  border-color: #4a4a4c;
  background: #53fc180a;
  font-size: 9px;
}
.studio-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: #212123;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
}
.brand-light {
  font-weight: 400;
  color: #cfcfd2;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.7px;
  color: var(--muted);
}
/* 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: 30px 20px 20px;
  background: #111414;
  border-right: 1px solid var(--line);
  z-index: 3;
  gap: 0;
}
.home-brand {
  gap: 10px;
  font-size: 22px;
  letter-spacing: -0.8px;
  padding: 0 4px;
  margin-bottom: 35px;
  font-weight: 720;
}
.home-brand small {
  display: block;
  color: #828285;
  font-size: 8px;
  letter-spacing: 1.7px;
  font-weight: 500;
  margin-top: 6px;
}
.home-nav .nav-create {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  padding: 10px;
  font-size: 13px;
  border-radius: 8px;
}
.home-nav .nav-create:hover {
  background: #7dff4d;
  color: var(--accent-ink);
}
.nav-create span {
  font-size: 20px;
  font-weight: 400;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #7b7b7e;
  margin: 32px 12px 12px;
}
.home-tabs {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.home-tabs a {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 11px;
  color: #9b9b9e;
  font-size: 13px;
  font-weight: 500;
}
.home-tabs a.active {
  color: #e5e5e8;
  background: #53fc180c;
  border-color: #53fc1814;
}
.home-tabs a:hover {
  color: var(--text);
  background: #1e1e20;
}
.nav-icon {
  font-size: 18px;
  width: 20px;
  display: inline-flex;
  justify-content: center;
  color: #97979a;
}
.active .nav-icon {
  color: var(--accent);
}
.home-tabs .count {
  margin-left: auto;
  background: #303032;
  color: var(--accent);
  font-size: 10px;
  padding: 2px 7px;
}
.nav-bottom {
  margin-top: auto;
  padding-top: 24px;
}
.local-status {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  color: #c5c5c8;
}
.local-status i,
.workspace-ready i {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
.local-status > span {
  margin-left: auto;
  color: #818184;
  font-size: 8px;
  letter-spacing: 1px;
}
.nav-bottom p {
  font-size: 11px;
  color: #868689;
  line-height: 1.8;
  margin: 13px 0 20px;
}
.home-nav #homeWorkspace {
  width: 100%;
  display: flex;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #d3d3d6;
  font-size: 12px;
  padding: 10px 12px;
}
.workspace-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  flex: none;
  border-bottom: 1px solid #29292b;
  padding: 0 44px;
  color: #87878a;
  font-size: 10px;
  letter-spacing: 1.6px;
}
.workspace-ready {
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0;
  font-size: 11px;
  color: #b6b6b9;
}
button.workspace-ready {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #f3f3f3);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 6px 10px;
  min-height: 36px;
  cursor: pointer;
}
button.workspace-ready:hover {
  border-color: #3a3a3a;
}
/* Home: useful entry point and real footage rather than a blank landing page */
.home-inner {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 62px 44px 24px;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(290px, 0.85fr);
  column-gap: 40px;
  row-gap: 42px;
}
.hero-copy {
  align-self: center;
  min-width: 0;
}
.home-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b4b4b7;
  letter-spacing: 1.8px;
  font-weight: 550;
  font-size: 9px;
  margin: 0 0 22px;
}
.home-eyebrow > span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--accent);
}
#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);
}
.home-sub {
  font-size: 14px;
  line-height: 1.8;
  color: #a0a0a3;
  margin: 0 0 28px;
  max-width: 440px;
}
.import-panel {
  background: #111111;
  border: 1px solid #363638;
  border-radius: 12px;
  padding: 18px;
  max-width: 560px;
  box-shadow: 0 14px 40px #0002;
}
.import-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 8px;
}
.import-heading b {
  font-size: 12px;
  font-weight: 600;
}
.import-heading > span {
  font-size: 10px;
  color: #8b8b8e;
}
.home-row {
  display: block;
}
.home-bar {
  width: 100%;
  border-radius: 8px;
  padding: 5px 5px 5px 12px;
  background: #0f0f11;
  box-shadow: none;
  border-color: #363638;
}
.home-bar:focus-within {
  box-shadow: 0 0 0 3px #53fc1812;
  border-color: #8e8e91;
}
.home-bar .link-icon {
  font-size: 20px;
  color: #949497;
}
.home-bar input#homeUrl {
  font-size: 12px;
  padding: 10px 5px;
}
.home-bar button {
  font-size: 11px;
  border-radius: 6px;
  padding: 11px 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 38px;
  background: var(--accent);
}
.home-bar button:hover {
  background: #7dff4d;
}
.import-foot {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 12px;
}
.home-upload {
  background: transparent !important;
  color: #cbcbce;
  border: 0;
  font-size: 11px;
  padding: 2px 0;
  border-radius: 0;
  min-height: 25px;
}
.home-upload:hover {
  color: var(--accent);
}
.import-foot > span {
  font-size: 9px;
  color: #7d7d80;
}
.home-alt {
  margin: 17px 0 0;
  min-height: 18px;
  font-size: 11px;
}
.home-alt a {
  text-decoration: none;
  color: #a2a2a5;
}
.home-alt a:hover {
  color: var(--accent);
}
.home-progress {
  align-items: stretch;
  font-size: 11px;
}
.home-progress progress {
  width: 100%;
  height: 6px;
}
.home-progress small {
  color: #c5c5c8;
  line-height: 1.6;
}
.hero-preview {
  position: relative;
  min-height: 425px;
  align-self: center;
}
.preview-orbit {
  position: absolute;
  inset: 15px -10px 0;
  background: radial-gradient(ellipse, #394b2545, transparent 65%);
  border: 1px solid #27302577;
  border-radius: 50%;
  transform: rotate(-20deg);
}
.hero-source {
  position: absolute;
  top: 56px;
  left: 0;
  width: 63%;
  height: 155px;
  border: 1px solid #464648;
  border-radius: 11px;
  overflow: hidden;
  transform: rotate(-7deg);
  background: #252527;
  box-shadow: 0 12px 40px #0005;
}
.hero-source img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}
.micro-label {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 8px;
  letter-spacing: 1.5px;
  z-index: 1;
  background: #0008;
  padding: 5px 7px;
  border-radius: 3px;
  color: #e7e7ea;
}
.source-chip {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 8px;
  background: #0008;
  border-radius: 4px;
  padding: 4px 6px;
  color: #d1d1d4;
}
.source-fallback {
  padding: 60px 18px;
  font-size: 18px;
}
.hero-source:has(img:not([hidden])) .source-fallback {
  display: none;
}
.hero-clip {
  position: absolute;
  top: 0;
  right: 12px;
  width: 205px;
  height: 364px;
  border: 5px solid #39393b;
  border-radius: 19px;
  padding: 0;
  overflow: hidden;
  background: #161616;
  box-shadow: 0 25px 65px #0009;
  transform: rotate(6deg);
  cursor: pointer;
}
.hero-clip:hover {
  transform: rotate(3deg) translateY(-4px);
  background: #161616;
}
.hero-clip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-clip-tag {
  position: absolute;
  left: 10px;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #f1f1f4;
  background: #14200edf;
  border: 1px solid #abc87844;
  border-radius: 5px;
  padding: 5px 7px;
  font-size: 7px;
  letter-spacing: 1px;
}
.hero-clip-tag i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.hero-play {
  position: absolute;
  bottom: 15px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #fff6;
  border-radius: 50%;
  background: #0007;
  color: white;
}
.hero-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.05;
  text-align: left;
}
.hero-placeholder em {
  font-style: normal;
  color: var(--accent);
}
.hero-clip:has(img:not([hidden])) .hero-placeholder {
  display: none;
}
.hero-note {
  position: absolute;
  left: 5px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid #3c3c3e;
  border-radius: 10px;
  background: #1e1e20;
  box-shadow: 0 10px 30px #0005;
  transform: rotate(-3deg);
}
.hero-note > span {
  font-size: 27px;
  color: var(--accent);
}
.hero-note b {
  display: block;
  font-size: 12px;
  font-weight: 550;
}
.hero-note small {
  display: block;
  font-size: 9px;
  color: #9a9a9d;
  margin-top: 5px;
}
.workflow-strip {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 23px 0;
  gap: 20px;
}
.workflow-strip > div {
  display: flex;
  align-items: center;
  gap: 15px;
}
.workflow-strip > div > span {
  color: #6f6f72;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  border: 1px solid #373739;
  border-radius: 7px;
  padding: 9px;
}
.workflow-strip p {
  margin: 0;
}
.workflow-strip b {
  display: block;
  font-size: 12px;
  font-weight: 550;
}
.workflow-strip small {
  display: block;
  color: #87878a;
  font-size: 10px;
  margin-top: 5px;
}
.recent-section {
  grid-column: 1/-1;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.section-heading h2 {
  font-size: 23px;
  letter-spacing: -0.8px;
  margin: 8px 0 0;
}
.section-heading .eyebrow {
  font-size: 8px;
}
.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: 10px;
  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: 5px;
}
.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;
}
.studio-footer {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: #6d6d70;
  letter-spacing: 1px;
}
.studio-footer b {
  padding: 0 7px;
  color: #4b4b4d;
}
.studio-footer > span:last-child {
  letter-spacing: 0;
  font-size: 10px;
}
/* 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;
}
.library-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 29px;
}
.library-heading .eyebrow {
  font-size: 9px;
  margin: 0 0 10px;
}
.lib-title {
  font-size: 38px;
  letter-spacing: -1.5px;
  font-weight: 600;
  margin: 0 0 8px;
}
.lib-title > span {
  color: var(--accent);
}
.page-sub {
  font-size: 12px;
  color: #9b9b9e;
  line-height: 1.8;
}
.library-heading > .primary {
  font-size: 12px;
  padding: 11px 17px;
}
.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 25px;
}
.library-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #111111;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  width: min(370px, 100%);
}
.library-search > span {
  font-size: 23px;
  color: #87878a;
}
.library-search input#librarySearch {
  background: transparent;
  border: 0;
  padding: 11px 0;
  font-size: 12px;
  outline: 0;
}
.library-search:focus-within {
  border-color: #88888b;
}
.sort-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #858588;
  font-size: 11px;
  white-space: nowrap;
}
.sort-label select {
  font-size: 11px;
  padding: 9px;
  border-color: var(--line);
  width: 130px;
  background: #151917;
}
.lib-tabs {
  gap: 24px;
  margin-bottom: 25px;
}
.lib-tabs a {
  font-size: 12px;
  padding: 10px 0 13px;
  color: #919194;
}
.lib-tabs a.active {
  border-color: var(--accent);
  color: #e8e8eb;
}
.coll-row {
  gap: 10px;
  margin-bottom: 32px;
}
.coll-tile {
  min-width: 185px;
  height: 66px;
  padding: 0 14px;
  border-radius: 9px;
  background: #111111;
  gap: 12px;
}
.coll-tile.add {
  order: 10;
  min-width: 160px;
  font-size: 11px;
}
.coll-tile .coll-icon {
  background: #2c2c2e;
  color: #bfbfc2;
  border-radius: 7px;
  width: 32px;
  height: 32px;
  font-size: 15px;
}
.coll-tile b {
  font-size: 12px;
  font-weight: 550;
}
.coll-tile small {
  font-size: 10px;
  color: #8a8a8d;
  margin-top: 5px;
  display: block;
}
.sec-title {
  font-size: 12px;
  color: #c5c5c8;
  font-weight: 550;
  margin-bottom: 14px;
}
.storage {
  font-size: 10px;
  color: #858588;
}
.storage .pill {
  background: transparent;
  border-color: var(--line);
  color: #98989b;
  font-size: 9px;
  padding: 4px 7px;
}
.proj-grid {
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 22px;
  align-items: start;
}
.proj-tile {
  background: #171719;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 8px 15px;
  min-width: 0;
  transition: border-color 0.2s;
}
.proj-tile:hover {
  border-color: #5d5d60;
}
.proj-tile .cover {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 7px;
  min-height: 0;
  cursor: pointer;
}
.proj-tile .row {
  padding: 0 6px;
  margin-top: 14px;
}
.proj-tile .name {
  font-size: 14px;
  font-weight: 550;
}
.proj-tile .info {
  padding: 0 6px;
  color: #929295;
  font-size: 10px;
  margin-top: 5px;
}
.proj-tile .info b {
  color: #bdbdc0;
}
.proj-tile .cover .foot {
  text-align: left;
  padding: 25px 12px 10px;
  font-size: 9px;
  background: linear-gradient(transparent, #000c);
}
.proj-tile .cover .foot b {
  color: #dddde0;
  font-weight: 500;
}
.proj-tile .cover .badge-new {
  background: #ededf0;
  color: #222224;
  font-size: 9px;
  right: 10px;
  top: 10px;
  padding: 4px 7px;
}
/* CLAUDE 10-05 (the owner): Upload new video is always the first slot, so it never scrolls away behind the projects */
.upload-tile {
  order: -1;
  min-height: 198px;
  aspect-ratio: auto;
  border-color: #3b3b3d;
  border-radius: 12px;
  font-size: 12px;
  color: #a1a1a4;
}
.upload-tile .plus {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid #404042;
  background: #232325;
  font-size: 22px;
  color: #c4c4c7;
}
.lib-back {
  font-size: 11px;
  margin-bottom: 25px;
  color: #99999c;
}
.page-head h2 {
  font-size: 32px;
  font-weight: 570;
  letter-spacing: -1px;
}
.lib-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}
.lib-card {
  background: #111111;
  border: 1px solid #323234;
  border-radius: 12px;
  padding: 7px 7px 0;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.lib-card:hover {
  border-color: #5e5e61;
  transform: translateY(-2px);
}
.lib-card .thumb {
  aspect-ratio: 9/16;
  max-height: none;
  border-radius: 7px;
  overflow: hidden;
}
.lib-card .thumb video {
  object-fit: contain;
  background: #0b0b0d;
}
.lib-card .body {
  padding: 15px 7px 12px;
  gap: 9px;
}
.lib-card .title {
  font-size: 13px;
  font-weight: 550;
  line-height: 1.5;
}
.lib-card .preview {
  font-size: 11px;
  color: #a6a6a9;
  line-height: 1.6;
  min-height: 35px;
}
.lib-card .meta {
  font-size: 9px;
  color: #8a8a8d;
}
.lib-card .actions {
  padding: 0 6px 9px;
  gap: 7px;
}
.lib-card .actions a {
  background: transparent;
  border: 1px solid #3e3e40;
  color: #cccccf;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lib-card .actions button {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 600;
}
/* CLAUDE 10-04: Post is the card's one green action; Edit sits quiet beside Download */
.lib-card .actions [data-edit] {
  background: transparent;
  border: 1px solid #3e3e40;
  color: #cccccf;
  font-weight: 500;
}
.lib-card .score {
  padding: 6px 8px;
  border-radius: 6px;
  background: #10170dea;
  text-align: left;
}
.lib-card .score small {
  font-size: 7px;
  color: #b4b4b7;
  letter-spacing: 1px;
}
.lib-card .score b {
  font-size: 17px;
  display: block;
  margin-top: 3px;
  color: #e3e3e6;
}
.lib-card .edited-tag {
  background: #e8e8eb;
  color: #29292b;
  font-size: 8px;
  padding: 5px 6px;
  font-weight: 600;
  letter-spacing: 0.6px;
}
.lib-card .dur {
  font-size: 10px;
  padding: 5px 6px;
}
.lib-card .fav {
  border-radius: 7px;
  font-size: 17px;
}
.lib-card .fav.on {
  color: #e5b5c0;
  border-color: #b8839190;
}
.card-menu {
  position: fixed;
  max-height: calc(100vh - 24px);
  overflow: auto;
  background: #1f1f21;
  border-color: #414143;
  box-shadow: 0 14px 50px #0009;
  border-radius: 10px;
}
.card-menu button {
  font-size: 12px;
}
.card-menu button:hover {
  background: #2e2e30;
}
.card-menu .label {
  color: #a3a3a6;
}
.alpha-info {
  background: #111111;
  border: 1px solid var(--line);
  padding: 30px;
  border-radius: 14px;
  line-height: 1.8;
  color: #a7a7aa;
}
.alpha-info h3 {
  color: var(--text);
  font-size: 26px;
  font-weight: 550;
}
.alpha-info li {
  margin: 10px 0;
}
.alpha-info .primary {
  margin-top: 18px;
}
.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: #18181a;
  border-color: #313133;
  border-radius: 12px;
  padding: 17px;
}
.library {
  padding: 17px;
  overflow: hidden;
}
.section-title {
  color: #cfcfd2;
  font-size: 9px;
  letter-spacing: 1.6px;
}
.section-title span {
  color: #8d8d90;
  font-size: 9px;
}
.source-tools {
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  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;
}
input:not([type='checkbox']):not([type='range']):not([type='color']),
select,
textarea {
  background: #131315;
  border-color: #2a2a2a;
  color: #e2e2e5;
  border-radius: 6px;
}
.caption-list {
  min-height: 160px;
}
.caption-row {
  background: #151517;
  border: 1px solid #333335;
  border-radius: 8px;
  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: 12px;
  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: 9px;
  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;
}
.trim-bar {
  background: #141416;
  border-color: #363638;
  border-radius: 7px;
  padding: 8px;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.trim-bar .eyebrow {
  font-size: 8px;
}
.trim-bar label {
  font-size: 9px;
  color: #98989b;
}
.trim-bar button {
  min-height: 27px;
  font-size: 8px;
  padding: 4px 6px;
}
.trim-bar input {
  font-size: 10px !important;
  width: 62px !important;
}
.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: 4px;
}
.sequence-strip button.active {
  background: #acacaf;
  color: #1a1a1c;
  border-color: #53fc18;
}
.inspector {
  overflow: auto;
}
.inspector .section-title {
  margin-bottom: 20px;
}
.tabs {
  gap: 2px;
}
.tabs button {
  flex: 1;
  font-size: 11px;
  padding: 10px 5px;
  color: #8e8e91;
}
.tabs .active {
  color: #dedee1;
  border-color: var(--accent);
}
.font-sample {
  background: #111113;
  border-color: #3d3d3f;
  font-size: 18px;
  color: #e2e2e5;
}
.font-upload {
  font-size: 10px;
  color: #b4b4b7;
}
.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;
}
.inspector-footer {
  font-size: 9px;
  color: #97979a;
  line-height: 1.5;
}
.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: 9px;
}
.card-menu {
  z-index: 90;
}
.busy-canvas {
  opacity: 0.6;
}
input:disabled,
button:disabled {
  opacity: 0.5;
}
progress {
  accent-color: var(--accent);
}
dialog {
  background: #1c1c1e;
  border-color: #515154;
  color: #eaeaed;
}
dialog p {
  color: #a9a9ac;
}
@media (min-width: 1600px) {
  .home-inner {
    padding-top: 80px;
  }
  .hero-preview {
    min-height: 450px;
  }
  .hero-clip {
    width: 220px;
    height: 391px;
  }
}
@media (max-width: 1200px) {
  #home {
    padding-left: 190px;
  }
  .home-nav {
    width: 190px;
    padding: 26px 15px 18px;
  }
  .home-brand {
    font-size: 20px;
  }
  .home-inner {
    padding: 42px 30px 24px;
    gap: 30px;
    grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
  }
  .hero-clip {
    right: 0;
    width: 175px;
    height: 311px;
  }
  .hero-preview {
    min-height: 370px;
  }
  .hero-source {
    top: 48px;
    height: 132px;
    width: 68%;
  }
  .hero-note {
    padding: 12px;
    bottom: 5px;
    left: 0;
  }
  .hero-note b {
    font-size: 11px;
  }
  .hero-note small {
    font-size: 8px;
  }
  #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;
  }
  .home-bar button {
    font-size: 10px;
    padding: 10px;
  }
  .home-bar button span {
    display: none;
  }
  .import-heading > span {
    font-size: 9px;
  }
  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-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-copy {
    max-width: 670px;
  }
  .hero-preview {
    display: none;
  }
  .home-sub {
    max-width: 520px;
  }
  .import-panel {
    max-width: none;
  }
  .home-row {
    width: 100%;
  }
  #home h1 {
    font-size: 58px;
  }
  .workflow-strip {
    gap: 12px;
  }
  .workflow-strip > div {
    gap: 8px;
  }
  .workflow-strip small {
    font-size: 9px;
  }
  .workflow-strip b {
    font-size: 10px;
  }
  .workflow-strip > div > span {
    padding: 7px;
    font-size: 9px;
  }
  .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;
  }
  .lib-title {
    font-size: 34px;
  }
}
@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: 6px;
  }
  .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-inner {
    padding: 33px 22px 24px;
    row-gap: 28px;
  }
  .home-eyebrow {
    font-size: 8px;
    margin-bottom: 20px;
  }
  #home h1 {
    font-size: 49px;
    letter-spacing: -2.5px;
  }
  .home-sub {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 24px;
  }
  .import-panel {
    padding: 14px;
  }
  .import-heading > span {
    font-size: 9px;
  }
  .home-bar {
    padding-left: 8px;
  }
  .home-bar input#homeUrl {
    font-size: 11px;
  }
  .home-bar button {
    font-size: 10px;
    padding: 10px;
  }
  .home-alt {
    font-size: 10px;
  }
  .import-foot {
    gap: 10px;
  }
  .import-foot > span {
    font-size: 8px;
  }
  .workflow-strip {
    padding: 18px 0;
    gap: 15px;
  }
  .workflow-strip > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
  .workflow-strip > div > span {
    border: 0;
    padding: 0;
    color: #b0b0b3;
  }
  .workflow-strip small {
    font-size: 9px;
    line-height: 1.7;
    margin-top: 4px;
  }
  .workflow-strip b {
    font-size: 10px;
  }
  .recent-grid {
    grid-template-columns: 1fr;
  }
  .recent-card img {
    width: 82px;
  }
  .recent-card b {
    max-width: 220px;
  }
  .section-heading h2 {
    font-size: 21px;
  }
  .section-heading .eyebrow {
    font-size: 7px;
    letter-spacing: 1.4px;
  }
  .text-button {
    font-size: 10px;
    padding: 6px;
  }
  .studio-footer {
    font-size: 8px;
  }
  .studio-footer > span:last-child {
    font-size: 9px;
  }
  .page-inner,
  .page-inner.wide {
    padding: 28px 20px 40px;
  }
  .library-heading {
    gap: 10px;
    flex-wrap: wrap;
  }
  .library-heading .page-sub {
    font-size: 11px;
  }
  .library-heading > .primary {
    font-size: 10px;
    padding: 8px 12px;
  }
  .library-toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .library-search {
    width: 100%;
  }
  .sort-label {
    margin-left: auto;
    font-size: 10px;
  }
  .lib-title {
    font-size: 33px;
  }
  .lib-tabs {
    gap: 23px;
  }
  .lib-tabs a {
    font-size: 11px;
  }
  .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: 11px;
  }
  .coll-tile .coll-icon {
    width: 27px;
    height: 27px;
  }
  .coll-tile small {
    font-size: 9px;
  }
  .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: 9px;
  }
  .proj-tile .name {
    font-size: 12px;
  }
  .proj-tile .cover .foot {
    font-size: 8px;
    padding: 20px 8px 7px;
  }
  .proj-tile .cover .badge-new {
    font-size: 8px;
    padding: 3px 5px;
  }
  .proj-tile .row {
    margin-top: 9px;
  }
  .upload-tile {
    min-height: 155px;
    font-size: 10px;
  }
  .lib-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .lib-card {
    padding: 5px 5px 0;
    border-radius: 9px;
  }
  .lib-card .body {
    padding: 10px 3px;
    gap: 7px;
  }
  .lib-card .title {
    font-size: 11px;
  }
  .lib-card .preview {
    font-size: 10px;
  }
  .lib-card .actions {
    padding: 0 2px 7px;
    gap: 5px;
  }
  .lib-card .actions a,
  .lib-card .actions button {
    font-size: 10px;
    padding: 8px 5px;
  }
  .lib-card .edited-tag {
    font-size: 6px;
    left: 6px;
    top: 6px;
  }
  .lib-card .dur {
    font-size: 8px;
    right: 6px;
    top: 6px;
  }
  .lib-card .score {
    left: 6px;
    bottom: 6px;
    padding: 5px 6px;
  }
  .lib-card .score b {
    font-size: 14px;
  }
  .lib-card .score small {
    font-size: 6px;
  }
  .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: 10px;
  }
  .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;
  }
  .trim-bar {
    gap: 6px;
  }
  .trim-bar button {
    font-size: 9px;
  }
  .trim-bar label {
    font-size: 10px;
  }
  .caption-list {
    min-height: 230px;
  }
  .studio-footer {
    gap: 14px;
  }
  .source-tools-body {
    max-height: 270px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    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: 8px;
  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: 10px;
  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: 7px;
  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: 999px;
  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: 7px;
  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: 999px;
  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: 8px;
  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: 8px;
  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 {
  font-size: 10px;
  padding: 6px;
}
.overlay-card.selected {
  border-color: #53fc18;
  box-shadow: 0 0 0 1px #53fc1855;
}
/* 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 #53fc18;
  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;
}
.tfx-tile {
  display: grid;
  gap: 4px;
  place-items: center;
  padding: 8px 2px 6px;
  font-size: 10px;
  overflow: hidden;
}
.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: 8px;
  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-hint {
  margin-left: auto;
  font-size: 9px;
  color: #7c7c7f;
  text-align: right;
}
.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: 4px;
  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: #53fc18;
  box-shadow: 0 0 0 1px #53fc18 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: #53fc18;
}
.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;
}
@media (max-width: 1300px) {
  .tl-hint {
    display: none;
  }
}
