.order-head,.order-tools{display:flex;align-items:center;gap:6px}
.order-head{justify-content:space-between;border-bottom:2px solid #8296b3}
.scene .order-head h2{border:0;padding:0}
.order-open{font-size:.9rem;background:transparent;color:var(--blue);text-decoration:underline}
.order-tools{position:sticky;top:0;background:#f3f6fb;z-index:2;padding:4px 0;border-bottom:2px solid #8296b3}
.order-tools strong{flex:1}.order-tools button{font-size:.91rem;padding-inline:10px}
.order-list{background:white;border:1px solid var(--line);border-radius:10px}
.order-row{position:relative;display:flex;align-items:center;gap:2px;padding:3px 5px;min-height:56px;border-bottom:1px solid var(--line);background:#fff}.order-row:last-child{border-bottom:0}
.order-name{flex:1;min-width:0;color:var(--navy);font-weight:650;line-height:1.45}
.order-row button,.order-grip{width:44px;height:44px;flex:none}.order-row button:disabled{opacity:.35}
.order-grip{display:grid;place-items:center;cursor:grab;touch-action:none;user-select:none;color:#43546c;font-size:1.5rem}
.drag-source{opacity:.3}.order-ghost{position:fixed;z-index:10;pointer-events:none;border:2px solid var(--blue);border-radius:9px;box-shadow:0 5px 17px #14243e44;transform:translateX(3px)}
.insert-before:before,.insert-after:after{content:"";position:absolute;left:1px;right:1px;height:4px;background:var(--blue);z-index:1}.insert-before:before{top:-2px}.insert-after:after{bottom:-2px}
.order-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.order-head[hidden],.items[hidden]{display:none}

.photo-editor{padding:8px 0;border-top:1px solid var(--line);margin-top:8px}
.photo-editor summary{cursor:pointer;color:var(--blue);font-weight:650;padding:10px 0;min-height:44px}
.photo-editor label{display:block;margin-top:10px}.photo-editor button{margin-top:8px}
.photo-editor .edit-preview{width:auto;max-width:100%;max-height:150px}
.photo-editor .edit-preview[hidden]{display:none}figure:has(.photo) figcaption{margin:0 0 8px;color:var(--ink)}

.step-note{margin:3px 0 0;padding-inline-start:.8em;color:#35445a;font-size:1rem;line-height:1.5;overflow-wrap:anywhere;white-space:pre-line}
.step-editor h3{margin:0 0 .5rem;font-size:1rem}
.step-card{border-top:1px solid var(--line);padding:8px 0;min-width:0}
.step-card label{display:block;font-weight:650}.step-card textarea{width:100%;font:inherit;resize:vertical}
.step-card .step-action,.step-menu button{background:transparent;color:var(--blue);min-height:44px;padding:4px 8px}
.step-menu summary{display:inline-flex;align-items:center;min-height:44px;color:var(--blue);cursor:pointer}
.step-note-edit{padding-inline-start:.75rem}
.step-card [hidden]{display:none}

.move-feedback{display:block;margin-block:4px;font-size:.875rem;font-weight:500;line-height:1.45;color:var(--navy);white-space:normal}

.order-tools:has(.order-error){flex-wrap:wrap}.order-error{flex-basis:100%;font-size:.9rem;line-height:1.4;color:var(--navy);padding:2px 4px}
