:root{
  color-scheme:dark
}
*{
  box-sizing:border-box
}
body{
  margin:0;
  background:#09090b;
  color:#ececf0;
  font:13px system-ui,sans-serif
}
button,input,select,textarea{
  font:inherit
}
button,select{
  cursor:pointer
}
input,select,textarea{
  background:#202024;
  color:inherit;
  border:1px solid #39393f;
  border-radius:6px;
  padding:7px 10px
}
/* Buttons are liquid glass (/assets/css/liquid-glass.css); fields keep
   their solid look above. Content rows and the canvas handles opt out
   further down. */
button{
  background:var(--lg-fill);
  color:inherit;
  border:1px solid var(--lg-edge);
  border-radius:6px;
  padding:7px 10px;
  box-shadow:var(--lg-shadow);
  -webkit-backdrop-filter:var(--lg-blur);
  backdrop-filter:var(--lg-blur);
  transition:background-color .3s ease,border-color .3s ease,color .3s ease,box-shadow .3s ease,transform .45s var(--lg-spring)
}
button:hover{
  background-color:var(--lg-fill-hover);
  border-color:var(--lg-edge-hover)
}
button:active{
  background-color:var(--lg-fill-press);
  transform:var(--lg-press);
  transition-duration:.3s,.3s,.3s,.3s,.12s
}
button:disabled{
  opacity:.4;
  cursor:default;
  transform:none
}
input,textarea{
  width:100%
}
textarea{
  min-height:82px;
  resize:vertical
}
button.primary{
  background:color-mix(in srgb,#f5f5f8 var(--lg-tint),transparent);
  color:#111;
  border-color:rgba(255,255,255,.5);
  box-shadow:var(--lg-shadow-tint)
}
button.active{
  border-color:#b695ff;
  background:color-mix(in srgb,#352748 var(--lg-tint),transparent);
  box-shadow:var(--lg-shadow)
}
button:focus-visible,input:focus-visible,select:focus-visible{
  outline:2px solid #c3a7ff
}
h1{
  font-size:20px
}
h2{
  font-size:14px;
  margin:18px 0 9px
}
p{
  color:#aaaab7;
  line-height:1.6
}
.workspace{
  height:100dvh;
  display:grid;
  grid-template-columns:280px minmax(240px,1fr) 270px;
  grid-template-rows:56px minmax(230px,1fr) 320px
}
.topbar{
  grid-column:1/-1;
  display:flex;
  gap:10px;
  align-items:center;
  padding:9px 16px;
  border-bottom:1px solid #303036
}
.brand{
  font-weight:800;
  letter-spacing:-1px;
  font-size:21px;
  margin-right:8px
}
.project-name{
  width:180px;
  background:transparent;
  border-color:transparent
}
.save-status{
  color:#9494a3;
  margin-right:auto;
  font-size:11px
}
.left-panel,.inspector{
  padding:14px;
  overflow:auto;
  background:#111114
}
.left-panel{
  border-right:1px solid #303036
}
.inspector{
  border-left:1px solid #303036
}
.tabs{
  display:flex;
  flex-wrap:wrap;
  gap:5px
}
.tabs button{
  font-size:11px;
  padding:6px 8px;
  background:transparent;
  border-color:transparent;
  box-shadow:var(--lg-shadow-clear)
}
.tabs button:hover{
  background-color:var(--lg-fill-hover);
  border-color:var(--lg-edge-hover)
}
.tabs button.active{
  background-color:var(--lg-fill-hover);
  border-color:#b695ff;
  box-shadow:var(--lg-shadow-clear)
}
.panel-content{
  margin-top:14px
}
.row{
  display:flex;
  gap:6px;
  align-items:center;
  margin:8px 0
}
.row>*{
  min-width:0
}
.row>input{
  flex:1
}
.field{
  display:grid;
  grid-template-columns:100px 1fr 30px;
  align-items:center;
  gap:6px;
  margin:7px 0
}
.field label{
  color:#bbb;
  font-size:12px
}
.field input,.field select{
  width:100%;
  padding:5px
}
.field button{
  padding:5px
}
.section{
  border-top:1px solid #303036;
  margin-top:16px;
  padding-top:5px
}
.preview-area{
  display:flex;
  flex-direction:column;
  min-height:0;
  background:radial-gradient(ellipse at center,#202027,#0b0b0e)
}
.preview-stage{
  flex:1;
  min-height:0;
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px
}
.preview-stage canvas{
  max-width:100%;
  max-height:100%;
  box-shadow:0 8px 42px #0009;
  touch-action:none
}
.canvas-overlay{
  position:absolute;
  pointer-events:none;
  border:1px solid #b896ff
}
/* Canvas handles are not controls in the glass sense: solid, no squeeze. */
.canvas-overlay button{
  position:absolute;
  width:14px;
  height:14px;
  padding:0;
  background:#ded0ff;
  border:1px solid #333;
  box-shadow:none;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
  transform:none;
  transition:none;
  pointer-events:auto;
  touch-action:none
}
.canvas-overlay .scale-handle{
  right:-7px;
  bottom:-7px;
  cursor:nwse-resize
}
.canvas-overlay .rotate-handle{
  left:calc(50% - 7px);
  top:-27px;
  cursor:grab;
  border-radius:50%
}
.transport{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:10px;
  border-top:1px solid #29292f
}
.timecode{
  font-variant-numeric:tabular-nums;
  color:#bbb;
  min-width:135px
}
.timeline{
  grid-column:1/-1;
  display:flex;
  flex-direction:column;
  min-height:0;
  border-top:1px solid #35353d;
  background:#111114
}
.timeline-toolbar{
  display:flex;
  align-items:center;
  gap:7px;
  padding:8px 14px;
  border-bottom:1px solid #303036
}
.timeline-toolbar button{
  padding:5px 9px;
  font-size:12px
}
.timeline-scroll{
  overflow:auto;
  flex:1;
  position:relative
}
.timeline-content{
  position:relative;
  min-height:100%
}
.ruler{
  height:27px;
  background:#1a1a20;
  position:relative;
  margin-left:176px;
  cursor:crosshair
}
.ruler-tick{
  position:absolute;
  font-size:10px;
  color:#9696a3;
  border-left:1px solid #545460;
  padding-left:4px;
  top:5px
}
.track-row{
  height:52px;
  position:relative;
  border-bottom:1px solid #29292f
}
.track-label{
  position:sticky;
  left:0;
  z-index:4;
  width:176px;
  height:100%;
  background:#19191e;
  display:flex;
  align-items:center;
  gap:4px;
  padding:5px 7px;
  border-right:1px solid #393940
}
.track-label span{
  flex:1;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11px
}
.track-label button{
  font-size:10px;
  padding:3px;
  min-width:20px
}
.track-lane{
  position:absolute;
  left:176px;
  right:0;
  top:0;
  bottom:0;
  cursor:crosshair
}
.timeline-clip{
  position:absolute;
  height:42px;
  top:5px;
  border:1px solid #65577d;
  border-radius:5px;
  background:#3e3359;
  overflow:hidden;
  touch-action:none;
  cursor:grab
}
.timeline-clip.audio{
  background:#173d3b;
  border-color:#367a72
}
.timeline-clip.text{
  background:#58421e;
  border-color:#987340
}
.timeline-clip.selected{
  outline:2px solid #d5bbff;
  z-index:2
}
.clip-label{
  position:absolute;
  top:4px;
  left:9px;
  right:7px;
  font-size:10px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  pointer-events:none;
  z-index:1;
  text-shadow:0 1px 3px #000
}
.trim{
  position:absolute;
  top:0;
  bottom:0;
  width:6px;
  background:#ffffff25;
  cursor:ew-resize;
  z-index:2
}
.trim.end{
  right:0
}
.trim.start{
  left:0
}
.waveform{
  position:absolute;
  inset:17px 0 0;
  width:100%;
  height:23px;
  pointer-events:none
}
.playhead{
  position:absolute;
  top:0;
  bottom:0;
  width:1px;
  background:#fafafa;
  z-index:3;
  pointer-events:none
}
.playhead:before{
  content:'';
  position:absolute;
  top:0;
  left:-5px;
  border-top:9px solid #fff;
  border-left:5px solid transparent;
  border-right:5px solid transparent
}
.marker{
  position:absolute;
  top:0;
  bottom:0;
  width:1px;
  background:#ffb02066;
  pointer-events:none
}
.asset-card{
  width:100%;
  text-align:left;
  margin:5px 0;
  display:block;
  overflow:hidden;
  text-overflow:ellipsis
}
.asset-card small{
  display:block;
  color:#a5a5af
}
/* Content rows, not controls: asset and preset lists, saved projects and
   keyframe rows keep their solid look, with no glass and no squeeze. */
button.asset-card,button.project-card,.key-list button{
  background:#202024;
  border-color:#39393f;
  box-shadow:none;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
  transform:none;
  transition:none
}
button.asset-card:hover,button.project-card:hover,.key-list button:hover{
  background:#34343b;
  border-color:#39393f
}
.notice{
  position:fixed;
  bottom:20px;
  left:50%;
  transform:translateX(-50%);
  padding:12px 20px;
  max-width:650px;
  background:#302b3b;
  border:1px solid #766585;
  border-radius:9px;
  z-index:30
}
.start-screen{
  max-width:900px;
  margin:12vh auto;
  padding:30px
}
.project-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
  gap:12px
}
.project-card{
  text-align:left;
  padding:25px
}
.dialog-backdrop{
  position:fixed;
  inset:0;
  background:#000b;
  display:grid;
  place-items:center;
  z-index:20
}
.dialog-card{
  width:min(600px,92vw);
  max-height:85vh;
  overflow:auto;
  padding:24px;
  background:#19191f;
  border:1px solid #4e4e59;
  border-radius:12px
}
.progress{
  width:100%
}
.hint{
  font-size:11px;
  color:#999
}
.busy-status{
  font-size:12px;
  color:#c9b2ff;
  min-height:20px
}
.key-list{
  font-size:11px;
  color:#bfb4d0
}
.key-list button{
  font-size:10px;
  padding:3px
}
.mobile-note{
  display:none
}
@media(max-width:950px){
  .workspace{
  grid-template-columns:220px minmax(200px,1fr);
  grid-template-rows:56px minmax(220px,1fr) 300px
}
.inspector{
  grid-column:1;
  grid-row:2;
  display:none
}
.workspace.show-inspector .inspector{
  display:block
}
.workspace.show-inspector .left-panel{
  display:none
}
.topbar{
  gap:5px;
  padding:8px
}
.project-name{
  width:130px
}
.save-status{
  display:none
}

}
@media(max-width:600px){
  .workspace{
  grid-template-columns:145px minmax(160px,1fr)
}
.left-panel,.inspector{
  padding:8px
}
.topbar .brand{
  font-size:16px
}
.topbar select{
  max-width:70px
}
.topbar button{
  padding:5px
}
.project-name{
  width:90px
}
.field{
  grid-template-columns:60px 1fr 24px
}
.timeline-toolbar{
  overflow:auto;
  flex-shrink:0
}
.mobile-note{
  display:block;
  font-size:11px
}
.tabs button{
  font-size:10px;
  padding:4px
}
.preview-stage{
  padding:8px
}
.transport{
  gap:4px;
  padding:5px
}

}

