:root {
  --ink: #181b18;
  --muted: #777b70;
  --paper: #f5f5ef;
  --white: #fff;
  --line: #dedfd5;
  --lime: #d7f75b;
  --lime-soft: #eef5d4;
  --red: #943c30;
  --red-soft: #f6e8e2;
  --font: "Avenir Next","Avenir","Trebuchet MS",sans-serif;
  --display: "Helvetica Neue","Arial Narrow",sans-serif;
  --mono: "SFMono-Regular","Menlo",monospace;
  --radius: 10px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
}
button,input,textarea,select {
  font: inherit;
}
button,a,input,select,textarea {
  -webkit-tap-highlight-color: transparent;
}
button,a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: .45;
}
a {
  color: inherit;
}
button,select,input,textarea,a {
  outline-offset: 4px;
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {
  outline: 2px solid #629208;
}
button {
  color: inherit;
}
input,select,textarea {
  max-width: 100%;
  border: 1px solid #d8dacf;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  min-height: 44px;
  width: 100%;
  transition: border-color .15s;
}
input:hover,select:hover,textarea:hover {
  border-color: #b2b6a7;
}
textarea {
  resize: vertical;
  min-height: 68px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
h1,h2,h3,p {
  margin: 0;
}
h1,h2,h3 {
  line-height: 1.15;
}
svg.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}
svg.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  background: var(--lime);
  padding: 12px 18px;
  border-radius: 6px;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: translateY(0);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 45px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 7px;
  line-height: 1.25;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: background .15s,transform .15s,border-color .15s;
  white-space: nowrap;
}
.button:hover:not(:disabled) {
  transform: translateY(-1px);
}
.button-ink {
  background: var(--ink);
  color: var(--white);
}
.button-ink:hover:not(:disabled) {
  background: #343a2c;
}
.button-lime {
  background: var(--lime);
  color: var(--ink);
}
.button-lime:hover:not(:disabled) {
  background: #e1ff73;
}
.button-outline {
  border-color: #cdd0c3;
  background: transparent;
}
.button-outline:hover:not(:disabled) {
  background: #eceee4;
  border-color: #a9af9a;
}
.button-large {
  min-height: 53px;
  padding: 14px 22px;
  font-size: 14px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
}
.icon-button:hover:not(:disabled) {
  background: #e5e7dd;
}
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 0;
  min-height: 40px;
  border: 0;
  background: none;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tiny-label,.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.1px;
  font-weight: 500;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #6f7564;
}
.outlined-pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 5px 9px;
  border: 1px solid #ccd0be;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .6px;
}
.count {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  font-family: var(--mono);
  font-size: 10px;
  border: 1px solid #d7dace;
  border-radius: 4px;
}
.app-shell {
  display: grid;
  grid-template-columns: 238px minmax(0,1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 32px 20px 22px;
  background: var(--ink);
  color: #f5f6ed;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f7f8ed;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 850;
  font-stretch: condensed;
  letter-spacing: -1.2px;
  font-size: 24px;
  line-height: 1;
}
.brand-second {
  font-weight: 400;
}
.brand-dot {
  color: var(--lime);
}
.brand-mark {
  display: flex;
  gap: 3px;
  transform: skewX(-12deg);
}
.brand-mark span {
  display: block;
  width: 6px;
  height: 22px;
  background: var(--lime);
}
.brand-mark span:first-child {
  height: 15px;
  margin-top: 7px;
}
.workspace-tag {
  margin: 14px 0 29px 1px;
  color: #909584;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1.7px;
}
.sidebar-upload {
  width: 100%;
  justify-content: flex-start;
}
.key-hint {
  margin-left: auto;
  opacity: .5;
  font-weight: 400;
  font-size: 17px;
}
.sidebar-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 31px 3px 12px;
  color: #b2b7a8;
}
.sidebar-section-title h2 {
  font-size: 11px;
  letter-spacing: .2px;
  font-weight: 500;
}
.sidebar-section-title .count {
  border-color: #454a3d;
  color: #b9c0ad;
}
.project-list {
  overflow-y: auto;
  min-height: 50px;
  flex: 1;
  margin: 0 -5px;
  padding: 0 5px 20px;
  scrollbar-width: thin;
  scrollbar-color: #434b37 transparent;
}
.sidebar-empty {
  font-size: 12px;
  color: #929989;
  line-height: 1.7;
  margin: 8px 3px;
}
.project-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 1px solid transparent;
  width: 100%;
  padding: 11px 10px;
  border-radius: 7px;
  background: none;
  color: #bfc5b5;
  margin-bottom: 5px;
}
.project-nav-item:hover {
  background: #252b21;
}
.project-nav-item.active {
  background: #2c3327;
  border-color: #3e4932;
  color: #fff;
}
.project-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 35px;
  background: #383f30;
  border: 1px solid #49523c;
  border-radius: 4px;
  color: #c6d2b4;
}
.project-nav-icon .icon {
  width: 16px;
  height: 16px;
}
.project-nav-item.active .project-nav-icon {
  color: var(--lime);
  border-color: #5a6745;
}
.project-nav-copy {
  display: block;
  min-width: 0;
}
.project-nav-title {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11px;
  font-weight: 500;
}
.project-nav-subtitle {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 8px;
  color: #959d88;
}
.nav-busy-dot {
  height: 5px;
  width: 5px;
  background: var(--lime);
  border-radius: 50%;
  margin-left: auto;
  flex-shrink: 0;
  animation: pulse 1.4s ease-in-out infinite;
}
.sidebar-bottom {
  border-top: 1px solid #373e2f;
  padding: 19px 3px 0;
  margin-top: 10px;
}
.engine-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 13px;
  color: #a2aa94;
}
.engine-heading .tiny-label {
  font-size: 8px;
}
.engine-heading>span:last-child {
  font-size: 9px;
}
.engine-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.engine-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #b9c1ae;
  margin: 9px 0;
}
.engine-list li>span:last-child {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 8px;
  color: #8d9880;
}
.engine-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #747b67;
  flex-shrink: 0;
}
.engine-dot.ready {
  background: var(--lime);
}
.engine-dot.missing {
  background: #db957f;
}
.local-note {
  font-size: 9px;
  line-height: 1.8;
  color: #87917b;
  margin-top: 19px;
}
.main {
  min-width: 0;
  padding: 0 48px;
  display: flex;
  flex-direction: column;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 83px;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #818675;
  font-size: 11px;
  min-width: 0;
}
.breadcrumb span {
  color: #b0b5a6;
}
.breadcrumb strong {
  font-weight: 500;
  color: #4e5546;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}
.connection-status {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: #6b735d;
  font-family: var(--mono);
  font-size: 9px;
}
.connection-status>span {
  width: 5px;
  height: 5px;
  background: #b8beac;
  border-radius: 50%;
}
.connection-status.connected>span {
  background: #7d9a3d;
}
.connection-status.offline {
  color: var(--red);
}
.connection-status.offline>span {
  background: var(--red);
}
.global-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid #e6c8bb;
  border-radius: 7px;
  padding: 7px 10px 7px 16px;
  margin-top: 18px;
  font-size: 12px;
}
.global-alert .icon-button {
  height: 32px;
  width: 32px;
}
.global-alert.success {
  background: var(--lime-soft);
  color: #445824;
  border-color: #d5dfbd;
}
.main-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 74px;
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding: 17px 0;
  color: #929987;
  font-size: 9px;
}
.main-footer>span:first-child {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: -.4px;
  color: #626b57;
}
.footer-dot {
  color: #80a024;
}
.welcome-view {
  display: grid;
  grid-template-columns: minmax(280px,1.1fr) minmax(260px,1fr);
  gap: 46px 40px;
  padding: 65px 0 34px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}
.welcome-copy {
  padding-top: 18px;
}
.mini-spark {
  font-size: 18px;
  color: #637b34;
}
.welcome-copy h1 {
  font-family: var(--display);
  font-size: clamp(48px,4.7vw,76px);
  font-weight: 650;
  letter-spacing: -4px;
  line-height: 1.04;
  margin-top: 20px;
}
.welcome-copy h1>span {
  color: #7e8871;
}
.welcome-copy>p {
  font-size: 14px;
  max-width: 340px;
  line-height: 1.8;
  color: #737c67;
  margin: 25px 0 28px;
}
.welcome-copy .button-large .icon {
  margin-left: 13px;
}
.welcome-footnote {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 17px;
  color: #7d8671;
  font-size: 10px;
}
.small-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b9c4a6;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  font-size: 8px;
}
.editing-illustration {
  border: 1px solid #d5dacb;
  border-radius: 10px;
  background: #e8ecdf;
  transform: rotate(2deg);
  box-shadow: 0 18px 45px #39432a0b;
  align-self: center;
  margin: 10px 7px 0 0;
  overflow: hidden;
  animation: appear .55s ease-out;
}
.illustration-topline,.illustration-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .8px;
  color: #71805d;
}
.illustration-topline {
  border-bottom: 1px solid #d1d9c6;
}
.illustration-body {
  height: 230px;
  position: relative;
  margin: 0 28px;
}
.abstract-source {
  position: absolute;
  top: 35px;
  left: 0;
  right: 0;
  height: 155px;
  background: #747f5d;
  border-radius: 4px;
  overflow: hidden;
}
.source-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#b8c5a316 1px,transparent 1px),linear-gradient(90deg,#b8c5a316 1px,transparent 1px);
  background-size: 22px 22px;
}
.source-orbit {
  position: absolute;
  width: 190px;
  height: 190px;
  border: 1px solid #d0dfb273;
  border-radius: 50%;
  top: -15px;
  left: 28%;
}
.orbit-two {
  width: 130px;
  height: 130px;
  left: 39%;
  top: 15px;
}
.source-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  color: #dce6cb;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 1px;
}
.source-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 86px;
  font-weight: 200;
  color: #d9e8b8;
  transform: translate(15px,-6px);
}
.crop-outline {
  position: absolute;
  width: 116px;
  height: 206px;
  border: 1px solid #e0ff80;
  top: 9px;
  left: 50%;
  transform: translateX(-38%) rotate(-2deg);
  background: #d7f75b0a;
  box-shadow: 0 0 0 1px #2b37190c;
}
.crop-outline>span {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--lime);
}
.crop-outline>span:nth-child(1) {
  left: -2px;
  top: -2px;
  border-right: 0;
  border-bottom: 0;
}
.crop-outline>span:nth-child(2) {
  right: -2px;
  top: -2px;
  border-left: 0;
  border-bottom: 0;
}
.crop-outline>span:nth-child(3) {
  left: -2px;
  bottom: -2px;
  border-right: 0;
  border-top: 0;
}
.crop-outline>span:nth-child(4) {
  right: -2px;
  bottom: -2px;
  border-left: 0;
  border-top: 0;
}
.crop-tag {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--lime);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: .2px;
  padding: 5px;
  color: #2e3b1b;
}
.mini-timeline {
  display: flex;
  position: relative;
  gap: 4px;
  margin: 8px 24px 0;
  border-top: 1px solid #cbd4bc;
  padding-top: 13px;
}
.timeline-bar {
  height: 22px;
  border-radius: 2px;
  background: #b5c59b;
  flex: 1;
  border: 1px solid #a8bb89;
}
.bar-two {
  background: var(--lime);
  border-color: #a2bd5c;
  flex: 1.5;
}
.bar-three {
  background: #b5c59b;
  flex: .75;
}
.timeline-bar:after {
  content: "";
  display: block;
  margin: 6px 5px;
  height: 8px;
  background: repeating-linear-gradient(90deg,#6279434d 0 1px,transparent 1px 4px);
}
.timeline-playhead {
  position: absolute;
  left: 54%;
  top: 5px;
  bottom: -6px;
  width: 1px;
  background: #3d482f;
}
.timeline-playhead:before {
  content: "";
  position: absolute;
  top: 0;
  left: -3px;
  border-top: 5px solid #3d482f;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
}
.illustration-footer {
  padding: 20px 24px 16px;
  letter-spacing: 0;
  font-family: var(--font);
  font-size: 9px;
}
.illustration-footer>span:last-child {
  font-size: 18px;
  color: #718551;
}
.workflow-strip {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 25px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
  margin-top: 18px;
}
.workflow-strip>div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.step-number {
  font-family: var(--mono);
  font-size: 9px;
  color: #8e997e;
  border: 1px solid #d2d9c6;
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.workflow-strip h2 {
  font-size: 11px;
  font-weight: 600;
  margin: 3px 0 6px;
}
.workflow-strip p {
  font-size: 10px;
  color: #8b927f;
}
.welcome-bottom {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid #e2e5d9;
  border-radius: 7px;
  margin-top: 5px;
}
.welcome-bottom>.tiny-label {
  font-size: 7px;
  color: #7b866d;
  white-space: nowrap;
}
.welcome-bottom p {
  font-size: 10px;
  color: #8b927f;
}
.welcome-bottom .outlined-pill {
  margin-left: auto;
  font-size: 7px;
}
.project-view {
  padding: 35px 0 38px;
}
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}
.project-header>div {
  min-width: 0;
}
.project-header h1 {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -1.2px;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.project-meta {
  color: #858e77;
  font-size: 11px;
}
.delete-project {
  color: #8c947f;
  border: 1px solid #d9ddcf;
}
.delete-project:hover:not(:disabled) {
  color: var(--red);
  background: var(--red-soft);
}
.analysis-status {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #eaf0da;
  border: 1px solid #dbe5c4;
  border-radius: 8px;
  padding: 22px 25px;
  margin-bottom: 24px;
}
.analysis-status h2 {
  font-size: 14px;
  font-weight: 600;
}
.analysis-status p {
  margin-top: 7px;
  color: #778664;
  font-size: 11px;
  line-height: 1.7;
}
.analysis-status .outlined-pill {
  margin-left: auto;
  color: #6b7b50;
}
.spinner {
  height: 24px;
  width: 24px;
  border: 2px solid #c1d497;
  border-top-color: #596d30;
  border-radius: 50%;
  flex-shrink: 0;
  animation: spin .9s linear infinite;
}
.project-error {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px;
  background: var(--red-soft);
  border: 1px solid #e3cabc;
  border-radius: 8px;
  margin-bottom: 25px;
}
.project-error h2 {
  font-size: 14px;
  color: #7c3b2b;
}
.project-error p {
  font-size: 12px;
  color: #985d4c;
  margin-top: 8px;
  line-height: 1.7;
}
.project-error .button {
  margin-left: auto;
}
.clips-workspace {
  display: grid;
  grid-template-columns: 215px minmax(0,1fr);
  gap: 25px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.section-heading h2 {
  font-size: 13px;
  font-weight: 600;
}
.section-heading .count {
  font-size: 9px;
}
.selection-note {
  font-size: 10px;
  line-height: 1.75;
  color: #8b937f;
  margin: 11px 0 20px;
}
.clip-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.clip-row { display: flex; align-items: flex-start; gap: 6px; min-width: 0; }
.clip-selection { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 44px; min-height: 56px; font-size: 9px; color: var(--muted); cursor: pointer; }
.clip-selection input { width: 21px; height: 21px; margin: 0; accent-color: var(--ink); }
.clip-row .clip-card { flex: 1; min-width: 0; }
.batch-controls { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; padding: 10px; border: 1px solid #dfe4d3; border-radius: 8px; background: #f5f6ee; }
.batch-controls[hidden] { display: none; }
.batch-selection-actions { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.batch-controls .text-button { min-height: 44px; font-size: 11px; }
.batch-controls .button { min-height: 44px; padding: 10px; font-size: 11px; white-space: normal; text-align: center; }
.batch-controls .disabled { opacity: .5; cursor: default; }
.batch-status,.batch-help { margin: 0; font-size: 10px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.batch-controls .inline-error { margin: 0; font-size: 11px; }
.clip-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  text-align: left;
  width: 100%;
  background: #eceee4;
  border: 1px solid #dfe4d3;
  border-radius: 8px;
  padding: 15px;
  transition: border-color .15s,background .15s;
}
.clip-card:hover {
  background: #e8eddc;
  border-color: #b6c398;
}
.clip-card.active {
  background: #f8faee;
  border-color: #91a56b;
  box-shadow: 0 0 0 1px #91a56b;
}
.clip-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.clip-number {
  font-family: var(--mono);
  font-size: 9px;
  color: #858f76;
}
.clip-card-title {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.clip-score {
  display: flex;
  gap: 5px;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 12px;
  color: #5d7436;
}
.clip-score>small {
  font-size: 8px;
  color: #8c9879;
}
.clip-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.clip-time {
  font-family: var(--mono);
  font-size: 8px;
  color: #8a947c;
}
.clip-status {
  font-size: 8px;
  color: #7b8969;
  white-space: nowrap;
}
.clip-status.ready {
  color: #557b25;
}
.clip-status.error {
  color: var(--red);
}
.clip-card-reason {
  font-size: 9px;
  color: #8c967f;
  line-height: 1.6;
}
.clip-editor {
  min-width: 0;
  background: #fcfcf7;
  border: 1px solid #dce1d1;
  border-radius: 10px;
  overflow: hidden;
}
.editor-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 55px;
  padding: 14px 20px;
  border-bottom: 1px solid #e4e8da;
  gap: 10px;
}
.editor-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.editor-label .tiny-label {
  font-size: 8px;
  color: #7a876a;
}
.clip-state {
  font-size: 9px;
  color: #94a17e;
}
.dirty-state {
  font-size: 9px;
  color: #9a7d35;
}
.selected-clip-reason {
  padding: 13px 20px;
  border-bottom: 1px solid #e4e8da;
  background: #f3f6e9;
}
.selected-clip-reason .tiny-label {
  display: block;
  color: #85956d;
  font-size: 7px;
  letter-spacing: .7px;
}
.selected-clip-reason p {
  margin-top: 5px;
  color: #7b8c64;
  font-size: 10px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.editor-body {
  display: grid;
  grid-template-columns: minmax(150px,.82fr) minmax(220px,1fr);
  gap: 22px;
  padding: 20px;
}
.preview-column {
  min-width: 0;
}
.preview-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
  padding: 3px;
  background: #e9eddf;
  border-radius: 6px;
  width: max-content;
}
.preview-tab {
  border: 0;
  background: none;
  padding: 6px 13px;
  border-radius: 4px;
  font-size: 10px;
  min-height: 32px;
  color: #8d987b;
}
.preview-tab.active {
  background: #fff;
  color: #485b2e;
  box-shadow: 0 1px 3px #3846210d;
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  background: #1b2119;
  border-radius: 7px;
  overflow: hidden;
  isolation: isolate;
}
.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #1b2119;
}
.video-frame.portrait video {
  object-fit: cover;
}
.video-frame.export video {
  object-fit: contain;
}
.caption-overlay {
  position: absolute;
  bottom: 18%;
  left: 7%;
  right: 7%;
  text-align: center;
  font-weight: 700;
  font-size: clamp(10px,1.05vw,18px);
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 1px 3px #000,0 1px 10px #000;
  pointer-events: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  z-index: 1;
}
.caption-overlay>span {
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background: #000b;
  padding: 3px 6px;
  border-radius: 2px;
}
.preview-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  color: #e8efdb;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: .8px;
  text-shadow: 0 1px 6px #000;
}
.button-preview {
  border: 1px solid #d6deca;
  background: #f4f7ed;
  width: 100%;
  margin-top: 11px;
  font-size: 10px;
  min-height: 38px;
  padding: 9px;
}
.button-preview .icon {
  width: 14px;
  height: 14px;
}
.preview-note {
  font-size: 9px;
  line-height: 1.7;
  color: #8d987e;
  margin: 10px 1px 0;
}
.download-links {
  border-top: 1px solid #dfe7d3;
  margin-top: 15px;
  padding-top: 15px;
}
.download-links>.button {
  width: 100%;
  font-size: 11px;
}
.download-links>div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin: 12px 0;
}
.download-links>div a {
  font-size: 9px;
  text-underline-offset: 3px;
  color: #64784b;
}
.download-links p {
  font-size: 8px;
  line-height: 1.7;
  color: #98a18b;
}
.editor-form {
  min-width: 0;
}
.field-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 7px;
  color: #58664a;
}
.field-label>span {
  font-weight: 400;
  color: #9ba48d;
  font-size: 9px;
}
.editor-form>fieldset>input {
  font-size: 11px;
  min-height: 41px;
}
.timing-fields {
  display: grid;
  grid-template-columns: minmax(0,1fr) 10px minmax(0,1fr);
  gap: 9px;
  align-items: end;
  margin-top: 18px;
}
.timing-fields>span {
  align-self: end;
  margin-bottom: 11px;
  color: #a0ab90;
}
.timing-fields input {
  font-family: var(--mono);
  font-size: 11px;
  min-height: 40px;
  padding: 8px;
}
.timing-fields .field-label {
  font-size: 9px;
}
.timing-fields .field-label>span {
  font-size: 8px;
}
.field-help {
  font-size: 9px;
  line-height: 1.7;
  color: #8e9a7f;
  margin-top: 7px;
}
.template-label {
  margin-top: 22px;
}
.template-choices {
  display: flex;
  gap: 8px;
}
.crop-help {
  margin: 10px 0 12px;
  line-height: 1.7;
}
.crop-controls {
  border: 1px solid #d9e1cc;
  border-radius: 6px;
  background: #f4f7ee;
  padding: 12px;
  margin-bottom: 18px;
}
.crop-controls .field-label {
  margin-bottom: 0;
}
.crop-controls output {
  font-weight: 400;
  white-space: nowrap;
}
.crop-controls input[type="range"] {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0;
  margin: 0 0 7px;
  border: 0;
  background: transparent;
  accent-color: #617b3f;
  cursor: pointer;
}
.crop-controls input[type="range"]:disabled {
  cursor: default;
}
.crop-reset {
  min-height: 44px;
}
.template-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
  cursor: pointer;
  border: 1px solid #d9e1cc;
  border-radius: 6px;
  padding: 9px 7px;
  background: #fff;
}
.template-choice:has(input:checked) {
  background: #eff5df;
  border-color: #9fb57c;
}
.template-choice:has(input:focus-visible) {
  outline: 2px solid #629208;
  outline-offset: 3px;
}
.template-choice input {
  position: absolute;
  opacity: 0;
  min-height: 0;
  width: 1px;
  height: 1px;
}
.template-choice strong {
  display: block;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.template-choice small {
  display: block;
  font-size: 7px;
  white-space: nowrap;
  color: #97a284;
  margin-top: 2px;
}
.template-mini {
  display: block;
  width: 21px;
  height: 35px;
  flex-shrink: 0;
  border: 1px solid #b4c19e;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  background: #e5ebdb;
}
.template-mini>span {
  position: absolute;
  background: #a7b68e;
  left: 2px;
  right: 2px;
  top: 11px;
  height: 12px;
}
.template-crop>span {
  top: 2px;
  bottom: 2px;
  height: auto;
  left: 2px;
  right: 2px;
}
.template-crop>span:after {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  top: 5px;
  left: -4px;
  border: 1px solid #d6e4bd;
  border-radius: 50%;
}
.caption-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 23px;
  gap: 10px;
}
.caption-heading .field-label {
  margin: 0;
}
.caption-heading>span {
  font-family: var(--mono);
  font-size: 8px;
  color: #9da98d;
}
.caption-help {
  font-size: 8px;
  line-height: 1.7;
  margin: 6px 0 10px;
}
.refresh-captions {
  display: block;
  min-height: 44px;
  max-width: 100%;
  text-align: left;
  white-space: normal;
  margin-bottom: 10px;
}
.caption-preview-status {
  margin: 0 0 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.caption-list {
  max-height: 345px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #cdd8be transparent;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.caption-row {
  padding: 10px 9px 9px;
  background: #f1f5e9;
  border: 1px solid #e0e7d3;
  border-radius: 6px;
}
.caption-times {
  display: grid;
  grid-template-columns: 1fr 9px 1fr 23px;
  align-items: center;
  gap: 5px;
  margin-bottom: 7px;
}
.caption-times input {
  min-height: 29px;
  padding: 4px 5px;
  font-family: var(--mono);
  font-size: 8px;
  border-color: #dce4ce;
  border-radius: 4px;
}
.caption-times>span {
  font-size: 8px;
  color: #a7b29a;
}
.remove-caption {
  border: 0;
  background: none;
  width: 23px;
  height: 29px;
  padding: 3px;
  color: #9eab8d;
  display: grid;
  place-items: center;
}
.remove-caption:hover {
  color: var(--red);
}
.remove-caption .icon {
  width: 13px;
  height: 13px;
}
.caption-row textarea {
  min-height: 50px;
  padding: 7px 8px;
  font-size: 10px;
  line-height: 1.6;
  border-color: #dce4ce;
  border-radius: 4px;
}
.empty-captions {
  font-size: 10px;
  color: #9aa58c;
  padding: 9px 0;
}
.add-caption {
  font-size: 9px;
  color: #778b5b;
  text-decoration: none;
  margin-top: 2px;
}
.add-caption .icon {
  width: 13px;
  height: 13px;
}
.editor-actions {
  display: flex;
  gap: 8px;
  margin-top: 17px;
}
.editor-actions .button {
  min-width: 0;
  padding: 10px 12px;
  font-size: 9px;
  min-height: 40px;
  white-space: normal;
  flex: 1;
}
.editor-actions .icon {
  width: 14px;
  height: 14px;
}
.inline-error {
  padding: 10px 12px;
  margin-top: 12px;
  border: 1px solid #e9cfc1;
  border-radius: 6px;
  background: var(--red-soft);
  font-size: 11px;
  color: var(--red);
  line-height: 1.7;
}
.reload-clip {
  color: var(--red);
  font-size: 10px;
  justify-content: flex-start;
}
.no-clips {
  text-align: center;
  padding: 65px 20px;
  color: #9da88c;
}
.no-clips>.icon {
  width: 32px;
  height: 32px;
  stroke-width: 1;
  margin-bottom: 18px;
}
.no-clips h2 {
  font-size: 16px;
  color: #6d7e57;
}
.no-clips p {
  font-size: 12px;
  margin-top: 12px;
}
.dialog {
  border: 1px solid #d7ddca;
  border-radius: 12px;
  background: var(--paper);
  padding: 27px;
  width: min(600px,calc(100% - 30px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  box-shadow: 0 30px 100px #0f180c30;
  color: var(--ink);
}
.dialog::backdrop {
  background: #17201485;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
}
.dialog-heading h2 {
  font-family: var(--display);
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 600;
  margin-top: 10px;
}
.dialog-heading h2 span {
  color: #8ca641;
}
.dialog-heading .eyebrow {
  font-size: 8px;
  letter-spacing: .8px;
}
.source-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  margin-bottom: 17px;
  border: 1px solid #dce2d0;
  border-radius: 9px;
  background: #edf1e5;
}
.source-mode button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 12px;
  color: #667853;
}
.source-mode button[aria-pressed="true"] {
  background: var(--paper);
  box-shadow: 0 1px 4px #26331b14;
  color: var(--ink);
  font-weight: 600;
}
.url-source-fields {
  padding: 17px;
  border: 1px solid #dce2d0;
  border-radius: 8px;
  background: #edf1e5;
}
.url-source-fields input {
  font-size: 16px;
}
.url-source-fields .field-help {
  margin-top: 10px;
}
.source-youtube-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #dce2d0;
  font-size: 10px;
  line-height: 1.7;
  color: #667853;
}
.drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px dashed #bac6a5;
  border-radius: 8px;
  background: #edf1e5;
  padding: 24px 15px;
  text-align: center;
  transition: background .15s,border-color .15s;
}
.drop-zone.dragging {
  background: #e5f4c5;
  border-color: #759643;
  outline: 3px solid #d4e7b5;
}
.drop-zone .upload-icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.2;
  color: #7b8d62;
  margin-bottom: 4px;
}
.drop-zone>strong {
  font-size: 12px;
  font-weight: 600;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.drop-zone>span {
  font-size: 9px;
  color: #8e9b7b;
}
.file-button {
  margin-top: 6px;
  min-height: 35px;
  padding: 7px 13px;
  font-size: 10px;
  cursor: pointer;
}
.drop-zone:has(input:focus-visible) {
  outline: 2px solid #629208;
  outline-offset: 4px;
}
.upload-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 21px;
}
.full-field {
  grid-column: 1/-1;
}
.upload-options input,.upload-options select {
  font-size: 11px;
}
.upload-language-note {
  font-size: 10px;
  line-height: 1.8;
  color: #8b9978;
  margin-top: 14px;
}
.rights-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  font-size: 10px;
  line-height: 1.7;
  color: #667853;
  cursor: pointer;
}
.rights-check input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  padding: 0;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: #708f3c;
}
.dialog-footer {
  border-top: 1px solid #dce2d0;
  margin-top: 22px;
  padding-top: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.dialog-footer>span {
  font-size: 9px;
  color: #92a07f;
}
.dialog-footer .button {
  font-size: 11px;
  padding: 12px 15px;
}
.dialog-footer .button .icon {
  width: 16px;
  height: 16px;
}
.upload-session {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid #dce2d0;
  border-radius: 8px;
  background: #edf1e5;
  color: #536642;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.upload-saved-options { margin-top: 7px; font-size: 11px; }
.upload-session-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; }
.upload-session-actions button,.file-button { min-height: 44px; }
.upload-session .field-help { margin-top: 8px; }
.upload-progress-wrap {
  margin-top: 20px;
}
.upload-progress-wrap>div {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #71865a;
  margin-bottom: 7px;
}
.upload-progress-wrap progress {
  display: block;
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  accent-color: #8daa57;
}
.upload-progress-wrap progress::-webkit-progress-bar {
  background: #dfe6d2;
}
.upload-progress-wrap progress::-webkit-progress-value {
  background: #8daa57;
}
.confirm-dialog {
  max-width: 425px;
  padding: 27px;
}
.confirm-dialog h2 {
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -.5px;
  margin-top: 13px;
}
.confirm-dialog p {
  font-size: 12px;
  line-height: 1.8;
  color: #7f8f6a;
  margin: 16px 0 25px;
  overflow-wrap: anywhere;
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.noscript {
  position: fixed;
  bottom: 15px;
  left: 15px;
  right: 15px;
  padding: 20px;
  background: #fff;
  color: var(--red);
  border: 1px solid var(--red);
  z-index: 20;
  text-align: center;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  50% {
    opacity: .35;
  }
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(12px) rotate(2deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(2deg);
  }
}
@media (min-width:1500px) {
  .main {
    padding: 0 65px;
  }
  .welcome-view {
    padding-top: 85px;
    gap: 65px;
  }
  .welcome-copy h1 {
    font-size: 83px;
  }
  .illustration-body {
    height: 270px;
  }
  .abstract-source {
    height: 182px;
    top: 42px;
  }
  .crop-outline {
    width: 135px;
    height: 240px;
    top: 12px;
  }
  .clips-workspace {
    grid-template-columns: 245px minmax(0,1fr);
    gap: 35px;
  }
  .editor-body {
    gap: 30px;
    padding: 27px;
  }
  .editor-form>fieldset>input {
    font-size: 13px;
  }
  .template-choice strong {
    font-size: 10px;
  }
  .template-choice small {
    font-size: 8px;
  }
  .caption-row textarea {
    font-size: 12px;
  }
  .caption-times input {
    font-size: 10px;
  }
  .editor-actions .button {
    font-size: 11px;
  }
}
@media (max-width:1200px) {
  .app-shell {
    grid-template-columns: 210px minmax(0,1fr);
  }
  .sidebar {
    padding: 28px 16px 20px;
  }
  .brand {
    font-size: 22px;
  }
  .main {
    padding: 0 30px;
  }
  .welcome-view {
    gap: 35px 25px;
    padding-top: 49px;
  }
  .welcome-copy h1 {
    font-size: 54px;
    letter-spacing: -2.8px;
  }
  .welcome-copy>p {
    font-size: 12px;
  }
  .welcome-copy .eyebrow {
    font-size: 8px;
  }
  .illustration-body {
    height: 210px;
    margin: 0 20px;
  }
  .abstract-source {
    height: 141px;
    top: 33px;
  }
  .crop-outline {
    width: 104px;
    height: 185px;
  }
  .illustration-topline {
    font-size: 7px;
    padding: 14px;
  }
  .workflow-strip {
    gap: 15px;
  }
  .workflow-strip>div {
    gap: 8px;
  }
  .workflow-strip h2 {
    font-size: 10px;
  }
  .workflow-strip p {
    font-size: 9px;
  }
  .welcome-bottom {
    flex-wrap: wrap;
    gap: 9px 14px;
  }
  .welcome-bottom p {
    order: 3;
    flex-basis: 100%;
  }
  .welcome-bottom .outlined-pill {
    margin-left: auto;
  }
  .clips-workspace {
    grid-template-columns: 180px minmax(0,1fr);
    gap: 16px;
  }
  .editor-body {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 17px;
  }
  .preview-column {
    display: grid;
    grid-template-columns: minmax(120px,.85fr) minmax(130px,1fr);
    column-gap: 15px;
    align-items: start;
  }
  .preview-tabs {
    grid-column: 1/-1;
  }
  .video-frame {
    grid-column: 1;
    grid-row: 2/6;
    max-width: 220px;
  }
  .button-preview {
    grid-column: 2;
    margin-top: 0;
    font-size: 9px;
    padding: 9px 7px;
    white-space: normal;
  }
  .preview-note {
    grid-column: 2;
    font-size: 9px;
  }
  .download-links {
    grid-column: 2;
    margin-top: 12px;
  }
  .caption-overlay {
    font-size: 14px;
  }
  .editor-form {
    border-top: 1px solid #e3e9d9;
    padding-top: 19px;
  }
  .caption-list {
    max-height: 290px;
  }
  .template-choice {
    padding: 10px;
  }
  .template-choice strong {
    font-size: 10px;
  }
  .template-choice small {
    font-size: 8px;
  }
  .editor-actions .button {
    font-size: 10px;
  }
  .editor-form>fieldset>input {
    font-size: 12px;
  }
  .caption-row textarea {
    font-size: 11px;
  }
  .caption-times input {
    font-size: 9px;
  }
}
@media (max-width:900px) {
  .app-shell {
    grid-template-columns: 185px minmax(0,1fr);
  }
  .sidebar {
    padding: 26px 13px 19px;
  }
  .brand {
    font-size: 19px;
    gap: 7px;
  }
  .brand-mark {
    gap: 2px;
  }
  .brand-mark span {
    width: 4px;
    height: 18px;
  }
  .brand-mark span:first-child {
    height: 12px;
    margin-top: 6px;
  }
  .workspace-tag {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .sidebar-upload {
    font-size: 11px;
    padding: 11px 12px;
  }
  .main {
    padding: 0 24px;
  }
  .welcome-view {
    grid-template-columns: 1fr;
    gap: 33px;
    padding-top: 30px;
  }
  .welcome-copy {
    padding-top: 0;
  }
  .welcome-copy h1 {
    font-size: 58px;
  }
  .welcome-copy>p {
    max-width: 390px;
  }
  .editing-illustration {
    max-width: 340px;
    margin: 0 auto;
    width: 90%;
    transform: rotate(2deg);
  }
  .illustration-body {
    height: 210px;
  }
  .workflow-strip {
    margin-top: 0;
    gap: 15px;
    padding-top: 25px;
  }
  .workflow-strip>div {
    display: block;
  }
  .step-number {
    margin-bottom: 12px;
    width: 26px;
  }
  .workflow-strip h2 {
    line-height: 1.5;
  }
  .welcome-bottom {
    margin-top: 0;
  }
  .clips-workspace {
    grid-template-columns: 1fr;
  }
  .clips-column {
    min-width: 0;
  }
  .selection-note {
    margin-bottom: 14px;
  }
  .clip-list {
    flex-direction: row;
    overflow-x: auto;
    padding: 1px 1px 8px;
    scroll-snap-type: x proximity;
  }
  .clip-row { flex: 0 0 235px; scroll-snap-align: start; }
  .clip-row .clip-card { min-width: 185px; max-width: 185px; }
  .batch-controls { max-width: 100%; }
  .batch-selection-actions { justify-content: space-between; }
  .clip-card {
    min-width: 185px;
    max-width: 185px;
    scroll-snap-align: start;
    padding: 12px;
  }
  .clip-card-reason {
    display: none;
  }
  .clip-card-title {
    font-size: 11px;
  }
  .editor-body {
    grid-template-columns: minmax(150px,.8fr) minmax(205px,1fr);
    gap: 17px;
  }
  .preview-column {
    display: block;
  }
  .video-frame {
    max-width: none;
  }
  .button-preview {
    margin-top: 10px;
    font-size: 9px;
  }
  .editor-form {
    border: 0;
    padding-top: 0;
  }
  .template-choice {
    padding: 8px 5px;
    gap: 5px;
  }
  .template-mini {
    width: 17px;
    height: 29px;
  }
  .template-choice strong {
    font-size: 8px;
  }
  .template-choice small {
    font-size: 6px;
  }
  .caption-overlay {
    font-size: 12px;
  }
  .editor-actions {
    flex-direction: column;
  }
  .editor-actions .button {
    font-size: 10px;
  }
  .editor-topline {
    padding: 12px 16px;
  }
  .dirty-state {
    font-size: 8px;
  }
  .project-header h1 {
    font-size: 29px;
  }
  .analysis-status {
    padding: 18px;
    gap: 12px;
  }
  .analysis-status h2 {
    font-size: 12px;
  }
  .analysis-status p {
    font-size: 10px;
  }
  .analysis-status .outlined-pill {
    display: none;
  }
  .project-error {
    display: block;
  }
  .project-error .button {
    margin-top: 15px;
  }
  .main-footer>span:last-child {
    font-size: 8px;
  }
}
@media (max-width:680px) {
  .app-shell {
    display: flex;
    flex-direction: column;
  }
  .sidebar {
    position: relative;
    top: auto;
    height: auto;
    padding: 20px 20px 13px;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 0 18px;
  }
  .brand {
    font-size: 24px;
    align-self: center;
    gap: 9px;
    max-width: max-content;
  }
  .brand-mark span {
    width: 5px;
    height: 20px;
  }
  .brand-mark span:first-child {
    height: 14px;
  }
  .workspace-tag {
    grid-column: 1;
    margin: 8px 0 0;
    font-size: 6px;
    letter-spacing: 1.5px;
  }
  .sidebar-upload {
    grid-column: 2;
    grid-row: 1/3;
    width: auto;
    align-self: center;
    padding: 10px 12px;
    min-height: 40px;
    font-size: 10px;
  }
  .sidebar-upload .icon {
    width: 15px;
    height: 15px;
  }
  .key-hint {
    display: none;
  }
  .sidebar-section-title {
    grid-column: 1/-1;
    margin: 21px 0 9px;
  }
  .sidebar-section-title h2 {
    font-size: 9px;
  }
  .sidebar-section-title .count {
    height: 17px;
    min-width: 17px;
    font-size: 8px;
  }
  .project-list {
    grid-column: 1/-1;
    display: flex;
    flex-direction: row;
    gap: 7px;
    margin: 0;
    padding: 0 0 2px;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: 66px;
    scroll-snap-type: x proximity;
  }
  .sidebar-empty {
    font-size: 10px;
    margin: 1px 0 6px;
    color: #89977c;
  }
  .project-nav-item {
    width: auto;
    min-width: 145px;
    max-width: 185px;
    padding: 8px 10px;
    margin: 0;
    gap: 8px;
    scroll-snap-align: start;
  }
  .project-nav-icon {
    width: 23px;
    height: 28px;
  }
  .project-nav-title {
    font-size: 9px;
  }
  .project-nav-subtitle {
    font-size: 7px;
    margin-top: 2px;
  }
  .nav-busy-dot {
    margin-left: 3px;
  }
  .sidebar-bottom {
    display: none;
  }
  .main {
    padding: 0 20px;
    min-height: calc(100vh - 173px);
  }
  .topbar {
    min-height: 56px;
  }
  .breadcrumb {
    font-size: 9px;
    gap: 8px;
  }
  .breadcrumb strong {
    max-width: 190px;
  }
  .connection-status {
    font-size: 7px;
    gap: 5px;
  }
  .welcome-view {
    padding-top: 36px;
    gap: 35px;
  }
  .welcome-copy .eyebrow {
    font-size: 8px;
  }
  .welcome-copy h1 {
    font-size: 60px;
    letter-spacing: -3px;
    margin-top: 17px;
  }
  .welcome-copy>p {
    font-size: 12px;
    line-height: 1.8;
    max-width: 310px;
    margin: 22px 0 25px;
  }
  .welcome-copy .button-large {
    min-height: 48px;
    font-size: 12px;
    padding: 12px 18px;
  }
  .welcome-footnote {
    font-size: 9px;
    margin-top: 14px;
  }
  .editing-illustration {
    width: 91%;
    max-width: 360px;
    margin: 1px auto 0;
  }
  .illustration-body {
    height: 220px;
  }
  .abstract-source {
    height: 148px;
    top: 34px;
  }
  .crop-outline {
    height: 196px;
    width: 110px;
  }
  .workflow-strip {
    gap: 13px;
    padding-top: 25px;
    margin-top: 7px;
  }
  .workflow-strip h2 {
    font-size: 9px;
    line-height: 1.5;
  }
  .workflow-strip p {
    font-size: 8px;
    line-height: 1.8;
  }
  .step-number {
    font-size: 8px;
    width: 23px;
    min-width: 23px;
    height: 23px;
    margin-bottom: 9px;
  }
  .welcome-bottom {
    padding: 15px;
    gap: 8px;
  }
  .welcome-bottom>.tiny-label {
    font-size: 6px;
  }
  .welcome-bottom p {
    font-size: 9px;
  }
  .welcome-bottom .outlined-pill {
    font-size: 6px;
    padding: 4px 6px;
  }
  .main-footer {
    min-height: 64px;
    margin-top: 20px;
  }
  .main-footer>span:last-child {
    font-size: 7px;
    max-width: 180px;
    text-align: right;
  }
  .project-view {
    padding: 25px 0 20px;
  }
  .project-header {
    margin-bottom: 22px;
  }
  .project-header h1 {
    font-size: 29px;
    margin: 10px 0;
  }
  .project-header .eyebrow {
    font-size: 8px;
  }
  .project-meta {
    font-size: 9px;
    line-height: 1.8;
  }
  .delete-project {
    width: 36px;
    height: 36px;
  }
  .delete-project .icon {
    width: 16px;
    height: 16px;
  }
  .analysis-status {
    padding: 17px;
    align-items: flex-start;
  }
  .analysis-status p {
    line-height: 1.8;
  }
  .analysis-status .spinner {
    width: 19px;
    height: 19px;
  }
  .section-heading h2 {
    font-size: 12px;
  }
  .selection-note {
    font-size: 9px;
    line-height: 1.8;
    max-width: 330px;
  }
  .clip-card {
    min-width: 170px;
    max-width: 170px;
  }
  .clip-row { flex-basis: 220px; }
  .clip-row .clip-card { min-width: 170px; max-width: 170px; }
  .clip-editor {
    border-radius: 8px;
  }
  .editor-topline {
    min-height: 47px;
    gap: 8px;
    padding: 12px 14px;
  }
  .editor-label {
    gap: 7px;
  }
  .editor-label .tiny-label {
    font-size: 7px;
    letter-spacing: .6px;
  }
  .clip-state {
    font-size: 8px;
  }
  .dirty-state {
    font-size: 7px;
  }
  .editor-body {
    display: block;
    padding: 14px;
  }
  .preview-column {
    display: grid;
    grid-template-columns: minmax(120px,.9fr) minmax(130px,1fr);
    gap: 0 13px;
    align-items: start;
  }
  .preview-tabs {
    grid-column: 1/-1;
    margin-bottom: 11px;
  }
  .video-frame {
    grid-column: 1;
    grid-row: 2/6;
    max-width: 190px;
  }
  .button-preview {
    grid-column: 2;
    margin-top: 0;
    font-size: 9px;
    padding: 9px 7px;
    min-height: 42px;
    white-space: normal;
  }
  .button-preview .icon {
    width: 12px;
    height: 12px;
  }
  .preview-note {
    grid-column: 2;
    margin-top: 10px;
    font-size: 8px;
    line-height: 1.8;
  }
  .download-links {
    grid-column: 2;
    padding-top: 11px;
    margin-top: 12px;
  }
  .download-links>.button {
    font-size: 10px;
    padding: 10px;
    min-height: 39px;
    gap: 6px;
  }
  .download-links>.button .icon {
    width: 14px;
    height: 14px;
  }
  .download-links>div {
    gap: 8px;
    margin: 10px 0;
  }
  .download-links>div a {
    font-size: 8px;
  }
  .download-links p {
    font-size: 7px;
  }
  .caption-overlay {
    font-size: 12px;
    bottom: 20%;
  }
  .preview-badge {
    font-size: 5px;
    left: 6px;
    top: 7px;
    letter-spacing: .3px;
  }
  .editor-form {
    border-top: 1px solid #e2e8d7;
    padding-top: 20px;
    margin-top: 22px;
  }
  .field-label {
    font-size: 10px;
  }
  .editor-form>fieldset>input {
    font-size: 12px;
  }
  .timing-fields input {
    font-size: 12px;
    min-height: 42px;
  }
  .field-help {
    font-size: 9px;
  }
  .template-choice {
    padding: 11px 10px;
    gap: 10px;
  }
  .template-mini {
    width: 24px;
    height: 39px;
  }
  .template-choice strong {
    font-size: 10px;
  }
  .template-choice small {
    font-size: 8px;
  }
  .caption-list {
    max-height: 335px;
  }
  .caption-row textarea {
    font-size: 12px;
    min-height: 59px;
  }
  .caption-times input {
    font-size: 10px;
    min-height: 33px;
  }
  .caption-times {
    grid-template-columns: 1fr 10px 1fr 30px;
  }
  .remove-caption {
    width: 30px;
    height: 33px;
  }
  .caption-help {
    font-size: 9px;
  }
  .editor-actions {
    flex-direction: row;
    gap: 9px;
    margin-top: 19px;
  }
  .editor-actions .button {
    font-size: 10px;
    min-height: 44px;
    padding: 11px 9px;
  }
  .add-caption {
    font-size: 10px;
    min-height: 44px;
  }
  .project-error h2 {
    font-size: 13px;
  }
  .project-error p {
    font-size: 11px;
  }
  .dialog {
    padding: 22px 19px;
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 10px;
  }
  .dialog-heading h2 {
    font-size: 27px;
  }
  .dialog-heading .eyebrow {
    font-size: 7px;
  }
  .dialog-heading .icon-button {
    width: 32px;
    height: 32px;
  }
  .drop-zone {
    padding: 22px 12px;
  }
  .drop-zone>strong {
    font-size: 12px;
  }
  .drop-zone>span {
    font-size: 8px;
  }
  .upload-options {
    gap: 15px 12px;
  }
  .upload-options input,.upload-options select {
    font-size: 11px;
    padding: 11px 9px;
  }
  .rights-check {
    font-size: 10px;
    gap: 9px;
  }
  .upload-language-note {
    font-size: 9px;
  }
  .dialog-footer {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 14px;
  }
  .dialog-footer>.button {
    width: 100%;
    min-height: 45px;
  }
  .dialog-footer>span {
    text-align: center;
    font-size: 8px;
  }
  .confirm-dialog {
    max-width: 400px;
    padding: 24px;
  }
  .confirm-dialog h2 {
    font-size: 22px;
  }
  .global-alert {
    font-size: 10px;
    padding-left: 12px;
  }
}
@media (max-width:360px) {
  .main {
    padding: 0 15px;
  }
  .sidebar {
    padding-left: 15px;
    padding-right: 15px;
  }
  .welcome-copy h1 {
    font-size: 54px;
  }
  .welcome-bottom .outlined-pill {
    display: none;
  }
  .editor-body {
    padding: 11px;
  }
  .preview-column {
    grid-template-columns: minmax(110px,.9fr) minmax(115px,1fr);
    gap: 0 10px;
  }
  .template-choice {
    padding: 9px 7px;
    gap: 7px;
  }
  .template-choice strong {
    font-size: 9px;
  }
  .template-choice small {
    font-size: 7px;
  }
  .editor-label .tiny-label {
    font-size: 6px;
  }
  .editor-actions .button {
    font-size: 9px;
  }
  .breadcrumb strong {
    max-width: 155px;
  }
}
@media (prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Account access uses the studio's existing ink, paper and lime palette. */
.auth-view { display: grid; grid-template-columns: minmax(320px,.95fr) minmax(400px,1.05fr); min-height: 100dvh; }
.auth-intro { display: flex; flex-direction: column; justify-content: space-between; padding: 44px 54px 32px; background: var(--ink); color: var(--paper); }
.auth-intro .brand { width: fit-content; }
.auth-statement { max-width: 460px; padding: 64px 0; }
.auth-statement .tiny-label { color: #a1aa8d; }
.auth-statement h1 { margin: 24px 0; font-family: var(--display); font-size: clamp(64px,6.4vw,104px); font-weight: 750; letter-spacing: -.075em; line-height: .98; }
.auth-statement h1>span { color: var(--lime); }
.auth-statement p { max-width: 340px; color: #aeb5a4; font-size: 15px; line-height: 1.8; }
.auth-cut { display: flex; align-items: center; gap: 18px; margin-top: 46px; font-family: var(--mono); font-size: 10px; color: #b4c08f; }
.auth-cut>span:nth-child(2) { height: 38px; flex: 1; background: repeating-linear-gradient(90deg,#9eb56c 0 1px,transparent 1px 7px),#303a26; border-left: 4px solid var(--lime); }
.auth-local-note { color: #8d967f; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
.auth-main { display: grid; place-items: center; padding: 54px 38px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h2 { margin: 17px 0 14px; font-family: var(--display); font-size: clamp(32px,3.3vw,46px); font-weight: 700; letter-spacing: -.055em; }
.auth-card>p { color: var(--muted); line-height: 1.8; }
#auth-form { margin-top: 30px; }
#auth-form .field-label { display: block; margin: 18px 0 7px; font-size: 12px; }
#auth-form input { min-height: 49px; font-size: 16px; }
#auth-form .field-help { margin-top: 9px; font-size: 11px; }
#auth-submit { width: 100%; margin-top: 26px; }
#retry-auth { margin-top: 24px; }
.auth-card .auth-footnote { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; font-size: 11px; }
.account-block { margin: 18px 0 22px; padding: 14px 0; border-top: 1px solid #343c2c; border-bottom: 1px solid #343c2c; min-width: 0; }
.account-name,.account-email { display: block; overflow-wrap: anywhere; }
.account-name { color: #e8eddf; font-size: 12px; font-weight: 650; }
.account-email { color: #969f88; font-size: 10px; margin-top: 3px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 7px 16px; margin-top: 8px; }
.account-action { border: 0; border-radius: 3px; padding: 5px 0; min-height: 36px; background: transparent; color: #cbd7af; font-size: 10px; text-align: left; }
.account-action:hover { color: var(--lime); }
a.account-action { display: inline-flex; align-items: center; text-decoration: none; }
.ai-settings-dialog { max-width: 650px; }
.ai-settings-dialog .dialog-heading { align-items: start; }
.ai-settings-dialog .dialog-heading h2 { font-size: clamp(25px,6vw,29px); overflow-wrap: anywhere; }
.ai-settings-dialog .dialog-heading .icon-button { flex-shrink: 0; }
.ai-settings-intro { color: var(--muted); font-size: 12px; line-height: 1.8; }
.ai-provider-grid { display: grid; gap: 14px; margin-top: 20px; }
.ai-provider-card { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 8px; background: #eeefe7; }
.ai-provider-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ai-provider-heading h3 { font-family: var(--display); font-size: 21px; letter-spacing: -.04em; }
.ai-provider-status { flex-shrink: 0; font-size: 11px; color: var(--muted); }
.ai-provider-status.saved { color: #47602a; }
.ai-provider-model { min-height: 16px; margin-top: 6px; color: var(--muted); font-family: var(--mono); font-size: 10px; overflow-wrap: anywhere; }
.ai-provider-card .field-label { display: block; margin: 16px 0 7px; font-size: 12px; }
.ai-provider-card input { min-width: 0; min-height: 46px; font-size: 16px; }
.ai-provider-actions { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; margin-top: 12px; }
.ai-provider-actions .button { min-height: 44px; padding: 10px; font-size: 11px; white-space: normal; }
.ai-settings-help { margin-top: 17px; font-size: 11px; line-height: 1.8; }
.ai-settings-refresh { min-height: 44px; margin-top: 12px; font-size: 12px; }
@media (min-width:600px) { .ai-provider-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }
.users-dialog { max-width: 570px; }
.users-description { color: var(--muted); font-size: 12px; line-height: 1.8; margin-bottom: 20px; }
.users-list { display: grid; gap: 8px; max-height: 200px; overflow-y: auto; margin-bottom: 25px; }
.user-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; }
.user-row strong,.user-row small { display: block; overflow-wrap: anywhere; }
.user-row strong { font-size: 12px; }
.user-row small { font-size: 10px; color: var(--muted); margin-top: 2px; }
.user-row { flex-wrap: wrap; }
.user-ai-share { flex-basis: 100%; display: flex; align-items: center; justify-content: flex-start; gap: 8px; font-size: 11px; }
.user-ai-share input { width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; flex: none; }
.user-row>span { font-family: var(--mono); font-size: 9px; color: #697b4c; }
#create-user-fields legend { font-weight: 650; margin-bottom: 5px; font-size: 14px; }
#create-user-fields .field-label { display: block; margin: 16px 0 6px; font-size: 12px; }
#create-user-fields input { font-size: 16px; }
#create-user-fields .field-help { margin-top: 9px; font-size: 11px; }
#create-user-submit { margin-top: 20px; }
.users-success { color: #47602a; font-size: 12px; margin-top: 15px; }
@media (max-width:760px) {
  .auth-view { grid-template-columns: minmax(0,1fr); }
  .auth-intro { padding: 28px 24px 25px; }
  .auth-statement { padding: 34px 0 8px; max-width: 100%; }
  .auth-statement h1 { font-size: 58px; margin: 14px 0; }
  .auth-statement h1 br { display: none; }
  .auth-statement h1>span::before { content: " "; }
  .auth-statement p { max-width: 100%; font-size: 13px; }
  .auth-cut,.auth-local-note { display: none; }
  .auth-main { padding: 35px 24px 45px; }
  .auth-card { max-width: 480px; }
  .auth-card h2 { font-size: 33px; }
  .auth-card>p { font-size: 13px; }
  #auth-form { margin-top: 20px; }
  .account-block { grid-column: 1/-1; margin: 15px 0 5px; padding: 12px 0; }
  .account-actions { margin-top: 5px; }
  .account-action { font-size: 11px; min-height: 38px; }
  .account-email { font-size: 11px; }
  .users-dialog { padding: 22px; }
  .user-row { align-items: start; }
  #create-user-submit { width: 100%; }
}

/* Native publishing dialogs keep metadata and the confirmed queue in the current workspace. */
.billing-dialog { max-width: 650px; }
.billing-dialog .dialog-heading { align-items: start; }
.billing-dialog .dialog-heading h2 { font-size: clamp(24px,5.5vw,29px); overflow-wrap: anywhere; }
.billing-dialog .dialog-heading .icon-button { flex-shrink: 0; }
.billing-intro { color: var(--muted); font-size: 12px; line-height: 1.8; }
.billing-plan-heading { margin-top: 24px; }
.billing-plan-heading .tiny-label { font-size: 9px; color: #637d43; }
.billing-plan-heading h3 { font-family: var(--display); font-size: 24px; letter-spacing: -.04em; margin-top: 8px; }
.billing-period { font-family: var(--mono); color: var(--muted); font-size: 10px; margin-top: 8px; line-height: 1.7; }
.billing-metrics { display: grid; gap: 1px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 22px 0 12px; background: var(--line); }
.billing-metrics>div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; min-width: 0; background: #eeefe7; }
.billing-metrics dt { color: var(--muted); font-size: 11px; }
.billing-metrics dd { font-family: var(--mono); font-size: 18px; margin: 0; overflow-wrap: anywhere; }
.billing-dialog .field-help { font-size: 11px; line-height: 1.8; }
.billing-subscription { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 22px; font-size: 12px; line-height: 1.8; }
.billing-actions { display: grid; gap: 10px; margin-top: 22px; }
.billing-actions .button { min-height: 46px; font-size: 12px; white-space: normal; }
.billing-actions .text-button { min-height: 44px; justify-content: center; font-size: 11px; }
.billing-footnote { margin-top: 18px; color: var(--muted); }
.quota-usage { min-height: 44px; font-size: 12px; margin-top: 8px; }
.global-alert { flex-wrap: wrap; }
.global-alert>span { flex: 1; min-width: min(160px,100%); }
.global-alert .text-button { min-height: 44px; font-size: 11px; color: inherit; }
@media (min-width:480px) {
  .billing-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .billing-metrics>div { display: block; }
  .billing-metrics dd { margin-top: 9px; font-size: 20px; }
  .billing-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #refresh-billing { grid-column: 1/-1; }
}
.topbar-actions { display: flex; align-items: center; gap: 18px; min-width: 0; }
.channels-button { min-height: 40px; padding: 8px 12px; font-size: 11px; white-space: nowrap; }
.prepare-publication { width: 100%; margin-top: 14px; min-height: 44px; font-size: 10px; white-space: normal; }
.publishing-dialog { max-width: 860px; }
.publication-dialog { max-width: 880px; }
.publishing-intro { max-width: 640px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.publishing-notice { padding: 12px 14px; margin: 16px 0; background: var(--lime-soft); border-left: 3px solid #93a76f; border-radius: 0 6px 6px 0; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.publishing-section { padding-top: 25px; margin-top: 25px; border-top: 1px solid var(--line); }
.publishing-section h3 { font-family: var(--display); font-size: 19px; letter-spacing: -.035em; }
.publishing-section .section-heading { margin-bottom: 12px; }
.publishing-section>.field-help { margin: 12px 0; font-size: 11px; line-height: 1.8; }
.provider-list,.channel-list,.publication-list { display: grid; gap: 10px; min-width: 0; }
.channel-list { margin-top: 15px; }
.provider-row,.channel-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.provider-row>div,.channel-row>div { min-width: 0; }
.provider-row strong,.channel-row strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.provider-row p,.channel-row p { color: var(--muted); font-size: 11px; margin-top: 4px; line-height: 1.7; overflow-wrap: anywhere; }
.channel-row small { display: block; font-family: var(--mono); color: var(--muted); margin-top: 5px; overflow-wrap: anywhere; font-size: 9px; }
.provider-row .button,.channel-row .button,.publication-actions .button { font-size: 11px; min-height: 44px; padding: 10px 12px; }
.provider-row .outlined-pill { white-space: nowrap; flex-shrink: 0; font-size: 7px; }
.publishing-empty { padding: 20px 16px; color: var(--muted); background: #eeefe7; border-radius: 8px; font-size: 12px; line-height: 1.8; }
.publication-row { border: 1px solid var(--line); border-radius: 8px; padding: 18px; overflow-wrap: anywhere; }
.publication-row-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.publication-row h4 { margin: 0; font-size: 14px; font-weight: 650; }
.publication-status { font-size: 10px; color: #637d43; flex-shrink: 0; max-width: 50%; text-align: right; }
.publication-status.outcome_unknown,.publication-status.failed { color: var(--red); }
.publication-status.published { font-weight: 650; }
.publication-status.data_erased { color: var(--muted); }
.social-data-details { border: 1px solid var(--line); border-radius: 8px; margin: 18px 0 24px; min-width: 0; }
.social-data-details>summary { min-height: 44px; padding: 14px 16px; cursor: pointer; font-size: 13px; font-weight: 650; }
.social-data-details>summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.social-data-body { padding: 0 16px 16px; min-width: 0; }
.social-data-body>.text-button { min-height: 44px; margin-top: 8px; }
.social-data-list { display: grid; gap: 12px; margin-top: 12px; }
.social-data-provider { border-top: 1px solid var(--line); padding-top: 14px; min-width: 0; overflow-wrap: anywhere; }
.social-data-provider h4 { margin: 0; font-size: 13px; }
.social-data-provider .field-help { font-size: 11px; line-height: 1.8; margin: 8px 0; }
.social-data-provider>.button,.social-data-operation>.button { min-height: 44px; margin: 8px 0; white-space: normal; text-align: left; font-size: 11px; }
.social-data-operation { border-left: 2px solid var(--line); margin-top: 14px; padding-left: 12px; }
.social-data-operation>strong { display: block; font-size: 12px; }
.publication-meta { font-size: 11px; color: var(--muted); line-height: 1.8; margin-top: 7px; }
.publication-link { display: inline-block; font-size: 12px; margin-top: 12px; min-height: 36px; text-underline-offset: 3px; }
.publication-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 16px 0 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.publication-metrics dt { color: var(--muted); font-size: 10px; }
.publication-metrics dd { font-family: var(--mono); margin: 3px 0 0; font-size: 17px; }
.publication-row .field-help { font-size: 10px; }
.publication-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.publication-history { border-top: 1px solid var(--line); margin-top: 16px; min-width: 0; }
.publication-history>summary { min-height: 44px; padding: 14px 0 10px; cursor: pointer; font-size: 12px; font-weight: 650; }
.publication-history>summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
.publication-history-body { min-width: 0; padding-bottom: 4px; }
.history-samples { display: grid; gap: 10px; list-style: none; margin: 12px 0; padding: 0; }
.history-sample { min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 12px; background: #f5f5ef; }
.history-time { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.history-metrics { margin: 8px 0 0; padding-top: 9px; }
.history-metrics dd { font-size: 14px; overflow-wrap: anywhere; }
.publication-history-body>.button { min-height: 44px; margin-top: 8px; font-size: 11px; }
.clip-order-label { display: block; font-size: 11px; color: var(--muted); margin: 15px 0 7px; }
.clip-order { width: 100%; min-height: 44px; margin-bottom: 14px; font-size: 13px; }
.publication-draft-schedule { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.publication-draft-schedule .field-label,.publication-draft-schedule p { grid-column: 1/-1; }
.publication-draft-schedule .field-label { font-size: 11px; }
.publication-draft-schedule .button { font-size: 11px; }
.publication-compose { display: grid; grid-template-columns: minmax(150px,.65fr) minmax(0,1fr); gap: 28px; align-items: start; }
.publication-preview { min-width: 0; }
.publication-preview video { display: block; width: 100%; max-height: 420px; aspect-ratio: 9/16; object-fit: contain; background: var(--ink); border-radius: 7px; }
.publication-preview .field-help { margin-top: 10px; line-height: 1.8; font-size: 11px; overflow-wrap: anywhere; }
#publication-fields>.field-label,#publication-time-fields>.field-label { display: block; margin: 19px 0 7px; font-size: 12px; }
#publication-fields>.field-label:first-of-type { margin-top: 0; }
#publication-fields input,#publication-fields select,#publication-fields textarea { font-size: 16px; }
#publication-fields .field-help { margin-top: 8px; font-size: 11px; line-height: 1.8; }
#publication-manage-channels { min-height: 44px; font-size: 11px; }
#publication-fields .rights-check { margin-top: 22px; font-size: 12px; }
#save-publication { margin-top: 22px; width: 100%; min-height: 46px; font-size: 12px; }
.provider-fields { border: 0; min-width: 0; margin: 0; padding: 0; }
.provider-fields>.field-label { display: block; margin: 19px 0 7px; font-size: 12px; }
.creator-review { border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: 6px; padding: 14px; margin-top: 18px; background: #f0f1e9; }
.creator-review strong { display: block; margin-top: 7px; font-size: 16px; overflow-wrap: anywhere; }
.creator-review .text-button { min-height: 44px; margin-top: 8px; font-size: 11px; text-align: left; }
.native-interactions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
#publication-fields .native-interactions .rights-check { margin-top: 12px; min-height: 44px; font-size: 11px; align-items: center; }
#publication-fields input[type=checkbox]:disabled+span { opacity: .48; }
.commercial-fields { margin-top: 14px; padding: 14px; background: #f0f1e9; border: 1px solid var(--line); border-radius: 6px; }
.commercial-fields legend { font-size: 11px; padding: 0 5px; }
#publication-fields .commercial-fields .rights-check { margin-top: 10px; }
#publication-fields .rights-check a { text-underline-offset: 3px; }
#publication-fields .media-sharing-check { padding-top: 17px; border-top: 1px solid var(--line); }
#publication-caption-count { font-family: var(--mono); white-space: nowrap; }
@media (max-width:680px) {
  .topbar { flex-wrap: wrap; gap: 10px; padding: 12px 0; }
  .topbar-actions { gap: 10px; margin-left: auto; }
  .channels-button { font-size: 10px; min-height: 42px; padding: 9px 10px; }
  .topbar-actions .connection-status { display: none; }
  .breadcrumb strong { max-width: 95px; }
  .prepare-publication { grid-column: 1/-1; margin-top: 16px; font-size: 11px; }
  .publication-compose { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .publication-preview { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 14px; align-items: end; }
  .publication-preview video { max-height: 160px; }
  .publication-preview .field-help { font-size: 10px; }
  .publishing-intro { font-size: 12px; }
  .publishing-notice { font-size: 11px; padding: 11px; }
  .provider-row,.channel-row { flex-wrap: wrap; padding: 13px; gap: 11px; }
  .provider-row>div,.channel-row>div { width: 100%; }
  .provider-row .button,.channel-row .button { width: 100%; }
  .publication-row { padding: 14px; }
  .publication-row-heading { display: block; }
  .publication-status { display: block; margin-top: 8px; max-width: 100%; text-align: left; font-size: 11px; }
  .publication-actions .button { flex: 1; }
  .publication-draft-schedule { grid-template-columns: minmax(0,1fr); }
  .publication-draft-schedule .button { min-height: 44px; }
}
