* {
  box-sizing: border-box;
}
:root {
  color-scheme: dark;
  --bg: #000;
  --panel: #0f0f0f;
  --line: #262626;
  --muted: #8f8f8f;
  --text: #f3f3f3;
  --accent: #53fc18;
  --accent-ink: #0d0d0f;
} /* black + Kick green theme (was navy #0d0f13 / lime #d5fa77); greens in the greys made neutral 09-30 */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    13px system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #1a1a1a;
  color: var(--text);
  padding: 9px 12px;
  transition: background 0.15s;
}
button:hover {
  background: #262626;
}
button:disabled {
  opacity: 0.4;
  cursor: wait;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-weight: 700;
}
.primary:hover,
.accent:hover {
  background: #e4ffa0;
}
.quiet {
  background: transparent;
}
.accent {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
}
.badge {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--accent);
  border: 1px solid #404042;
  border-radius: 4px;
  padding: 3px 5px;
  vertical-align: middle;
  margin-left: 8px;
}
header {
  height: 80px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
  background: #11141a;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 18px;
  font-weight: 650;
  min-width: 220px;
}
.brand-icon {
  width: 37px;
  height: 39px;
  border: 1px solid #6a6a6d;
  background: #272729;
  border-radius: 11px;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 26px;
  position: relative;
}
.brand-icon span {
  font-size: 16px;
  position: absolute;
  right: 3px;
  top: 0;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.4px;
}
.project-title {
  flex: 1;
}
.project-title input {
  border: 0;
  background: none;
  font-weight: 550;
  color: var(--text);
  padding: 0;
  width: 100%;
  max-width: 320px;
}
.project-title span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.local-pill {
  font-size: 10px;
  color: #a8a8ab;
  margin-right: 10px;
}
main {
  display: grid;
  grid-template-columns: 258px minmax(330px, 1fr) 318px;
  gap: 20px;
  padding: 22px;
  max-width: 1600px;
  margin: auto;
  height: calc(100vh - 80px);
  min-height: 700px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.3px;
  margin-bottom: 16px;
  color: #c7ced9;
}
.section-title span {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0;
  font-weight: 400;
}
.library {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 17px;
}
.import-box {
  border: 1px dashed #4e4e50;
  background: linear-gradient(140deg, #252527, #1c1c1e);
  border-radius: 10px;
  min-height: 134px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 6px;
}
.import-box:hover,
.import-box.drag {
  border-color: var(--accent);
}
.upload-icon {
  font-size: 25px;
  color: var(--accent);
  line-height: 25px;
}
.import-box strong {
  font-size: 13px;
  font-weight: 600;
}
.import-box small {
  font-size: 10px;
  color: var(--muted);
}
.formats {
  font-size: 8px;
  letter-spacing: 1.2px;
  color: #838386;
  margin-top: 3px;
}
.examples {
  padding: 12px 0;
}
.examples > span {
  font-size: 10px;
  color: var(--muted);
}
.examples > div {
  display: flex;
  gap: 6px;
  margin-top: 7px;
}
.examples button {
  font-size: 10px;
  padding: 6px 9px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  color: #bbc3d0;
  margin: 0 0 15px;
}
input:not([type='checkbox']):not([type='range']):not([type='color']),
select,
textarea {
  background: #161616;
  color: var(--text);
  border: 1px solid #2c2c2c;
  border-radius: 6px;
  padding: 9px;
  width: 100%;
  min-width: 0;
} /* theme */
select {
  cursor: pointer;
}
textarea {
  resize: vertical;
  line-height: 1.5;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 5px 0 18px;
  flex-shrink: 0;
}
.transcription .field {
  margin-bottom: 10px;
}
.pair {
  display: flex;
  gap: 10px;
  align-items: end;
}
.pair > * {
  flex: 1;
  min-width: 0;
}
.transcription .pair {
  gap: 6px;
}
.transcription button {
  font-size: 10px;
  white-space: nowrap;
  margin-bottom: 10px;
  padding: 11px 8px;
}
.transcription small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  display: block;
  margin: 9px 0;
}
.transcription details {
  margin: 0 0 4px;
}
.transcription summary {
  font-size: 10px;
  color: var(--muted);
}
details > textarea {
  margin-top: 8px;
}
summary {
  cursor: pointer;
}
.caption-tools {
  display: flex;
  gap: 8px;
  margin: 4px 0 10px;
}
.caption-tools button {
  font-size: 11px;
  padding: 7px 9px;
}
.caption-tools button:first-child {
  flex: 1;
}
.caption-list {
  overflow: auto;
  flex: 1;
  min-height: 100px;
  padding-right: 3px;
}
.caption-row {
  padding: 10px;
  border: 1px solid #2b303b;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #191d25;
}
.caption-row.active {
  border-color: #98989b;
  background: #28282a;
}
.caption-row .row-top {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-bottom: 6px;
}
.caption-row .row-top input {
  font-size: 10px;
  padding: 4px !important;
  max-width: 67px;
}
.caption-row textarea {
  font-size: 11px;
  padding: 5px;
  min-height: 48px;
}
.caption-row button {
  padding: 2px 5px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 12px;
}
.caption-row summary {
  font-size: 9px;
  color: #919194;
  margin-top: 5px;
}
.word-row {
  display: grid;
  grid-template-columns: 1fr 50px 50px;
  gap: 3px;
  align-items: center;
  margin: 5px 0;
  font-size: 10px;
}
.word-row input {
  padding: 3px !important;
  font-size: 10px;
}
.empty-captions {
  text-align: center;
  color: #9ba4b2;
  line-height: 1.7;
  padding: 20px 0;
  font-size: 12px;
}
.empty-captions span {
  font-size: 10px;
  color: #667183;
}
.stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.stage-heading {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px 14px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #8893a5;
  font-weight: 600;
}
h1 {
  font-size: 22px;
  letter-spacing: -0.5px;
  font-weight: 600;
  margin: 4px 0 0;
}
.format-pill {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 10px;
  color: #ccd3de;
}
.format-pill span {
  color: #647184;
  margin: 0 6px;
}
.preview-wrap {
  position: relative;
  flex: 1;
  min-height: 350px;
  max-height: calc(100vh - 280px);
  aspect-ratio: 9/16;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #333b49;
  box-shadow: 0 20px 70px #0007;
  background: radial-gradient(ellipse at 80% 20%, #2d2d2f, #151924 70%);
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#previewEmpty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px;
}
.empty-mark {
  font-size: 25px;
  display: grid;
  place-items: center;
  width: 65px;
  height: 65px;
  border: 1px solid #555558;
  border-radius: 18px;
  color: var(--accent);
  background: #303e2766;
  margin-bottom: 16px;
}
h2 {
  font-size: 18px;
  font-weight: 550;
  letter-spacing: -0.3px;
}
#previewEmpty p {
  font-size: 11px;
  line-height: 1.8;
  color: #929eac;
}
.transport {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 18px 0 12px;
  font-variant-numeric: tabular-nums;
}
.transport button {
  padding: 6px 9px;
}
.transport span {
  font-size: 10px;
  color: #9eabba;
}
.transport input {
  flex: 1;
  min-width: 30px;
}
.trim-bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 8px;
  background: #15191f;
}
.trim-bar > span:first-child {
  margin-right: 8px;
}
.trim-bar label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #929ead;
}
.trim-bar input {
  width: 66px !important;
  padding: 6px !important;
  font-size: 11px;
}
.trim-bar button {
  font-size: 9px;
  padding: 5px 7px;
}
.trim-line {
  flex: 1;
}
.stage-note {
  color: #657080;
  font-size: 9px;
  margin-top: 10px;
}
.inspector {
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.preset-actions {
  display: flex;
  gap: 8px;
  margin-top: -5px;
  margin-bottom: 18px;
}
.preset-actions button {
  font-size: 10px;
}
.preset-actions button:first-child {
  flex: 1;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin: 0 -2px 18px;
  gap: 7px;
}
.tabs button {
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 0;
  padding: 10px 12px;
  font-size: 11px;
}
.tabs .active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
.font-sample {
  font-size: 20px;
  text-align: center;
  padding: 18px 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #101319;
  white-space: nowrap;
  overflow: hidden;
}
.font-upload {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin: 12px 0;
  cursor: pointer;
  color: #c4c4c7;
}
.font-upload span {
  color: #687383;
  font-size: 9px;
}
.font-sources {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 18px;
}
.font-sources #fontSources {
  max-height: 190px;
  overflow: auto;
}
.font-sources a {
  display: block;
  color: #a1b4c9;
  padding: 5px 0;
}
.toggles {
  display: flex;
  gap: 10px;
  font-size: 9px;
  color: #a8b2c2;
  margin: 3px 0 19px;
  flex-wrap: wrap;
}
.toggles label {
  display: flex;
  gap: 3px;
  align-items: center;
}
input[type='checkbox'] {
  accent-color: var(--accent);
  width: 14px;
  height: 14px;
}
input[type='range'] {
  accent-color: var(--accent);
  height: 4px;
  cursor: pointer;
}
.color-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #bcc5d3;
  margin-bottom: 15px;
}
input[type='color'] {
  width: 31px;
  height: 29px;
  padding: 2px;
  background: #161616;
  border: 1px solid #2c2c2c;
  border-radius: 5px;
  cursor: pointer;
}
.switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #bac3d2;
  margin: 4px 0 20px;
}
.range-field {
  font-size: 11px;
  color: #b3bdcc;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 13px;
  margin-bottom: 24px;
}
.range-field input {
  grid-column: 1/-1;
  width: 100%;
  margin-inline: 0; /* the default 2px side margin pushed a full-width slider 2px past its field */
}
output {
  font-size: 10px;
  color: var(--accent);
}
.hint {
  font-size: 10px;
  line-height: 1.6;
  color: #778396;
}
.inspector-footer {
  margin-top: auto;
  padding-top: 25px;
  font-size: 9px;
  color: #8a8a8d;
  display: flex;
  align-items: center;
  gap: 7px;
}
.green-dot {
  background: #b0b0b3;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.job-card {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 70px;
  padding: 17px;
  background: #202831f5;
  border: 1px solid #58585b;
  border-radius: 10px;
  box-shadow: 0 15px 40px #000a;
  z-index: 5;
}
.job-card > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.job-card small {
  display: block;
  color: #b0bbc8;
  line-height: 1.5;
  max-height: 100px;
  overflow: auto;
}
.job-card progress {
  width: 100%;
  height: 7px;
  accent-color: var(--accent);
  margin: 14px 0;
}
.job-card button {
  font-size: 10px;
  padding: 5px 9px;
}
#jobDownloads {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
#jobDownloads a {
  background: var(--accent);
  color: #1c1c1e;
  border-radius: 5px;
  text-decoration: none;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(650px, 90vw);
  padding: 14px 20px;
  background: #2b3340;
  border: 1px solid #69758a;
  border-radius: 9px;
  z-index: 50;
  box-shadow: 0 10px 40px #0009;
  font-size: 12px;
  line-height: 1.6;
}
dialog {
  background: #1c222d;
  color: var(--text);
  border: 1px solid #4b5565;
  border-radius: 13px;
  max-width: 400px;
  padding: 25px;
  box-shadow: 0 30px 70px #0009;
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(4px);
}
dialog p {
  font-size: 12px;
  color: #9ca9bd;
  line-height: 1.7;
}
dialog input {
  margin: 8px 0 20px;
}
dialog form > div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
dialog h2 {
  margin-top: 0;
}
dialog #loginError {
  color: #f3adab;
}
[hidden] {
  display: none !important;
}
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-thumb {
  background: #3b4555;
  border-radius: 5px;
}
@media (max-width: 1120px) {
  main {
    grid-template-columns: 230px minmax(280px, 1fr) 275px;
    gap: 12px;
    padding: 14px;
  }
  header {
    gap: 12px;
    padding: 0 16px;
  }
  .local-pill {
    display: none;
  }
  .trim-bar {
    gap: 5px;
    padding: 8px;
  }
  .trim-bar > .eyebrow {
    display: none;
  }
  .inspector {
    padding: 14px;
  }
}
@media (max-width: 860px) {
  main {
    height: auto;
    grid-template-columns: 1fr 1fr;
  }
  .stage {
    grid-column: 1/-1;
    grid-row: 1;
  }
  .preview-wrap {
    height: 570px;
    flex: auto;
  }
  .library,
  .inspector {
    max-height: 800px;
  }
  .brand {
    min-width: unset;
  }
  .project-title {
    display: none;
  }
  .header-actions {
    margin-left: auto;
  }
  .header-actions .quiet {
    display: none;
  }
  .stage-heading {
    max-width: 600px;
  }
  .transport,
  .trim-bar {
    max-width: 600px;
  }
}
@media (max-width: 540px) {
  main {
    grid-template-columns: 1fr;
  }
  .stage {
    grid-column: 1;
  }
  .preview-wrap {
    height: 470px;
  }
  .library,
  .inspector {
    max-height: 750px;
  }
  .brand {
    font-size: 15px;
  }
  .header-actions button {
    font-size: 11px;
  }
  .trim-bar {
    flex-wrap: wrap;
  }
  .trim-line {
    display: none;
  }
}

/* clip finder results */
.clip-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.clip-result {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  font-size: 12px;
}
.clip-result:hover {
  border-color: var(--accent);
}
.clip-result b {
  color: var(--accent);
}
.clip-result small {
  display: block;
  opacity: 0.7;
  margin-top: 3px;
}

/* Kick import */
.kick-import {
  display: flex;
  gap: 6px;
  margin: 8px 0;
}
/* CLAUDE 10-06: "Just want to edit a video? Open the editor →" under the link boxes (app-project.js data-edit-only) */
.edit-bubble {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 10px auto 0;
  padding: 8px 14px;
  border: 1px solid rgba(83, 252, 24, 0.35);
  border-radius: 999px;
  background: rgba(83, 252, 24, 0.07);
  color: #d8d8db;
  font: 500 13px/1.3 inherit;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.edit-bubble b {
  color: #6dff3d;
  font-weight: 650;
  white-space: nowrap;
}
/* the landing's button rules make every button big and full width; this one stays a small pill */
#lp .edit-bubble {
  align-self: center;
  width: auto;
  max-width: 100%;
  min-height: 0;
  height: auto;
  padding: 7px 14px;
  font-size: 13px;
  line-height: 1.3;
  flex-wrap: wrap;
  justify-content: center;
}
.edit-bubble:hover {
  background: rgba(83, 252, 24, 0.14);
}
.edit-bubble:focus-visible {
  outline: 2px solid #6dff3d;
  outline-offset: 2px;
}
/* CLAUDE 10-06: "By getting clips, you confirm you own this video…" under every link box (a notice, nothing to tick) */
.rights-note {
  cursor: default;
  font-size: 12.5px;
}
/* "I own this video or have permission" under every link box (sent as rights with /api/import_url) */
.rights-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.rights-check input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  margin: 0;
}
.kick-import input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: inherit;
  padding: 6px 8px;
  font-size: 12px;
}

/* homepage — black, Kick green, pill link bar (layout after opus.pro's landing) */
#home {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  flex-direction: column;
  background: #000;
  overflow: auto;
}
body.at-home #home {
  display: flex;
}
body.at-home header,
body.at-home main {
  visibility: hidden;
}
/* CLAUDE 10-04: until init picks the page (showPage), nothing shows, so a refresh never flashes the editor or the
   landing; the 10 s reveal is only the safety net if a script fails (2 s was shorter than a slow connection's load) */
body.booting #home {
  opacity: 0;
  animation: boot-reveal 0s 10s forwards;
}
@keyframes boot-reveal {
  to {
    opacity: 1;
  }
}
.home-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
}
.home-nav .brand-icon {
  width: 26px;
  height: 26px;
  font-size: 14px;
}
.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.home-nav button {
  background: transparent;
  border: 0;
  color: var(--text);
  font-weight: 600;
  padding: 8px 10px;
}
.home-nav a {
  color: inherit;
  text-decoration: none;
}
.home-tabs {
  display: flex;
  gap: 4px;
}
.home-tabs a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #bdbdbd;
  font-weight: 600;
  font-size: 14px;
}
.home-tabs a:hover {
  color: var(--text);
  background: #141414;
}
.home-tabs a.active {
  color: var(--accent);
}
.home-tabs .count {
  display: inline-block;
  min-width: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  text-align: center;
  margin-left: 4px;
}
.home-nav button:hover {
  color: var(--accent);
  background: transparent;
}
.home-page {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.home-inner {
  width: min(900px, 100%);
  margin: auto;
  padding: 40px 24px 80px;
  text-align: center;
}
.home-eyebrow {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 13px;
  margin: 0 0 14px;
}
#home h1 {
  font-size: clamp(36px, 6vw, 64px);
  margin: 0 0 14px;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 800;
}
.home-sub {
  color: #bdbdbd;
  font-size: 17px;
  line-height: 1.5;
  margin: 0 auto 34px;
  max-width: 620px;
}
.home-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.home-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  width: min(520px, 100%);
  box-shadow:
    0 0 0 1px rgba(83, 252, 24, 0),
    0 20px 60px rgba(0, 0, 0, 0.6);
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}
.home-bar:focus-within {
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px rgba(83, 252, 24, 0.18),
    0 20px 60px rgba(0, 0, 0, 0.6);
}
.home-bar .link-icon {
  color: #9a9a9a;
  font-size: 16px;
  flex: none;
}
.home-bar input#homeUrl {
  flex: 1;
  min-width: 0;
  width: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: var(--text);
  font-size: 15px;
  padding: 10px 4px;
} /* id selector beats the generic input rule */
.home-bar input::placeholder {
  color: #8a8a8a;
}
.home-bar button {
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.home-bar button:hover {
  background: #6dff3a;
}
.home-or {
  color: #8a8a8a;
}
.home-upload {
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  border: 1px solid #fff;
}
.home-upload:hover {
  background: #e6e6e6;
}
.home-progress {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.home-progress progress {
  width: min(520px, 100%);
  accent-color: var(--accent);
}
.home-progress small {
  color: #bdbdbd;
}
.home-alt {
  margin-top: 26px;
  color: #8a8a8a;
  font-size: 13px;
}
.home-alt a {
  color: #d0d0d0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home-glow {
  position: absolute;
  left: 50%;
  top: -160px;
  width: 900px;
  height: 500px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(83, 252, 24, 0.14), transparent 70%);
  pointer-events: none;
}
@media (max-width: 600px) {
  .home-bar {
    padding-left: 14px;
  }
  .home-bar button {
    padding: 11px 14px;
    font-size: 14px;
  }
  .home-nav {
    padding: 14px 16px;
  }
}

/* library / pricing / support / contact pages */
.page-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 28px 24px 80px;
}
.page-inner.narrow {
  width: min(720px, 100%);
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.page-head.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.page-head h2 {
  font-size: 32px;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.page-sub {
  color: #bdbdbd;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  max-width: 620px;
}
.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.lib-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.lib-card .thumb {
  position: relative;
  aspect-ratio: 9/16;
  background: #111;
  max-height: 340px;
}
.lib-card .thumb img,
.lib-card .thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lib-card .score {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 4px 8px;
  line-height: 1.05;
  text-align: center;
}
.lib-card .score small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #bdbdbd;
}
.lib-card .score b {
  font-size: 18px;
  color: var(--accent);
}
.lib-card .dur {
  position: absolute;
  right: 10px;
  top: 10px;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 12px;
}
.lib-card .edited-tag {
  position: absolute;
  left: 10px;
  top: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 700;
}
.lib-card .body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.lib-card .title {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
}
.lib-card .preview {
  color: #bdbdbd;
  font-size: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lib-card .meta {
  color: #8a8a8a;
  font-size: 11px;
  margin-top: auto;
}
.lib-card .meta.soon {
  color: #ffb454;
}
.lib-card .actions {
  display: flex;
  gap: 6px;
  padding: 0 12px 12px;
}
.lib-card .actions a,
.lib-card .actions button {
  flex: 1;
  text-align: center;
  font-size: 12px;
  padding: 8px 6px;
  border-radius: 8px;
  text-decoration: none;
}
.lib-card .actions a {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.lib-empty {
  text-align: center;
  padding: 60px 20px;
  color: #bdbdbd;
}
.lib-empty h3 {
  color: var(--text);
  margin: 10px 0 6px;
}
.lib-empty .empty-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #141414;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 20px;
}
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}
.plan {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(83, 252, 24, 0.14);
}
.plan-tag {
  position: absolute;
  top: -11px;
  left: 18px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 800;
}
.plan h3 {
  margin: 0;
  font-size: 18px;
}
.plan .price {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.plan .price span {
  font-size: 14px;
  color: #8a8a8a;
  font-weight: 500;
}
.plan ul {
  margin: 0;
  padding-left: 18px;
  color: #bdbdbd;
  line-height: 1.7;
  flex: 1;
}
.plan button {
  width: 100%;
}
.page-inner details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
}
.page-inner summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
}
.page-inner details p {
  color: #bdbdbd;
  line-height: 1.55;
  margin: 10px 0 2px;
}
.page-inner details a {
  color: var(--accent);
}
.page-inner code {
  background: #1a1a1a;
  padding: 1px 5px;
  border-radius: 4px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.contact-form .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contact-form textarea {
  resize: vertical;
}
.contact-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-actions small {
  color: #bdbdbd;
}
@media (max-width: 760px) {
  .home-tabs {
    display: none;
  }
  .contact-form .pair {
    grid-template-columns: 1fr;
  }
  .page-head {
    flex-direction: column;
  }
}

/* Library dashboard (projects / collections), after OpusClip's "My projects" */
.page-inner.wide {
  width: min(1400px, 100%);
}
.lib-title {
  font-size: 26px;
  margin: 6px 0 18px;
  letter-spacing: -0.02em;
}
.lib-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.lib-tabs a {
  color: #9a9a9a;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 2px 10px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.lib-tabs a.active {
  color: var(--text);
  border-bottom-color: var(--text);
}
.sec-title {
  color: #9a9a9a;
  font-weight: 600;
  font-size: 13px;
  margin: 0 0 12px;
}
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sec-head .sec-title {
  margin: 0;
}
.storage {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9a9a9a;
  font-size: 12px;
}
.storage .pill {
  background: #141414;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  color: #9a9a9a;
}
.storage .pill.on {
  color: var(--text);
}
.coll-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.coll-custom {
  display: contents;
}
.coll-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 270px;
  height: 54px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  text-align: left;
}
.coll-tile.add {
  background: transparent;
  border-style: dashed;
  color: #bdbdbd;
}
.coll-tile .plus {
  font-size: 18px;
  color: #bdbdbd;
}
.coll-tile .coll-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1f1f1f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.coll-tile b {
  display: block;
  font-size: 14px;
}
.coll-tile small {
  color: #9a9a9a;
}
.coll-tile:hover {
  border-color: #3a3a3a;
  background: #161616;
}
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px 16px;
}
.proj-tile {
  cursor: pointer;
}
.proj-tile .cover {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--line);
}
.proj-tile .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.proj-tile .cover .foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 8px 5px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  font-size: 10px;
  color: #cfcfcf;
  text-align: center;
}
.proj-tile .cover .foot b {
  color: #ff6a3d;
  font-weight: 600;
}
.proj-tile .cover .badge-new {
  position: absolute;
  right: 8px;
  top: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
}
.proj-tile .cover .processing {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* CLAUDE 10-06 (the owner, OpusClip's projects): a progress ring in the middle of the picture, the % inside */
@property --p {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}
.proj-tile .cover .ring {
  --p: 0;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(0, 0, 0, 0.62) 85%, transparent 87%),
    conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255, 255, 255, 0.22) 0);
  transition: --p 0.6s;
}
.proj-tile .cover .ring b {
  color: #fff;
  font-size: 18px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.proj-tile .cover .processing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.proj-tile .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.proj-tile .name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.proj-tile .info {
  color: #9a9a9a;
  font-size: 13px;
  margin-top: 4px;
}
.proj-tile .info b {
  color: #cfcfcf;
  font-weight: 500;
}
.proj-tile .dots,
.lib-card .dots {
  background: transparent;
  border: 0;
  color: #9a9a9a;
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
}
.proj-tile .dots:hover,
.lib-card .dots:hover {
  color: var(--text);
  background: transparent;
}
.upload-tile {
  aspect-ratio: 16/9;
  border: 1px dashed #3a3a3a;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #bdbdbd;
  background: transparent;
  font-size: 13px;
}
.upload-tile:hover {
  border-color: #5a5a5a;
  background: #0f0f0f;
}
.upload-tile .plus {
  font-size: 22px;
}
.lib-back {
  display: inline-block;
  color: #bdbdbd;
  text-decoration: none;
  margin-bottom: 14px;
}
.lib-back:hover {
  color: var(--text);
}
.lib-card .fav {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 15px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lib-card .fav.on {
  color: #ff4d6d;
  border-color: #ff4d6d;
}
.lib-card .title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.card-menu {
  position: absolute;
  z-index: 80;
  background: #161616;
  border: 1px solid #2c2c2c;
  border-radius: 10px;
  padding: 6px;
  min-width: 200px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}
.card-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
}
.card-menu button:hover {
  background: #222;
}
.card-menu .danger {
  color: #ff6a6a;
}
.card-menu .label {
  color: #8a8a8a;
  font-size: 11px;
  padding: 6px 10px 2px;
}
@media (max-width: 760px) {
  .lib-tabs {
    gap: 14px;
  }
  .coll-tile {
    min-width: 100%;
  }
}

/* transcript editor + speech cleanup + preset tiles (session 20, after the OpusClip editor inspection) */
.transcript-tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.transcript-tools button {
  padding: 6px 9px;
  font-size: 12px;
}
.transcript-tools #filterDeleted[aria-pressed='true'] {
  background: var(--accent);
  color: var(--accent-ink);
}
.transcript {
  line-height: 2.05;
  font-size: 14px;
  padding: 10px 6px;
  max-height: 52vh;
  overflow: auto;
  outline: none;
  user-select: none;
}
.transcript .w {
  display: inline-block;
  padding: 0 3px;
  border-radius: 5px;
  cursor: pointer;
  margin: 0 1px;
}
.transcript .w:hover {
  background: #1c1c1c;
}
.transcript .w.active {
  background: var(--accent);
  color: var(--accent-ink);
}
.transcript .w.deleted {
  display: none;
  text-decoration: line-through;
  color: #7a7a7a;
  opacity: 0.7;
}
.transcript.show-deleted .w.deleted {
  display: inline-block;
}
.transcript .w.filler {
  color: #d7c76a;
}
.transcript .w.selected {
  outline: 2px solid var(--accent);
}
/* captions v2: keywords marked by hand (★) and found by the auto keywords; right-click toggles */
.transcript .w.kw {
  color: #ffe14d;
  box-shadow: inset 0 -2px 0 #ffe14d;
}
.transcript .w.kw::after {
  content: '★';
  font-size: 0.7em;
  margin-left: 1px;
  vertical-align: super;
}
.transcript .w.kw-auto {
  color: #e8d77a;
}
.transcript .w.kw-off {
  text-decoration: line-through dotted #8f8f8f;
}
.capfx-lines span {
  display: inline-block;
  padding: 0 3px;
  border-radius: 4px;
  transition:
    transform 0.12s ease-out,
    color 0.12s;
}
.capfx-translate {
  display: grid;
  gap: 8px;
}
.capfx-status {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
  .capfx-lines span {
    transition: none;
  }
}
.transcript .pause {
  display: inline-block;
  background: #1f1f1f;
  border: 1px solid #2e2e2e;
  color: #9a9a9a;
  border-radius: 6px;
  padding: 0 6px;
  font-size: 11px;
  line-height: 1.6;
  margin: 0 3px;
  cursor: pointer;
  vertical-align: middle;
}
.transcript .pause:hover {
  border-color: var(--accent);
  color: var(--text);
}
.transcript .pause.cut {
  display: none;
}
.transcript.show-deleted .pause.cut {
  display: inline-block;
  text-decoration: line-through;
}
.transcript .sent {
  display: block;
  height: 6px;
}
.word-menu {
  position: fixed;
  z-index: 90;
  background: #161616;
  border: 1px solid #2c2c2c;
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
  max-width: 320px;
}
.word-menu button {
  padding: 6px 9px;
  font-size: 12px;
  border-radius: 7px;
  background: #1f1f1f;
  border: 1px solid #2c2c2c;
}
.word-menu button.danger {
  color: #ff6a6a;
}
.word-menu input {
  width: 70px;
  padding: 4px 6px;
  font-size: 12px;
}
.word-menu .edit-text {
  width: 160px;
}
.cleanup-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}
.cleanup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cleanup-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #bdbdbd;
}
.cleanup-row input {
  width: 64px;
  padding: 4px 6px;
}
.cleanup-row small {
  color: #9a9a9a;
  max-width: 60%;
  text-align: right;
}
/* CLAUDE 10-05: bad-takes removal (app-transcript.js renderRetakes) */
.transcript .w.retake {
  text-decoration: line-through;
  text-decoration-color: #d7c76a;
}
.retake-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 160px;
  overflow: auto;
}
.retake-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.retake-list span {
  flex: 1;
  min-width: 0;
  cursor: pointer;
  color: #cfcfcf;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.retake-list s {
  color: #d7c76a;
}
.retake-list em {
  font-style: normal;
  color: var(--muted);
  font-size: 11px;
}
.retake-list button {
  padding: 2px 10px;
}
.cleanup-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cleanup-actions small {
  color: #9a9a9a;
  margin-left: auto;
}
.preset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.preset-tile {
  background: #0b0b0b;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.preset-tile:hover {
  border-color: #3a3a3a;
}
.preset-tile.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(83, 252, 24, 0.18);
}
.preset-tile .sample {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #2a2a2a, #151515);
  padding: 6px;
  text-align: center;
  line-height: 1.05;
  text-wrap: balance; /* a long look wraps to two lines (TO GET / STARTED, as Opus's tiles) instead of being cut off */
  overflow: hidden;
}
.preset-tile .name {
  padding: 7px 9px;
  font-size: 12px;
  color: #bdbdbd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.preset-tile .name b {
  color: var(--text);
  font-weight: 600;
}
.preset-tile .name small {
  color: #7a7a7a;
}

/* accounts */
.auth-dialog {
  background: #0f0f0f;
  color: var(--text);
  border: 1px solid #262626;
  border-radius: 16px;
  padding: 26px 28px;
  width: min(420px, 92vw);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}
.auth-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}
.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #ffffff10;
  color: #bdbdbd;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.auth-close:hover {
  background: #ffffff1c;
  color: #fff;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 14px;
}
.auth-brand span:last-child {
  color: var(--accent);
}
.auth-tabs {
  display: flex;
  gap: 4px;
  background: #161616;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 16px;
}
.auth-tabs button {
  flex: 1;
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 8px;
  color: #9a9a9a;
  font-weight: 600;
}
.auth-tabs button.active {
  background: #262626;
  color: var(--text);
}
.auth-dialog h2 {
  margin: 0 0 12px;
  font-size: 20px;
}
.auth-dialog form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-dialog .auth-step:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-dialog .field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #bdbdbd;
}
.auth-dialog input {
  padding: 10px 12px;
  font-size: 14px;
}
.auth-dialog button.primary {
  margin-top: 4px;
  padding: 11px;
  font-size: 14px;
}
.auth-error {
  color: #ff6a6a;
  font-size: 12px;
  min-height: 14px;
  margin: 0;
}
.auth-hint {
  color: #8a8a8a;
  font-size: 12px;
  margin: 2px 0 0;
}
.auth-hint a {
  color: var(--accent);
}
.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #bdbdbd;
}
.account-chip b {
  color: var(--text);
  font-weight: 600;
}

/* Google sign-in + email checks */
.google-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 6px;
}
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #111;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 11px;
  font-weight: 600;
  font-size: 14px;
}
.google-btn:hover {
  background: #f2f2f2;
}
.google-btn .g {
  font-weight: 800;
  color: #4285f4;
  font-size: 16px;
}
/* Continue with Facebook / Instagram / TikTok / X: same button, stacked under Google */
.social-login {
  display: grid;
  gap: 8px;
}
.social-btn {
  text-decoration: none;
}
.auth-or {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6f6f6f;
  font-size: 12px;
}
.auth-or::before,
.auth-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #262626;
}
.email-check {
  font-size: 12px;
  color: #9a9a9a;
  min-height: 14px;
}
.email-check.bad {
  color: #ff6a6a;
}
.email-check.good {
  color: var(--accent);
}
.email-check a {
  color: var(--accent);
}
.dev-code {
  background: #161616;
  border: 1px dashed #3a3a3a;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: #bdbdbd;
  margin: 0;
}
.dev-code b {
  font-size: 22px;
  letter-spacing: 0.2em;
  color: var(--text);
  display: block;
  margin-top: 4px;
}
/* CLAUDE 10-02: the sign-up gate (signupgate.js): two choices. CLAUDE 10-04: the free account is the green one, the
   trial the quieter one under it */
.gate {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gate h2 {
  margin-bottom: 0;
}
.gate-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid #262626;
  border-radius: 12px;
  background: #161616;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.gate-choice:hover {
  border-color: #3a3a3a;
}
.gate-choice b {
  font-size: 15px;
}
.gate-choice span {
  font-size: 13px;
  color: #bdbdbd;
}
.gate-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #061000;
}
.gate-primary:hover {
  border-color: #6dff3d;
  background: #6dff3d;
}
.gate-primary span {
  color: #0f2a06;
}
.gate-alt {
  margin-top: 6px;
  padding: 10px 14px;
}
.gate-alt b {
  font-size: 14px;
}
.gate-fine {
  padding-top: 10px;
  border-top: 1px solid #222;
  font-size: 11.5px;
  color: #9a9a9a;
}
.gate-choice:focus-visible {
  outline: 3px solid #6dff3d;
  outline-offset: 2px;
}
.gate-terms {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #bdbdbd;
}
.gate-terms b {
  color: var(--text);
}
.turnstile {
  min-height: 65px; /* Cloudflare's widget height: the button doesn't jump when it appears */
  margin: 4px 0 10px;
}
#gateNote {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #263026;
  border-radius: 10px;
  background: #121612;
}

/* library polish — cards sized like a phone thumbnail, badges only when meaningful */
.lib-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 230px)) !important;
  gap: 18px !important;
  justify-content: start;
}
.lib-card .thumb {
  max-height: none;
}
.lib-card .full-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #cfcfcf;
}
.lib-card .preview {
  font-size: 12px;
  color: #a8a8a8;
}
.workspace-top #crumb {
  color: #bdbdbd;
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
}

/* setup page */
.setup-page {
  width: min(640px, 100%);
  margin: 0 auto;
  padding: 40px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}
.setup-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111;
  border: 1px solid #262626;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #9a9a9a;
}
.setup-link .setup-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #bdbdbd;
}
.setup-link a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.setup-go {
  background: #f3f3f3;
  color: #000;
  border: 0;
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
}
.setup-go:hover {
  background: var(--accent);
}
.setup-go:disabled {
  opacity: 0.6;
}
.setup-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: #bdbdbd;
  flex-wrap: wrap;
}
.setup-meta select {
  width: auto;
  padding: 2px 6px;
  font-size: 12px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-weight: 700;
}
.setup-meta a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.setup-meta .setup-credit b {
  color: var(--accent);
}
.setup-poster {
  position: relative;
  width: 240px;
  aspect-ratio: 16/9;
  margin: 8px auto 4px;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
}
.setup-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.setup-poster .dur {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
}
.setup-tabs {
  display: flex;
  gap: 2px;
  margin-top: 10px;
}
.setup-tabs button {
  background: transparent;
  border: 0;
  border-radius: 8px 8px 0 0;
  padding: 9px 14px;
  color: #9a9a9a;
  font-weight: 600;
  font-size: 13px;
}
.setup-tabs button.active {
  background: #141414;
  color: var(--text);
}
.setup-tabs.small button {
  font-size: 12px;
  padding: 7px 12px;
}
.setup-card {
  background: #141414;
  border: 1px solid #222;
  border-radius: 0 10px 10px 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.setup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  font-size: 12px;
  color: #bdbdbd;
}
.setup-row label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.setup-row select {
  width: auto;
  padding: 2px 4px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.switch i {
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: #333;
  position: relative;
  display: inline-block;
  transition: background 0.15s;
}
.switch i::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #bbb;
  transition:
    transform 0.15s,
    background 0.15s;
}
.switch input:checked + i {
  background: var(--accent);
}
.switch input:checked + i::after {
  transform: translateX(16px);
  background: #000;
}
.switch {
  position: relative;
  cursor: pointer;
}
.setup-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.setup-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #bdbdbd;
}
.setup-block-head a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.setup-block-head .chip {
  background: #2d2d2f;
  color: var(--accent);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
}
.setup-block input[type='text'] {
  background: #0b0b0b;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
}
.setup-note {
  margin: 0;
  font-size: 12px;
  color: #ffb454;
}
/* CLAUDE 10-05: saved words hint and "Find moments about…" (app-base.js) */
.setup-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.setup-hint a {
  color: var(--accent);
}
.setup-find,
.moment-search {
  display: flex;
  gap: 8px;
}
.setup-find input {
  flex: 1;
  min-width: 0;
}
.moment-search {
  margin: 8px 0;
}
.moment-search input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: inherit;
  padding: 6px 8px;
  font-size: 12px;
}
/* setup settings in groups (Clips / Editing / Look / Transcription), each with a one-line explanation */
.setup-summary {
  margin: 12px 0 0;
  padding: 10px 14px;
  border: 1px solid #2d2d2f;
  border-radius: 8px;
  background: #151517;
  color: #e7e7ea;
  font-size: 13px;
}
.setup-summary b {
  color: var(--accent);
}
.setup-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #222;
}
.setup-section h3 {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8a8a;
}
.setup-section.is-off,
.setup-toggle.is-off {
  opacity: 0.4;
  pointer-events: none;
}
/* CLAUDE 10-06: the two main switches in view, the rest folded under More settings */
.setup-more {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.setup-more > summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 40px 12px 14px;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  background: #151515;
  color: #f1f1f1;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.setup-more > summary::-webkit-details-marker {
  display: none;
}
.setup-more > summary::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid #9a9a9d;
  border-bottom: 2px solid #9a9a9d;
  transform: rotate(45deg);
  transition: transform 0.15s;
}
.setup-more[open] > summary::after {
  transform: rotate(225deg);
  margin-top: -2px;
}
.setup-more > summary small {
  color: #8a8a8a;
  font-size: 12px;
  font-weight: 400;
}
.setup-more[open] > summary {
  margin-bottom: 4px;
}
.setup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 18px;
}
.setup-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #d0d0d0;
}
.setup-field select {
  padding: 8px 10px;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  background: #0b0b0b;
  color: var(--text);
  font-size: 13px;
}
.setup-field small,
.setup-toggle small,
.srt-upload small {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: #8a8a8a;
}
.setup-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #d0d0d0;
}
.setup-toggle > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.setup-toggle i {
  flex: none;
}
.range-pair {
  position: relative;
  height: 22px;
}
.range-pair input {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  margin: 0;
  pointer-events: none;
  background: transparent;
  -webkit-appearance: none;
  height: 22px;
}
/* CLAUDE 10-06 (the owner: "the line through the circle is the issue"): the two inputs are stacked, so the top one's
   track crossed the other's handle. The track is drawn once, under both, with the chosen part green (--a/--b set by
   app-base.js updateRange); the inputs' own tracks are invisible. */
.range-pair::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    #3a3a3a var(--a, 0%),
    var(--accent) var(--a, 0%),
    var(--accent) var(--b, 100%),
    #3a3a3a var(--b, 100%)
  );
}
.range-pair input::-webkit-slider-runnable-track {
  height: 3px;
  background: transparent;
  border-radius: 2px;
}
.range-pair input::-moz-range-track {
  background: transparent;
}
.range-pair input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f3f3f3;
  border: 2px solid #000;
  margin-top: -6.5px;
  pointer-events: auto;
  cursor: pointer;
}
.range-labels {
  display: flex;
  justify-content: space-between;
}
.range-labels span {
  background: #0b0b0b;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
}
.setup-presets {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px;
  /* CLAUDE 10-06 (the owner's iPhone showed an empty Quick presets card): a scrolling row inside a flex column can
     be squeezed to nothing in Safari (min-height auto is 0 once overflow isn't visible); keep it a tile tall */
  flex: none;
}
.setup-presets:has(.preset-tile) {
  min-height: 170px;
}
.setup-presets .preset-tile {
  flex: 0 0 150px;
}
.setup-presets .preset-tile .sample {
  height: 120px;
  background: linear-gradient(180deg, #2c2c2c, #101010);
}

/* readable dropdowns — the native option list takes the select's colours, so never leave a select transparent */
select {
  color-scheme: dark;
  background: #161616;
  color: var(--text);
  border: 1px solid #2c2c2c;
  border-radius: 6px;
}
select option {
  background: #161616;
  color: #f3f3f3;
}
.setup-meta select,
.setup-row select {
  background: #1c1c1c;
  border: 1px solid #2c2c2c;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.triple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

/* brand tab */
.logo-preview {
  background: repeating-conic-gradient(#222 0 25%, #181818 0 50%) 0 0/16px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  margin: 6px 0;
  display: flex;
  justify-content: center;
}
.logo-preview img {
  max-height: 60px;
  max-width: 100%;
}
.template-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.template-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
}
.template-row button {
  padding: 4px 8px;
  font-size: 11px;
}
.setup-presets .tpl-tile .sample {
  flex-direction: column;
  gap: 6px;
}
.setup-presets .tpl-tile .hl {
  font-size: 10px;
  letter-spacing: 0.05em;
  color: #fff;
  background: #000;
  padding: 2px 6px;
  border-radius: 4px;
}
