/* Direction: Cutroom — a dark edit-suite, charcoal canvas, signal-orange accent, grotesk display */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  color-scheme: dark;
  --canvas: #0e0f13;
  --surface: #16181e;
  --surface-2: #1e2129;
  --border: #2a2d37;
  --border-strong: #56575a;
  --ink: #eceae4;
  --muted: #9a9ca6;
  --accent: #ff6a3d;
  --accent-hover: #ff805a;
  --accent-ink: #0e0f13;
  --accent-text: #ff8a63;
  --accent-strong: #ff6a3d;
  --accent-soft: #43231c;
  --accent-border: #7a3826;
  --success: #3fcf8e;
  --success-ink: #ffffff;
  --success-soft: #19392e;
  --success-strong: #3fcf8e;
  --warning: #f5b83d;
  --warning-ink: #ffffff;
  --warning-soft: #41341c;
  --warning-strong: #f5b83d;
  --danger: #ff5c6c;
  --danger-ink: #ffffff;
  --danger-soft: #432027;
  --danger-strong: #ff5c6c;
  --chart-1: #ff6a3d;
  --chart-2: #d9bb0b;
  --chart-3: #239f65;
  --chart-4: #0bcaee;
  --chart-5: #6c72f4;
  --chart-6: #fe88e1;

  --x-on-photo: #ffffff;
  --x-band: #2a120a;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --display-weight: 600;
  --display-tracking: -0.03em;
  --radius-card: 14px;
  --radius-btn: 10px;
  --radius-input: 10px;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="light"] {
  color-scheme: light;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f3f3;
  --border: #ddddde;
  --border-strong: #b7b7b8;
  --ink: #0e0f13;
  --muted: #6e6f71;
  --accent: #ff6a3d;
  --accent-hover: #d95a34;
  --accent-ink: #0e0f13;
  --accent-text: #b74c2c;
  --accent-strong: #a84628;
  --accent-soft: #ffeae4;
  --accent-border: #ffbca8;
  --success: #3fcf8e;
  --success-ink: #0e0f13;
  --success-soft: #e8f9f1;
  --success-strong: #267d56;
  --warning: #f5b83d;
  --warning-ink: #0e0f13;
  --warning-soft: #fef6e8;
  --warning-strong: #886622;
  --danger: #ff5c6c;
  --danger-ink: #0e0f13;
  --danger-soft: #ffebed;
  --danger-strong: #b7424d;
  --chart-1: #f86336;
  --chart-2: #a89120;
  --chart-3: #18995f;
  --chart-4: #219bb6;
  --chart-5: #666bed;
  --chart-6: #df61c3;
}

.tl-ruler {
  background-image: repeating-linear-gradient(to right, color-mix(in srgb, var(--ink) 28%, transparent) 0 1px, transparent 1px 160px),
    repeating-linear-gradient(to right, color-mix(in srgb, var(--ink) 12%, transparent) 0 1px, transparent 1px 32px);
  background-size: 100% 100%, 100% 40%;
  background-repeat: no-repeat, repeat-x;
  background-position: 0 0, 0 100%;
  cursor: col-resize;
}
.tl-lane {
  background-image: repeating-linear-gradient(to right, color-mix(in srgb, var(--ink) 7%, transparent) 0 1px, transparent 1px 160px);
}
.tl-clip {
  position: absolute;
  top: 6px;
  bottom: 6px;
  overflow: hidden;
  border-left-width: 4px;
  border-radius: 8px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.tl-clip:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.tl-clip:focus-visible, .tl-clip.is-active { outline: 2px solid var(--accent); outline-offset: 1px; }
.tl-clip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.tl-clip span { position: relative; }
.tl-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  pointer-events: none;
  z-index: 5;
}
.tl-playhead::before {
  content: "";
  position: absolute;
  top: 0;
  left: -5px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.rise { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes rise { from { transform: translateY(18px); } to { transform: none; } }
html.reduced-motion .rise { animation: none; }
html.reduced-motion .tl-clip { transition: none; }
