@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&family=Geist+Mono:wght@100..900&display=swap');

@keyframes spin {to{transform:rotate(360deg)}}

:root {
  color-scheme: dark;
  --bg: #0a0d0a;
  --surface: #161915;
  --surface2: #1e221d;
  --line: #323931;
  --muted: #9da79c;
  --text: #f8faf8;
  --green: #53fc18;
  --brand-green: var(--green);
  --radius: 18px;
  font-family: 'Geist',system-ui,sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  background-color: var(--bg);
  background-image: linear-gradient(#ffffff05 1px,transparent 1px),linear-gradient(90deg,#ffffff05 1px,transparent 1px);
  background-size: 40px 40px;
}

button,input,select,textarea {
  font: inherit;
}

button {
  cursor: pointer;
  color: inherit;
}

button:disabled {
  cursor: wait;
  opacity: .55;
}

a {
  color: inherit;
  text-decoration: none;
}

button,input,select,a {
  touch-action: manipulation;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 5px;
}

h1,h2,h3,p {
  margin: 0;
}

p {
  line-height: 1.55;
}

svg {
  flex-shrink: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: -70px;
  left: 20px;
  z-index: 100;
  background: var(--green);
  color: #142006;
  padding: 14px;
}

.skip-link:focus {
  top: 10px;
}

.site-header {
  height: 84px;
  max-width: 1280px;
  margin: auto;
  padding: 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid #ffffff0a;
}

.brand {
  font-size: 28px;
  font-weight: 760;
  letter-spacing: -1.1px;
  display: flex;
  align-items: center;
}

.brand-mark {
  width: 31px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--green);
  margin-right: 8px;
}

.brand-dot {
  color: var(--green);
}

.site-header nav {
  display: flex;
  gap: 30px;
  font-size: 14px;
  font-weight: 650;
  color: #c0c8b9;
}

.site-header nav a:hover {
  color: var(--green);
}

.local-status {
  font-family: 'Geist Mono',ui-monospace,monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #171f15;
  border: 1px solid #2d3d20;
  border-radius: 30px;
  padding: 9px 12px;
  color: #92a98f;
  border-color: #3a4b37;
}

.local-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #53fc18;
}

main {
  max-width: 1280px;
  margin: auto;
  padding: 0 44px;
}

.hero {
  padding: 74px 0 78px;
  text-align: left;
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 70px;
  align-items: center;
}

.hero:before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -50px -35px -90px;
  background: radial-gradient(ellipse at 15% 40%,#384c3521,transparent 64%);
  pointer-events: none;
}

.eyebrow {
  font-family: 'Geist Mono',ui-monospace,monospace;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .13em;
  line-height: 1.45;
  color: var(--green);
}

.hero h1 {
  font-size: clamp(56px,5.6vw,80px);
  font-weight: 520;
  line-height: .94;
  letter-spacing: -.067em;
  margin: 24px 0;
}

.hero h1 span {
  color: var(--green);
}

.hero-description {
  font-size: 16px;
  line-height: 1.6;
  color: #acb9aa;
  margin: 26px 0 28px;
}

.create-form {
  max-width: 780px;
  margin: 0;
  text-align: left;
  border: 1px solid #38452d;
  padding: 10px 10px 0;
  border-radius: 16px;
  background: #1d221c;
  box-shadow: none;
  border-color: #3d4b3b;
}

.url-row {
  display: flex;
  gap: 8px;
  flex-direction: column;
}

.url-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 15px;
}

.url-wrap svg {
  color: #99a997;
}

.url-wrap input {
  width: 100%;
  height: 47px;
  padding: 8px 0;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 15px;
  min-width: 0;
  outline-offset: 0;
}

.url-wrap input::placeholder {
  color: #91a18f;
}

.button {
  border: 1px solid #37402f;
  background: #1f291e;
  color: #d8e5d6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.3;
  white-space: nowrap;
  border-color: #3d4d3b;
}

.button:hover {
  border-color: #699163;
  background: #283526;
}

.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #121911;
}

.button.primary:hover {
  background: #8bff65;
}

.url-row>.button {
  padding: 0 23px;
  font-size: 14px;
  height: 47px;
  border-radius: 30px;
}

.source-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 12px 13px 0;
  padding-top: 13px;
  border-top: 1px solid #2a3523;
  font-size: 12px;
  color: #c0cdbe;
  flex-wrap: wrap;
  border-color: #384236;
}

.source-row>span:first-child {
  font-family: 'Geist Mono',ui-monospace,monospace;
  font-size: 9px;
  letter-spacing: .09em;
  color: #7d8c70;
}

.source-row strong {
  font-size: 13px;
  letter-spacing: -.3px;
}

.source-row .kick-word {
  font-weight: 900;
  color: #c6d5c4;
  letter-spacing: .5px;
}

.youtube-word {
  display: flex;
  align-items: center;
  gap: 5px;
}

.youtube-word i {
  display: inline-block;
  width: 15px;
  height: 11px;
  background: #53fc18;
  border-radius: 3px;
}

.source-access {
  margin-left: auto;
  font-size: 10px;
  color: #7e8c71;
}

.creation-options {
  margin: 14px 13px 0;
  padding-bottom: 14px;
  color: #a3b5a0;
  font-size: 12px;
}

.creation-options summary {
  cursor: pointer;
  padding-top: 5px;
  list-style-position: inside;
}

.creation-options summary span {
  margin-left: 10px;
  font-size: 11px;
  color: #80947d;
}

.creation-options[open] summary span {
  display: none;
}

.form-options {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 15px;
  margin-top: 20px;
}

.form-options label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
}

.form-options select,.library-controls select {
  background: #1d241c;
  border: 1px solid #3a492d;
  border-radius: 7px;
  color: #cbd8c9;
  padding: 9px;
  font-size: 12px;
  max-width: 100%;
  min-height: 38px;
  border-color: #425240;
}

.form-options .checkrow {
  flex-direction: row;
  align-items: center;
  grid-column: 1/-1;
  font-size: 12px;
}

.checkrow input {
  accent-color: var(--green);
}

.option-note {
  margin-top: 15px;
  font-size: 11px;
  color: #96ac93;
}

.form-error:not(:empty) {
  padding: 0 13px 15px;
  color: #edaa9d;
  font-size: 13px;
}

.hero-links {
  margin-top: 21px;
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  align-items: flex-start;
  font-size: 11px;
  color: #879c84;
  flex-direction: column;
}

.hero-links a {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #d8e5d6;
  font-size: 12px;
  font-weight: 650;
}

.jobs-section:empty {
  display: none;
}

.jobs-section {
  margin: 0 auto 42px;
  max-width: 980px;
}

.job-list {
  display: grid;
  gap: 12px;
}

.job-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  background: #151d14;
  border-radius: 12px;
  border-color: #31422e;
}

.job-info {
  flex: 1;
  min-width: 0;
}

.job-info strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.job-info p {
  font-size: 12px;
  color: #9cbb97;
  margin-top: 5px;
}

.job-info .job-error {
  color: #ecaf99;
}

.progress {
  height: 4px;
  border-radius: 4px;
  overflow: hidden;
  background: #31432e;
  margin-top: 13px;
}

.progress span {
  height: 100%;
  display: block;
  background: var(--green);
  transition: width .3s;
}

.progress-number {
  color: #b5cdb2;
  font-family: 'Geist Mono',ui-monospace,monospace;
  font-size: 11px;
}

.spinner {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  border: 2px solid #35442b;
  border-top-color: var(--green);
  animation: spin 1s linear infinite;
  border-color: #415f3d;
}

.job-alert {
  color: #e9b16c;
  border: 1px solid #6b4d29;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
}

.library {
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.section-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 27px;
}

.section-top h2,.how-section h2 {
  font-size: 37px;
  letter-spacing: -.052em;
  font-weight: 560;
  line-height: 1.1;
  margin-top: 11px;
}

.section-top p {
  color: #9dab9b;
  font-size: 13px;
  margin-top: 12px;
}

.clip-count {
  font-family: 'Geist Mono',ui-monospace,monospace;
  font-size: 11px;
  color: #99af96;
  white-space: nowrap;
  margin-bottom: 3px;
}

.library-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #2b3524;
  padding: 4px;
  border-radius: 9px;
  background: #131912;
  border-color: #354932;
}

.tabs button {
  padding: 8px 15px;
  border: 0;
  background: none;
  color: #95b291;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.tabs button.active {
  background: #2e3f2b;
  color: #dee9dd;
}

.library-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.library-controls select {
  max-width: 160px;
  font-size: 11px;
  background: #151c14;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #151c14;
  border: 1px solid #35402d;
  padding: 0 9px;
  border-radius: 7px;
  color: #8cad87;
  border-color: #3b5037;
}

.search-wrap input {
  width: 122px;
  min-width: 0;
  height: 37px;
  background: none;
  border: 0;
  color: #c6d8c3;
  font-size: 11px;
}

.search-wrap input::placeholder {
  color: #8cad87;
}

.clip-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 22px;
}

.clip-card {
  border: 1px solid #2c3427;
  border-radius: 13px;
  overflow: hidden;
  background: #151d14;
  transition: transform .2s,border-color .2s;
  border-color: #31422e;
}

.clip-card:hover {
  border-color: #6b9764;
  transform: translateY(-4px);
}

.poster {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/11;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #1b2519;
}

.poster-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg,#293827,#141b12);
  color: #8cb286;
}

.poster img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.poster:hover img {
  transform: scale(1.035);
}

.poster-top {
  position: absolute;
  top: 13px;
  left: 13px;
  right: 13px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.tag,.saved-tag {
  display: inline-flex;
  font-family: 'Geist Mono',ui-monospace,monospace;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .06em;
  border-radius: 4px;
  line-height: 1.4;
  padding: 5px 7px;
  background: #15250fdd;
  color: #c0e4a0;
  border: 1px solid #a8cc8650;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.saved-tag {
  background: #c6d8c3;
  color: #2a3927;
  border-color: #c6d8c3;
}

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  background: #141b12c9;
  border: 1px solid #d9f6c27a;
  color: white;
  border-radius: 50%;
  backdrop-filter: blur(4px);
  border-color: #d2e1cf7a;
}

.duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: #131a12e5;
  border: 1px solid #d7edc13d;
  padding: 4px 7px;
  border-radius: 4px;
  font-family: 'Geist Mono',ui-monospace,monospace;
  font-size: 10px;
  border-color: #b2ccae3d;
}

.clip-body {
  padding: 20px;
}

.clip-eyebrow {
  font-size: 10px;
  font-weight: 650;
  color: #b5cdb1;
  margin-bottom: 10px;
}

.clip-eyebrow span {
  color: #86a581;
  font-weight: 400;
}

.clip-body h3 {
  font-size: 17px;
  letter-spacing: -.35px;
  line-height: 1.35;
  font-weight: 600;
  min-height: 46px;
}

.clip-body>p {
  margin: 11px 0 20px;
  color: #96b591;
  font-size: 12px;
  line-height: 1.65;
  min-height: 59px;
}

.clip-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 15px;
  border-top: 1px solid #2a3521;
  border-color: #30412e;
}

.button.slim {
  min-height: 34px;
  padding: 8px 11px;
  font-size: 11px;
}

.button.icon-button {
  padding: 8px;
  min-height: 34px;
  min-width: 34px;
  background: none;
  border-color: transparent;
}

.icon-button.is-saved {
  color: var(--green);
}

.icon-button.is-saved svg {
  fill: #a6df5045;
}

.button.subtle {
  background: none;
}

.empty {
  padding: 60px 20px;
  border: 1px dashed #34442a;
  border-radius: 13px;
  text-align: center;
  color: #9bbc96;
  border-color: #3b5138;
}

.empty>span {
  display: block;
  color: #acc7a8;
  margin-bottom: 13px;
}

.empty h3 {
  font-size: 19px;
  color: #d5e3d2;
  font-weight: 550;
}

.empty p {
  font-size: 13px;
  margin-top: 12px;
}

.how-section {
  padding: 88px 0 75px;
}

.how-section h2 {
  font-size: 34px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 32px;
  margin-top: 34px;
}

.steps article {
  border-top: 1px solid #35422b;
  padding-top: 20px;
  border-color: #3b5038;
}

.steps article>span {
  font-family: 'Geist Mono',ui-monospace,monospace;
  font-size: 9px;
  letter-spacing: .08em;
  color: #99bb94;
}

.steps h3 {
  margin: 18px 0 12px;
  font-size: 19px;
  font-weight: 550;
  letter-spacing: -.4px;
}

.steps p {
  font-size: 13px;
  color: #91af8c;
  line-height: 1.7;
  max-width: 300px;
}

.site-footer {
  max-width: 1192px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  color: #95b390;
  font-size: 11px;
}

.site-footer .brand {
  font-size: 21px;
  color: #dce8da;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.connection-note {
  padding: 22px;
  border: 1px solid #655539;
  border-radius: 12px;
  background: #231f14;
  color: #ddcda5;
  font-size: 13px;
}

.connection-note p {
  margin-top: 7px;
}

dialog {
  width: min(1120px,calc(100vw - 48px));
  max-height: 92vh;
  padding: 0;
  background: #151c14;
  color: var(--text);
  border: 1px solid #465834;
  border-radius: 16px;
  box-shadow: 0 40px 120px #0009;
  border-color: #466642;
}

dialog::backdrop {
  background: #020501d9;
  backdrop-filter: blur(6px);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  border-bottom: 1px solid #2c3822;
  border-color: #32442f;
}

.modal-head h2 {
  font-size: 21px;
  letter-spacing: -.6px;
  font-weight: 550;
  margin-top: 7px;
}

.modal-head .eyebrow {
  font-size: 9px;
  color: #9dbd99;
}

.modal-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  padding: 28px;
}

.player-frame {
  background: #020401;
  border: 1px solid #2e3a24;
  border-radius: 10px;
  overflow: hidden;
  border-color: #3d5339;
}

.modal-video {
  width: 100%;
  display: block;
  max-height: 390px;
  background: #000;
}

.preview-under {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 1px;
  color: #9ebe99;
  font-size: 11px;
}

.caption-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 21px 0 12px;
}

.caption-heading h3 {
  font-size: 14px;
  font-weight: 650;
}

.caption-heading span {
  font-size: 10px;
}

.caption-list {
  max-height: 245px;
  overflow: auto;
  border: 1px solid #2d3922;
  border-radius: 8px;
  background: #121811;
  padding: 14px;
  border-color: #3d5339;
}

.caption-list p {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 12px;
  color: #b2cbae;
  margin-bottom: 10px;
  line-height: 1.65;
}

.caption-list p:last-child {
  margin-bottom: 0;
}

.caption-list button {
  font-family: 'Geist Mono',ui-monospace,monospace;
  border: 0;
  background: none;
  color: #c3d7c0;
  padding: 0;
  font-size: 10px;
}

.edit-column {
  min-width: 0;
}

.moment-note {
  border: 1px solid #3f502f;
  border-radius: 9px;
  padding: 14px;
  background: #232f21;
  border-color: #4c6f47;
}

.moment-note p {
  font-size: 12px;
  color: #b5cdb2;
  margin-top: 9px;
}

.edit-column fieldset {
  border: 0;
  padding: 0;
  margin: 25px 0 0;
  min-width: 0;
}

.edit-column legend {
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 13px;
}

.time-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.time-inputs label {
  font-size: 11px;
  color: #afcaab;
}

.time-inputs label>span {
  float: right;
  color: #83ac7c;
  font-size: 10px;
}

.time-inputs input {
  width: 100%;
  display: block;
  margin: 8px 0 12px;
  padding: 10px 12px;
  background: #141b12;
  border: 1px solid #3a4b2d;
  border-radius: 7px;
  color: #d8e4d6;
  min-height: 39px;
  font-size: 13px;
  border-color: #4a6b45;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 9px;
}

.format-grid label {
  display: block;
  cursor: pointer;
}

.format-grid input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.format-option {
  display: grid;
  gap: 7px;
  border: 1px solid #3a4b2d;
  border-radius: 8px;
  text-align: center;
  padding: 14px 4px;
  background: #1c261a;
  border-color: #4a6b45;
}

.format-option b {
  font-family: 'Geist Mono',ui-monospace,monospace;
  font-size: 13px;
  font-weight: 600;
}

.format-option small {
  font-size: 10px;
  color: #9dbd98;
}

.format-grid input:checked+.format-option {
  border-color: #53fc18;
  background: #31432f;
  color: #c6d9c3;
}

.format-grid input:focus-visible+.format-option {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.format-controls>p {
  font-size: 10px;
  margin-top: 11px;
}

.caption-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border-top: 1px solid #2f3c23;
  border-bottom: 1px solid #2f3c23;
  padding: 18px 0;
  margin: 24px 0;
  border-color: #3b5037;
}

.caption-toggle strong {
  font-size: 12px;
  display: block;
}

.caption-toggle span {
  display: block;
  font-size: 10px;
  color: #99ba94;
  margin-top: 5px;
}

.caption-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.modal-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.modal-actions .button {
  font-size: 11px;
  padding: 10px 11px;
}

.modal-actions .primary {
  flex: 1;
}

.edit-note {
  font-size: 10px;
  margin-top: 15px;
  line-height: 1.6;
}

#export-status {
  margin-top: 16px;
  font-size: 12px;
  color: #cadcc7;
  line-height: 1.6;
}

.download-ready {
  width: 100%;
  color: #cfdfcc;
  border-color: #79a572;
  background: #2a3927;
}

#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%,20px);
  opacity: 0;
  z-index: 100;
  border: 1px solid #66814a;
  background: #2b3a28;
  color: #e0eade;
  max-width: 90vw;
  padding: 13px 18px;
  border-radius: 9px;
  font-size: 13px;
  pointer-events: none;
  transition: .2s;
  box-shadow: 0 10px 30px #0005;
  border-color: #709f68;
}

#toast.show {
  opacity: 1;
  transform: translate(-50%,0);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-actions>.primary {
  border-radius: 30px;
  padding: 11px 19px;
}

.hero-copy {
  min-width: 0;
}

.source-row>span:first-child,.source-access {
  color: #7d8d7b;
}

.hero-demo {
  max-width: 365px;
  justify-self: end;
  width: 100%;
  border: 1px solid #7da8763d;
  border-radius: 20px;
  overflow: hidden;
  background: #161d15;
  box-shadow: 0 25px 90px #0005;
  transform: rotate(2deg);
}

.demo-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 8px;
  font-family: 'Geist Mono',ui-monospace,monospace;
  color: #96ab93;
  padding: 15px 13px;
  background: #1d251c;
}

.demo-status>span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-status i,.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c5f0a4;
}

.demo-poster {
  display: block;
  position: relative;
  aspect-ratio: 9/12;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #040604;
}

.demo-poster:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%,#000000ab 100%);
  pointer-events: none;
}

.demo-poster>img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-play {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
}

.demo-play svg {
  background: #0008;
  border: 1px solid #ffffff8c;
  border-radius: 50%;
  width: 57px;
  height: 57px;
  padding: 14px;
  color: white;
}

.demo-caption {
  position: absolute;
  z-index: 1;
  bottom: 59px;
  left: 21px;
  right: 21px;
  font-size: 27px;
  font-weight: 760;
  text-align: center;
  line-height: 1.07;
  letter-spacing: -1.1px;
  color: white;
  text-shadow: 0 2px 10px #000;
}

.demo-bottom {
  position: absolute;
  z-index: 1;
  bottom: 19px;
  left: 21px;
  font-family: 'Geist Mono',ui-monospace,monospace;
  font-size: 9px;
  letter-spacing: .08em;
  color: #d9e6d7;
}

.demo-details {
  padding: 19px 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  background: #1f2a1d;
  font-size: 9px;
  color: #adc8a8;
}

.demo-cut {
  display: flex;
  gap: 6px;
  align-items: center;
}

.demo-cut svg {
  color: #c2d6bf;
}

.demo-title {
  font-family: 'Geist Mono',ui-monospace,monospace;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #c6d9c3;
}

.demo-placeholder {
  aspect-ratio: 9/12;
  display: grid;
  place-content: center;
  gap: 24px;
  text-align: center;
  color: #81a67b;
  font-size: 25px;
  letter-spacing: -1px;
}

.demo-placeholder svg {
  justify-self: center;
}

.input-modes {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid #3b4a39;
  border-radius: 20px;
  width: max-content;
  margin: 3px 4px 13px;
}

.input-modes button {
  border: 0;
  background: none;
  color: #91a88d;
  font-size: 10px;
  font-weight: 650;
  padding: 8px 15px;
  border-radius: 20px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.input-modes button.active {
  background: #354732;
  color: #e3ece2;
}

.input-modes i {
  width: 5px;
  height: 5px;
  background: #c5f0a4;
  border-radius: 50%;
}

.upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 5px 0;
}

.upload-row[hidden] {
  display: none;
}

.upload-button {
  font-size: 10px;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 30px;
  background: none;
}

.upload-row>span {
  font-size: 10px;
  color: #a6c1a2;
}

.tag {
  background: #1b251adc;
  color: #d2e1d0;
  border-color: #bcd2b84d;
}

.edit-note,.muted {
  color: #92b38d;
}

@media(min-width:1500px) {
  .hero {
    padding-top: 90px;
    gap: 95px;
  }
  
  .hero h1 {
    font-size: 84px;
  }
  
  .clip-grid {
    gap: 27px;
  }
  
  .poster {
    aspect-ratio: 16/11;
  }
}

@media(max-width:1100px) {
  .site-header {
    padding: 0 28px;
  }
  
  main {
    padding: 0 28px;
  }
  
  .library-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  
  .library-controls {
    margin-left: auto;
  }
  
  .library-controls select {
    max-width: 135px;
  }
  
  .clip-grid {
    gap: 16px;
  }
  
  .clip-body {
    padding: 17px;
  }
  
  .site-footer {
    margin: 0 28px;
  }
  
  .modal-body {
    gap: 23px;
    padding: 23px;
  }
  
  .hero {
    gap: 37px;
    grid-template-columns: 1.15fr .85fr;
  }
  
  .hero h1 {
    font-size: 65px;
  }
  
  .hero-demo {
    max-width: 315px;
  }
  
  .demo-caption {
    font-size: 24px;
  }
  
  .source-access {
    display: none;
  }
}

@media(max-width:760px) {
  html {
    scroll-padding-top: 20px;
  }
  
  .site-header {
    height: 75px;
    padding: 0 19px;
    gap: 16px;
  }
  
  .brand {
    font-size: 23px;
  }
  
  .brand-mark {
    width: 25px;
    margin-right: 5px;
  }
  
  .site-header nav {
    gap: 18px;
    font-size: 11px;
    display: none;
  }
  
  .local-status {
    display: none;
  }
  
  main {
    padding: 0 19px;
  }
  
  .hero {
    padding: 49px 0 51px;
    grid-template-columns: 1fr;
    gap: 38px;
  }
  
  .hero h1 {
    font-size: 64px;
    max-width: 450px;
  }
  
  .hero-description {
    font-size: 14px;
    margin: 22px auto 27px;
  }
  
  .eyebrow {
    font-size: 9px;
  }
  
  .create-form {
    padding: 8px 8px 0;
  }
  
  .url-row {
    flex-direction: column;
  }
  
  .url-wrap {
    padding: 0 9px;
    gap: 9px;
  }
  
  .url-wrap input {
    height: 45px;
    font-size: 13px;
  }
  
  .url-row>.button {
    height: 45px;
    font-size: 13px;
  }
  
  .source-row {
    gap: 14px;
    margin: 12px 6px 0;
    padding-top: 13px;
  }
  
  .source-row>span:first-child {
    font-size: 8px;
  }
  
  .source-row strong {
    font-size: 11px;
  }
  
  .source-access {
    display: none;
  }
  
  .creation-options {
    margin: 12px 6px 0;
    font-size: 11px;
  }
  
  .creation-options summary span {
    font-size: 9px;
    margin-left: 4px;
  }
  
  .hero-links {
    gap: 12px;
    flex-direction: column;
    font-size: 10px;
    align-items: flex-start;
  }
  
  .hero-links a {
    font-size: 11px;
  }
  
  .section-top {
    gap: 12px;
    margin-bottom: 23px;
  }
  
  .section-top h2 {
    font-size: 30px;
  }
  
  .section-top p {
    font-size: 11px;
    max-width: 340px;
  }
  
  .clip-count {
    font-size: 10px;
  }
  
  .library-toolbar {
    gap: 14px;
  }
  
  .library-controls {
    margin: 0;
    justify-content: stretch;
    width: 100%;
  }
  
  .search-wrap {
    flex: 1;
  }
  
  .search-wrap input {
    width: 100%;
  }
  
  .library-controls select {
    max-width: 130px;
    font-size: 10px;
  }
  
  .clip-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
  }
  
  .poster {
    aspect-ratio: 4/3;
  }
  
  .clip-body {
    padding: 15px;
  }
  
  .clip-body h3 {
    font-size: 15px;
    min-height: 42px;
  }
  
  .clip-body>p {
    font-size: 11px;
    min-height: 71px;
    margin-bottom: 15px;
  }
  
  .clip-eyebrow {
    font-size: 9px;
  }
  
  .clip-eyebrow span {
    display: block;
    margin-top: 3px;
  }
  
  .poster-top {
    top: 9px;
    left: 9px;
    right: 9px;
  }
  
  .tag,.saved-tag {
    font-size: 8px;
  }
  
  .button.slim {
    font-size: 10px;
    padding: 8px;
  }
  
  .clip-actions {
    gap: 3px;
  }
  
  .clip-actions .icon-button {
    padding: 7px;
    min-width: 29px;
  }
  
  .how-section {
    padding: 62px 0 49px;
  }
  
  .how-section h2 {
    font-size: 28px;
  }
  
  .steps {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .steps h3 {
    font-size: 18px;
    margin-top: 12px;
  }
  
  .steps p {
    max-width: 100%;
    font-size: 12px;
  }
  
  .site-footer {
    margin: 0 19px;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 10px;
    padding: 23px 0 30px;
  }
  
  .site-footer>span:last-child {
    flex-basis: 100%;
  }
  
  .modal-body {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 27px;
  }
  
  .modal-head {
    padding: 18px;
  }
  
  .modal-head h2 {
    font-size: 18px;
  }
  
  .modal-video {
    max-height: 330px;
  }
  
  dialog {
    width: calc(100vw - 24px);
  }
  
  .job-row {
    padding: 16px;
    gap: 12px;
  }
  
  .job-info strong {
    font-size: 12px;
  }
  
  .job-info p {
    font-size: 11px;
  }
  
  .progress-number {
    font-size: 10px;
  }
  
  .header-actions .local-status {
    display: none;
  }
  
  .header-actions .button {
    font-size: 10px;
    min-height: 33px;
    padding: 8px 12px;
  }
  
  .hero-copy {
    max-width: 550px;
    margin: auto;
    width: 100%;
  }
  
  .hero-demo {
    justify-self: center;
    max-width: 290px;
    transform: none;
  }
  
  .demo-poster {
    aspect-ratio: 9/9;
  }
  
  .demo-caption {
    font-size: 24px;
    bottom: 50px;
  }
  
  .demo-status {
    font-size: 7px;
  }
  
  .demo-details {
    padding: 14px;
  }
  
  .form-options {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  
  .upload-row {
    flex-wrap: wrap;
  }
  
  .upload-button {
    font-size: 10px;
  }
}

@media(max-width:420px) {
  .hero h1 {
    font-size: 55px;
  }
  
  .hero-description {
    font-size: 13px;
  }
  
  .form-options {
    grid-template-columns: 1fr;
  }
  
  .creation-options summary span {
    display: none;
  }
  
  .clip-grid {
    grid-template-columns: 1fr;
  }
  
  .clip-body h3 {
    min-height: 0;
  }
  
  .clip-body>p {
    min-height: 0;
  }
  
  .clip-eyebrow span {
    display: inline;
  }
  
  .poster {
    aspect-ratio: 16/10;
  }
  
  .library-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  
  .search-wrap {
    grid-column: 1/-1;
  }
  
  .library-controls select {
    max-width: 100%;
    width: 100%;
  }
  
  .tabs {
    width: 100%;
    justify-content: space-between;
  }
  
  .tabs button {
    flex: 1;
    padding: 8px 10px;
    font-size: 11px;
  }
  
  .section-top {
    align-items: center;
  }
  
  .section-top p {
    font-size: 11px;
  }
  
  .modal-actions .button {
    font-size: 10px;
  }
  
  .source-row {
    justify-content: space-between;
    gap: 8px;
  }
  
  .header-actions .button svg {
    display: none;
  }
  
  .input-modes button {
    padding: 7px 12px;
    font-size: 10px;
  }
  
  .hero-demo {
    max-width: 260px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  
  * {
    animation: none!important;
    transition: none!important;
  }
}

.skipped-tag {
  font-size: 9px;
  font-weight: 650;
  border-radius: 4px;
  line-height: 1.4;
  padding: 5px 7px;
  background: #1d281be6;
  color: #a0bd9c;
  border: 1px solid #89b0834d;
}

/* Creator dashboard: the studio shares processing and editing with the landing. */
.studio-mode { background-color:#0b0e0a; background-size:40px 40px; }
.creator-studio { min-height:100vh; }
.studio-header { height:80px; padding:0 28px; display:flex; align-items:center; justify-content:space-between; gap:25px; border-bottom:1px solid #2a3229; background:#0b0f0bee; position:sticky; top:0; z-index:20; backdrop-filter:blur(10px); }
.studio-header .brand { font-size:25px; }
.studio-header-actions { display:flex; align-items:center; gap:22px; }
.studio-local { font-family:'Geist Mono',ui-monospace,monospace; font-size:9px; letter-spacing:.12em; color:#728b6e; }
.studio-header-actions .primary { border-radius:30px; min-height:37px; padding:9px 17px; font-size:11px; }
.studio-profile-link { display:flex; align-items:center; gap:10px; border:0; background:none; padding:0; color:#c6d8c3; font-size:11px; }
.studio-avatar { display:inline-grid; place-items:center; width:35px; height:35px; border:1px solid #4d7048; border-radius:50%; background:#263324; color:#e4ede2; font-size:11px; font-weight:650; }
.studio-rail { position:fixed; left:0; top:80px; bottom:0; width:187px; border-right:1px solid #2a3229; padding:30px 18px; background:#0b0f0bee; display:flex; flex-direction:column; z-index:10; }
.studio-rail>.eyebrow { padding:0 10px; font-size:9px; color:#617c5d; margin-bottom:20px; }
.studio-rail nav { display:flex; flex-direction:column; gap:7px; }
.studio-rail nav button { display:flex; align-items:center; gap:12px; width:100%; border:1px solid transparent; background:none; color:#759670; font-family:'Geist Mono',ui-monospace,monospace; font-size:10px; letter-spacing:.05em; text-align:left; padding:12px 11px; border-radius:6px; }
.studio-rail nav button:hover { background:#1a2419; color:#e3ece2; }
.studio-rail nav button.active { background:#222e20; border-color:#446340; color:#d5e3d2; }
.studio-rail-bottom { margin-top:auto; padding:22px 7px 0; }
.studio-rail-bottom .studio-invite { width:100%; min-height:34px; font-size:10px; background:#151c14; }
.studio-rail-bottom p { color:#567152; font-size:9px; line-height:1.6; margin:10px 0 19px; }
.studio-rail-bottom a { font-size:10px; color:#8eb388; }
.studio-mode main.studio-main { max-width:none; padding:38px 40px 65px; margin:0 0 0 187px; min-height:calc(100vh - 80px); }
.studio-page-heading { display:flex; justify-content:space-between; align-items:center; gap:22px; margin-bottom:28px; }
.studio-page-heading .eyebrow { font-size:9px; color:#81aa7b; }
.studio-page-heading h1 { font-size:34px; font-weight:540; letter-spacing:-.056em; line-height:1.08; margin-top:11px; }
.studio-page-heading p { margin-top:13px; color:#8fae8a; font-size:12px; }
.studio-page-heading>.button { font-size:11px; min-height:37px; }
.studio-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; margin-bottom:27px; }
.studio-stat { padding:20px; border:1px solid #2b3b29; border-radius:10px; background:#121911f5; }
.studio-stat>span { display:block; color:#85a680; font-size:10px; }
.studio-stat>strong { display:block; font-size:30px; font-weight:530; letter-spacing:-.05em; margin:11px 0 7px; color:#e8f0e7; }
.studio-stat>small { color:#617c5d; font-size:9px; }
.studio-library { margin-top:31px; }
.studio-library .library-toolbar { gap:14px; margin-bottom:12px; }
.studio-library-count { margin-bottom:23px; color:#759171; font-family:'Geist Mono',ui-monospace,monospace; font-size:9px; }
.studio-main .jobs-section { max-width:none; margin-bottom:23px; }
.studio-main .job-row { padding:17px; }
.studio-main .clip-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:17px; }
.studio-main .poster { aspect-ratio:16/10; }
.studio-main .clip-body { padding:17px; }
.studio-main .clip-body h3 { font-size:15px; }
.clip-day { margin-bottom:32px; }
.clip-day>header { display:flex; align-items:center; gap:14px; margin:0 0 15px; font-family:'Geist Mono',ui-monospace,monospace; }
.clip-day>header>span { font-size:10px; color:#c3d7c0; }
.clip-day>header>small { font-size:9px; color:#63845e; }
.studio-generate-grid { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:26px; margin-bottom:30px; }
.studio-generate-main { min-width:0; }
.studio-generate-main .create-form { max-width:none; border-color:#3c5838; background:#161d14; }
.studio-generate-main .creation-options { padding-bottom:20px; }
.creator-style-field { border:0; margin:20px 0 0; padding:0; }
.creator-style-field legend { font-size:11px; font-weight:650; color:#b1caad; margin-bottom:13px; }
.creator-styles { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.creator-styles label { cursor:pointer; position:relative; }
.creator-styles input { position:absolute; opacity:0; width:0; height:0; }
.creator-styles label>span { display:flex; flex-direction:column; justify-content:center; gap:8px; border:1px solid #42603e; background:#1a2319; border-radius:8px; min-height:90px; padding:13px; }
.creator-styles strong { font-size:11px; color:#c6d9c3; font-weight:650; }
.creator-styles small { font-size:9px; line-height:1.65; color:#7ca776; }
.creator-styles input:checked+span { border-color:#71ff42; background:#263424; }
.creator-styles input:checked+span strong { color:#dee9dc; }
.creator-styles input:focus-visible+span { outline:2px solid var(--green); outline-offset:3px; }
.studio-field { display:flex; flex-direction:column; gap:10px; font-size:11px; color:#96b991; margin:20px 0; }
.studio-field input,.studio-field select,.studio-field textarea { border:1px solid #446340; border-radius:7px; background:#0e130e; color:#d1e0cf; padding:11px 12px; min-height:42px; font-size:12px; width:100%; }
.studio-field textarea { resize:vertical; line-height:1.6; }
.studio-field input::placeholder,.studio-field textarea::placeholder { color:#698e63; }
.studio-field small { font-size:9px; line-height:1.6; color:#669060; }
.studio-generation-note { padding:23px; background:#121811c9; border:1px solid #344631; border-radius:10px; align-self:start; }
.studio-generation-note .eyebrow { font-size:8px; }
.studio-generation-note h2 { font-size:24px; letter-spacing:-1px; line-height:1.15; font-weight:550; margin:17px 0; }
.studio-generation-note p { font-size:11px; color:#7ba575; margin:15px 0; line-height:1.75; }
.studio-generation-note>.button { margin-top:13px; font-size:10px; width:100%; }
.studio-output-formats { display:flex; align-items:center; gap:9px; margin:24px 0; }
.studio-output-formats span { border:1px solid #3e5a3a; color:#b6ceb2; border-radius:5px; font-family:'Geist Mono',ui-monospace,monospace; font-size:10px; padding:9px; }
.studio-panel { padding:25px; border:1px solid #334530; border-radius:11px; background:#121911ea; }
.studio-panel h2,.studio-recent>h2 { font-size:19px; font-weight:550; letter-spacing:-.6px; margin-bottom:17px; }
.studio-panel p { font-size:12px; color:#7ea778; line-height:1.7; }
.studio-recent { margin-top:33px; }
.board-categories { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:21px; }
.board-categories>div { position:relative; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:15px 0; font-size:12px; color:#9cbc97; }
.board-categories strong { font-family:'Geist Mono',ui-monospace,monospace; color:#d5e3d3; font-size:11px; font-weight:550; }
.board-categories i { position:absolute; bottom:0; left:0; height:3px; width:var(--category-size); background:#6c9c64; max-width:100%; }
.studio-form-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(240px,.8fr); gap:25px; }
.studio-form-grid .studio-panel { align-self:start; }
.studio-form-grid form>.button { min-height:38px; font-size:11px; }
.studio-form-status { margin-top:17px; }
.help-kind { padding:0; margin:0; border:0; display:flex; gap:19px; flex-wrap:wrap; }
.help-kind legend { font-size:11px; color:#a3c19e; margin-bottom:13px; }
.help-kind label { font-size:11px; color:#81aa7b; display:flex; align-items:center; gap:7px; }
.help-kind input { accent-color:var(--green); }
.studio-help-note .eyebrow { font-size:8px; }
.studio-help-note h2 { margin-top:18px; font-size:25px; }
.studio-help-note p { margin:17px 0; font-size:11px; }
.studio-help-note>.button { margin-top:20px; font-size:10px; }
.studio-request-history { margin-top:27px; }
.request-list { display:grid; gap:16px; }
.request-list article { border:1px solid #31432e; background:#171f15; border-radius:8px; padding:16px; }
.request-list article>div { display:flex; justify-content:space-between; gap:12px; align-items:center; }
.request-list article>p { font-size:11px; margin:15px 0; color:#a1c09c; white-space:pre-wrap; }
.request-list article>small { color:#5a8354; font-size:9px; }
.request-status { font-size:10px; text-transform:capitalize; color:#9dbd99; }
.profile-summary { text-align:center; }
.profile-summary .studio-avatar { width:60px; height:60px; font-size:18px; margin-bottom:22px; }
.profile-summary .tag { margin:3px 0 23px; }
.profile-summary p { font-size:11px; margin-bottom:24px; }
.profile-summary .button { width:100%; font-size:10px; }
.reels-tabs { width:max-content; margin-bottom:26px; }
.reel-feed { display:grid; gap:27px; max-width:790px; }
.reel-card { display:grid; grid-template-columns:280px minmax(0,1fr); background:#121811; border:1px solid #2f402c; border-radius:12px; overflow:hidden; }
.reel-video-wrap { position:relative; background:#030403; min-width:0; }
.reel-video { display:block; width:100%; height:395px; background:#000; object-fit:contain; }
.reel-label { position:absolute; top:13px; left:12px; pointer-events:none; }
.reel-info { display:flex; flex-direction:column; justify-content:center; padding:28px; }
.reel-info .eyebrow { font-size:8px; color:#729d6b; }
.reel-info h2 { font-size:23px; line-height:1.18; letter-spacing:-1px; font-weight:550; margin:17px 0; }
.reel-info p { font-size:12px; color:#94b78f; line-height:1.7; }
.reel-actions { display:flex; gap:9px; flex-wrap:wrap; margin:25px 0 21px; }
.reel-actions .button { font-size:10px; min-height:36px; }
.reel-cut-note { font-family:'Geist Mono',ui-monospace,monospace; color:#598253; font-size:9px; }
@media(max-width:1200px) {
  .studio-mode main.studio-main { padding:32px 27px 55px; }
  .studio-generate-grid { grid-template-columns:minmax(0,1fr); }
  .studio-generation-note { display:none; }
  .studio-main .clip-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .studio-library .library-toolbar { flex-wrap:wrap; }
  .studio-library .library-controls { margin-left:0; }
}
@media(max-width:900px) {
  .studio-rail { width:155px; padding:25px 12px; }
  .studio-mode main.studio-main { margin-left:155px; padding:29px 22px 45px; }
  .studio-rail nav button { padding:11px 9px; gap:9px; font-size:9px; }
  .studio-page-heading h1 { font-size:29px; }
  .studio-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .studio-form-grid { grid-template-columns:1fr; }
  .studio-form-grid aside { display:none; }
  .board-categories { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .reel-card { grid-template-columns:230px minmax(0,1fr); }
  .reel-video { height:340px; }
  .reel-info { padding:20px; }
  .reel-info h2 { font-size:19px; }
}
@media(max-width:760px) {
  .studio-header { height:69px; padding:0 17px; gap:15px; }
  .studio-header .brand { font-size:22px; }
  .studio-local,.studio-profile-link>span:last-child { display:none; }
  .studio-header-actions { gap:12px; }
  .studio-header-actions .primary { font-size:10px; padding:8px 12px; min-height:33px; }
  .studio-avatar { width:31px; height:31px; }
  .studio-rail { position:sticky; top:69px; bottom:auto; left:auto; width:100%; border-right:0; border-bottom:1px solid #2a3229; padding:9px 12px; }
  .studio-rail>.eyebrow,.studio-rail-bottom { display:none; }
  .studio-rail nav { flex-direction:row; gap:4px; overflow:auto; }
  .studio-rail nav button { width:auto; flex:1; white-space:nowrap; padding:10px 8px; gap:5px; font-size:8px; justify-content:center; }
  .studio-rail nav button svg { width:13px; height:13px; }
  .studio-mode main.studio-main { margin-left:0; padding:26px 18px 43px; }
  .studio-page-heading { gap:16px; align-items:flex-start; }
  .studio-page-heading h1 { font-size:29px; }
  .studio-page-heading p { font-size:11px; }
  .studio-page-heading>.button { display:none; }
  .studio-stat { padding:17px; }
  .studio-stat>strong { font-size:27px; }
  .studio-stat>small { font-size:8px; }
  .studio-main .clip-grid { gap:13px; }
  .studio-main .clip-body { padding:14px; }
  .studio-main .clip-body>p { min-height:0; }
  .studio-library .library-controls { width:100%; }
  .studio-panel { padding:20px; }
  .reel-card { grid-template-columns:1fr; max-width:420px; }
  .reel-video { height:390px; }
  .reel-info { padding:23px; }
  .reel-info h2 { font-size:22px; }
  .reel-actions { margin:21px 0 17px; }
  .reel-feed { justify-items:center; }
  .studio-generate-main .source-row { gap:15px; }
}
@media(max-width:420px) {
  .studio-rail nav button svg { display:none; }
  .studio-rail nav button { font-size:8px; padding:10px 9px; }
  .studio-header-actions .primary svg { display:none; }
  .studio-main .clip-grid { grid-template-columns:1fr; }
  .studio-page-heading h1 { font-size:26px; }
  .creator-styles { grid-template-columns:1fr; }
  .creator-styles label>span { min-height:75px; }
  .studio-stats { gap:10px; }
  .studio-stat { padding:15px; }
  .studio-stat>strong { font-size:26px; }
  .board-categories { grid-template-columns:1fr; }
  .clip-day>header { gap:10px; }
  .clip-day>header>span { font-size:9px; }
  .clip-day>header>small { font-size:8px; }
}
.studio-profile-link>span:last-child { max-width:135px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.studio-panel p,.profile-summary h2,.clip-body h3,.clip-body>p { overflow-wrap:anywhere; }

/* Local editing controls share the creator's rose and charcoal palette. */
.editing-section { border:1px solid #3a4f37; border-radius:10px; background:#151c14f0; margin:20px 0; padding:0 16px 16px; }
.editing-section>summary { cursor:pointer; padding:16px 0; font-size:13px; font-weight:650; color:#e3ece2; }
.editing-section:not([open]) { padding-bottom:0; }
.editing-section .caption-toggle { margin:0 0 14px; border-top:0; padding-top:0; }
.editing-section p { line-height:1.65; }
.editor-field { display:flex; flex-direction:column; gap:8px; color:#b3ccaf; font-size:11px; margin:15px 0; }
.editor-field input:not([type=range]):not([type=color]),.editor-field select,.editor-inline>select { width:100%; min-height:38px; padding:9px 11px; background:#0d100c; color:#e1ebdf; border:1px solid #476443; border-radius:7px; font-size:12px; }
.editor-field input[type=color] { border:1px solid #476443; border-radius:6px; background:#0d100c; height:35px; width:100%; padding:3px; cursor:pointer; }
.editor-field input[type=range] { width:100%; accent-color:var(--green); }
.editor-field output { color:#ccddc9; font-family:'Geist Mono',ui-monospace,monospace; font-size:10px; }
.editor-two { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 12px; }
.editor-checkbox { display:flex; gap:9px; align-items:center; margin:17px 0 12px; font-size:11px; color:#dfeadd; }
.editor-checkbox input { accent-color:var(--green); width:16px; height:16px; flex-shrink:0; }
.editor-inline { display:flex; align-items:center; gap:12px; justify-content:space-between; margin:16px 0; }
.editor-inline>strong { font-size:12px; font-weight:650; }
.editor-inline .button { min-height:32px; font-size:10px; white-space:nowrap; }
.brand-editor { border-top:1px solid #364a33; margin-top:16px; padding-top:1px; }
.asset-upload-label { cursor:pointer; margin:3px 0 10px; display:inline-flex; }
#asset-status,#brand-status { color:#d7e4d5; margin:12px 0; overflow-wrap:anywhere; }
#music-controls audio { width:100%; margin-top:15px; height:36px; }
.overlay-heading { margin-top:24px; }
.overlay-row { background:#0e120d; border:1px solid #3d5839; padding:0 13px 15px; border-radius:8px; margin:17px 0; }
.overlay-row .editor-field { margin:11px 0; }
.asset-browser { margin-top:21px; border-top:1px solid #374b34; padding-top:15px; }
.asset-browser>summary { font-size:11px; cursor:pointer; color:#b9d0b6; }
.asset-browser-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:17px; }
.asset-browser-grid article { border:1px solid #3b5138; background:#0c100b; padding:9px; border-radius:7px; min-width:0; }
.asset-browser-grid img,.asset-browser-grid video { width:100%; height:90px; object-fit:contain; background:#060806; display:block; }
.asset-browser-grid audio { width:100%; min-width:0; height:35px; }
.asset-browser-grid span,.asset-browser-grid small { display:block; overflow-wrap:anywhere; font-size:10px; margin-top:9px; color:#c8dac6; }
.asset-browser-grid small { font-size:9px; color:#86aa81; }
.caption-line { display:flex; align-items:flex-start; gap:12px; margin-bottom:13px; }
.caption-line:last-child { margin-bottom:0; }
.caption-line>button { margin-top:9px; flex-shrink:0; }
.caption-line>span { font-size:12px; line-height:1.65; }
.caption-line textarea { width:100%; min-width:0; border:1px solid #456340; border-radius:6px; background:#111810; color:#d8e5d6; padding:8px 10px; resize:vertical; font-size:12px; line-height:1.6; }
.caption-edit-note { margin-top:13px; }
.export-preview { display:block; width:100%; max-height:410px; margin-top:18px; border:1px solid #456540; border-radius:9px; background:#000; }
.render-notices { padding-left:18px; margin:15px 0 0; font-size:11px; color:#e2ba9d; line-height:1.7; }
.render-notices li { margin:7px 0; }
.reels-highlights { margin-bottom:24px; }
#highlight-order { display:grid; gap:11px; margin:23px 0; }
.highlight-cut { display:flex; align-items:center; gap:10px; border:1px solid #394e36; background:#151d14; border-radius:9px; padding:12px; min-width:0; }
.highlight-cut>span { font-family:'Geist Mono',ui-monospace,monospace; color:#b1cbad; font-size:11px; }
.highlight-cut>img { width:56px; height:43px; object-fit:cover; border-radius:5px; flex-shrink:0; }
.highlight-cut>div { flex:1; min-width:0; }
.highlight-cut strong { font-size:12px; font-weight:550; color:#d6e4d4; display:block; line-height:1.45; overflow-wrap:anywhere; }
.highlight-cut small { font-size:9px; color:#7fa479; display:block; margin-top:5px; }
.highlight-cut .button { width:26px; height:29px; min-height:29px; padding:5px; flex-shrink:0; }
#highlight-form .preview-column>h3 { font-size:17px; font-weight:550; margin-bottom:12px; }
#highlight-form .preview-column>p { margin-top:14px; }
#highlight-form>.edit-column>.primary { width:100%; font-size:12px; }
.preview-column { min-width:0; }
@media(min-width:900px) { .preview-column { align-self:start; position:sticky; top:20px; } }
@media(max-width:760px) { .modal-body { gap:24px; } .asset-browser-grid { grid-template-columns:1fr; } .highlight-cut>img { display:none; } }
.batch-fields { margin:20px 0 6px; border-top:1px solid #3b5138; padding:17px 0 0; }
.batch-fields>summary { cursor:pointer; color:#c7dac4; font-size:12px; font-weight:650; }
.batch-fields>p { margin-top:14px; }
.batch-fields .studio-field { margin:15px 0; }
.batch-history { margin-top:25px; }
.batch-history article { display:flex; justify-content:space-between; gap:20px; align-items:center; padding:17px 0; border-top:1px solid #32442f; }
.batch-history strong,.batch-history small { display:block; }
.batch-history strong { font-size:12px; font-weight:600; color:#d2e1cf; }
.batch-history small { font-size:9px; margin-top:7px; color:#85a880; }
.batch-history article>p { font-size:11px; }
.batch-history .button { font-size:10px; min-height:34px; }
.reels-toolbar { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
.publishing-gate { max-width:790px; margin-bottom:25px; }
.publishing-drafts { display:grid; gap:22px; max-width:790px; }
.publishing-drafts .editor-inline { margin-top:0; }
.publishing-drafts h2 { margin:0; }
.publishing-drafts .draft-caption { margin:20px 0; white-space:pre-wrap; font-size:13px; color:#c0d4bd; }
.publishing-drafts .reel-actions { margin-bottom:0; }
.publishing-preview-title { margin:20px 0 12px; font-size:18px; font-weight:550; line-height:1.3; }
.editor-field textarea { border:1px solid #476443; border-radius:8px; background:#0d100c; color:#dde8dc; padding:12px; font-size:13px; line-height:1.6; resize:vertical; }
.publishing-destinations { border:0; padding:0; margin:25px 0; }
.publishing-destinations legend { font-size:13px; font-weight:650; }
.editor-field small { color:#8fa98b; font-size:10px; line-height:1.65; }
.publishing-gate h2 { line-height:1.25; }
@media(max-width:760px) { .reels-toolbar { flex-direction:column; gap:0; } .batch-history article { flex-wrap:wrap; gap:14px; } .publishing-drafts .editor-inline { flex-wrap:wrap; } .batch-fields .editor-two { grid-template-columns:1fr; } }
.job-stop-controls { display:flex; align-items:center; gap:12px; }
.job-stop-controls .button { min-height:32px; font-size:11px; }
.job-info .job-notice { color:#bed3bb; font-size:11px; margin-top:8px; }
.app-loading { min-height:100svh; max-width:690px; margin:auto; padding:70px 28px; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; gap:23px; }
.app-loading>.brand { margin-bottom:18px; }
.app-loading h1 { font-size:clamp(34px,6vw,60px); font-weight:520; line-height:1.02; letter-spacing:-.06em; }
.app-loading p { color:#acbda9; max-width:480px; font-size:15px; }
.app-loading .loading-error { font-size:12px; color:#edaa9d; }
.loading-ring { border:2px solid #31432e; border-top-color:var(--green); height:26px; width:26px; border-radius:50%; animation:spin .9s linear infinite; }
.script-notice { padding:20px; text-align:center; color:#b9d0b5; }
textarea[dir=auto],input[dir=auto] { text-align:start; unicode-bidi:plaintext; }
.caption-line textarea[dir=rtl],.translated-caption[dir=rtl] { text-align:right; line-height:1.8; }
.caption-language-controls { border-top:1px solid #354832; border-bottom:1px solid #354832; padding:1px 0 15px; margin:18px 0; }
#translation-status { color:#bcd2b9; line-height:1.65; margin-top:13px; }
.translation-preview { margin-top:24px; padding:18px; border:1px solid #486543; border-radius:10px; background:#101610; }
.translation-preview>h3 { font-size:15px; font-weight:650; margin-bottom:11px; }
.translation-preview>p { margin-bottom:20px; }
.translation-preview article { border-top:1px solid #2f402d; padding:15px 0; }
.translation-preview article:last-child { padding-bottom:0; }
.translation-preview article header { font-family:'Geist Mono',ui-monospace,monospace; color:#aec8aa; font-size:10px; margin-bottom:10px; }
.translation-preview article>p { font-size:15px; line-height:1.75; color:#e0eade; }
.translation-preview article details { margin-top:13px; font-size:11px; color:#8cab87; }
.translation-preview article details>summary { cursor:pointer; }
.translation-preview article details>p { margin-top:11px; font-size:12px; line-height:1.7; color:#a5bea1; }
.caption-line[dir=rtl] { flex-direction:row; }
.caption-line[dir=rtl]>button { unicode-bidi:isolate; }

.editor-loading { min-height:230px; padding:38px; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:22px; }
.editor-loading p { max-width:570px; font-size:14px; color:#b1c6ae; }

/* Cloud account and free-access flow; retains the studio's Geist/rose identity. */
.auth-shell { width: min(960px, calc(100% - 40px)); margin: 60px auto 100px; }
.auth-panel { max-width: 540px; margin: 0 auto; padding: clamp(24px, 5vw, 42px); }
.auth-panel h1, .privacy-panel h1 { margin: 14px 0; font-size: clamp(32px, 6vw, 46px); font-weight: 650; letter-spacing: -.045em; line-height: 1.05; }
.auth-panel form { display: grid; gap: 18px; margin: 28px 0 20px; }
.auth-panel form .studio-field { margin: 0; }
.auth-panel a, .privacy-panel a, .contribution-panel a { color: var(--green); }
.privacy-panel { padding: clamp(24px, 5vw, 48px); }
.privacy-panel p { line-height: 1.6; color: var(--muted); margin: 18px 0; }
.privacy-panel h2 { font-size: 24px; letter-spacing: -.03em; margin-top: 30px; }
.contribution-choice { align-items: flex-start; line-height: 1.5; }
.contribution-choice input { flex: 0 0 auto; margin-top: 4px; }
.contribution-choice strong, .contribution-choice small { display: block; }
.contribution-choice small { color: var(--muted); font-size: 12px; margin-top: 8px; line-height: 1.6; }
.contribution-panel { grid-column: 1 / -1; }
.contribution-panel .editor-inline { margin-top: 20px; }
.free-usage { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 22px; background: var(--surface2); }
.free-usage strong, .free-usage span, .free-usage small { display: block; }
.free-usage strong { font-size: 13px; color: var(--text); margin-bottom: 6px; }
.free-usage span, .free-usage small { font-size: 12px; color: var(--muted); line-height: 1.6; }
.profile-summary .free-usage { margin: 22px 0; text-align: left; }
.free-access-note { color: var(--muted); font-size: 13px; margin: 20px 0; }
.landing-cta { padding: 18px 26px; }
.early-access-panel { max-width: 1160px; margin: 0 auto 80px; padding: 42px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.early-access-panel h2 { font-size: clamp(30px, 5vw, 44px); margin: 16px 0; letter-spacing: -.04em; }
.early-access-panel p { max-width: 650px; color: var(--muted); line-height: 1.6; margin-bottom: 24px; }
.studio-field input[readonly] { color: var(--muted); cursor: default; }
@media (max-width: 720px) { .auth-shell { margin-top: 28px; } .site-header .brand { font-size: 23px; } .early-access-panel { margin: 0 20px 45px; padding: 26px; } .studio-header-actions .studio-local { display: none; } .contribution-panel .editor-inline { flex-wrap: wrap; } }

/* KickNClip identity: the supplied wordmark remains an unmodified asset. */
.brand { flex-shrink: 0; }
.brand-logo { display: block; width: 196px; height: auto; max-width: 100%; object-fit: contain; }
.site-footer .brand-logo { width: 168px; }
.app-loading .brand-logo { width: 230px; }
@media (max-width: 600px) {
  .brand-logo { width: 154px; }
  .site-header, .studio-header { gap: 14px; }
}
