:root {
  color-scheme: dark;
  --bg: #101214;
  --panel: #17191c;
  --line: #2a2d31;
  --muted: #81868d;
  --text: #e8eaec;
  --accent: #d4ff62;
}
.exportDownload {
  display: block;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.exportDownload[hidden] {
  display: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    12px/1.5 Inter,
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: #222529;
  color: #dce0e3;
  border-radius: 6px;
  padding: 7px 10px;
  transition: background 0.15s;
}
button:hover {
  background: #32373b;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
input,
select,
textarea {
  border: 1px solid #33373c;
  border-radius: 5px;
  background: #202327;
  color: #e8eaec;
  padding: 7px;
  min-width: 0;
}
input[type="color"] {
  height: 30px;
  padding: 3px;
  width: 44px;
}
input[type="checkbox"] {
  accent-color: var(--accent);
}
input[type="range"] {
  accent-color: var(--accent);
  padding: 0;
}
header {
  height: 65px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 22px;
  gap: 45px;
}
.brand {
  font-size: 19px;
  color: white;
  text-decoration: none;
  letter-spacing: -0.7px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand {
  flex-shrink: 0;
}
.brandLogo {
  display: block;
  width: 154px;
  height: auto;
  max-height: 53px;
  object-fit: contain;
}
.crumb {
  color: #979ca3;
  display: flex;
  gap: 15px;
  font-size: 11px;
}
.crumb span {
  color: #4e555d;
}
.crumb b {
  color: #d5d9dc;
  font-weight: 500;
}
.headeractions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
#saveStatus {
  font-size: 10px;
  color: #8c9498;
  margin-right: 12px;
}
.primary {
  background: var(--accent);
  color: #19210d;
  border-color: var(--accent);
  font-weight: 700;
}
.primary:hover {
  background: #e0ff8c;
}
.app {
  display: grid;
  grid-template-columns: 68px 235px minmax(380px, 1fr) 310px;
  height: calc(100vh - 65px);
  min-height: 670px;
}
.rail {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 18px;
  gap: 18px;
}
.rail button {
  border: 0;
  background: none;
  font-size: 20px;
  color: #7c8389;
  width: 54px;
  padding: 5px;
}
.rail small {
  display: block;
  font-size: 9px;
  margin-top: 2px;
}
.rail button.active {
  color: var(--accent);
  background: #232a19;
  border-radius: 8px;
}
.railbottom {
  margin-top: auto;
  margin-bottom: 22px;
}
.railbottom span {
  display: block;
  border-radius: 50%;
  background: #334139;
  padding: 7px 13px;
  color: #d4ff62;
}
.assets {
  padding: 23px 17px;
  border-right: 1px solid var(--line);
  background: #15171a;
  overflow: auto;
  position: relative;
}
.sectiontitle {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tag {
  font-size: 9px;
  padding: 2px 5px;
  border: 1px solid #394033;
  border-radius: 4px;
  color: #bfd17e;
}
.muted,
.hint {
  color: var(--muted);
}
.muted {
  font-size: 11px;
}
.hint {
  font-size: 10px;
  margin-top: 7px;
}
.eyebrow {
  font-size: 9px;
  color: #959ba2;
  letter-spacing: 1px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  margin: 23px 0 10px;
}
.eyebrow span {
  letter-spacing: 0;
  font-weight: 400;
  color: #626a72;
}
.urlrow {
  display: flex;
  gap: 5px;
}
.urlrow input {
  width: 100%;
  font-size: 10px;
}
.assetDivider {
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.element {
  display: flex;
  width: 100%;
  gap: 10px;
  align-items: center;
  text-align: left;
  border-color: #455434;
  background: #22291c;
  padding: 11px;
}
.elementicon {
  font-family: Georgia, serif;
  font-size: 20px;
  color: #cbd6ba;
}
.element span:nth-child(2) {
  flex: 1;
}
.element b {
  display: block;
  font-size: 11px;
  font-weight: 500;
}
.element small {
  display: block;
  font-size: 9px;
  color: #8d9587;
  max-width: 140px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.sceneCard {
  margin-top: 18px;
}
.sceneThumb {
  height: 110px;
  background: linear-gradient(120deg, #17272d, #294552);
  padding: 16px;
  position: relative;
  border-radius: 5px;
  overflow: hidden;
}
.sceneThumb span {
  font-size: 6px;
  color: #acc0c8;
  letter-spacing: 1px;
  display: block;
}
.sceneThumb b {
  font-size: 22px;
  line-height: 1.1;
  display: block;
  margin-top: 10px;
  letter-spacing: -0.8px;
}
.sceneThumb i {
  position: absolute;
  right: 12px;
  bottom: 5px;
  color: #67818d;
  font-size: 32px;
  font-style: normal;
}
.sceneCard > div:last-child {
  padding-top: 9px;
}
.sceneCard > div:last-child b {
  display: block;
  font-size: 11px;
  font-weight: 500;
}
.sceneCard small {
  font-size: 9px;
  color: var(--muted);
}
.styleGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.styleCard {
  text-align: left;
  padding: 9px;
  background: #1c1f22;
  font-size: 10px;
}
.styleCard b {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  margin: 3px 0 6px;
  color: #cdd5cf;
}
.styleCard.active {
  border-color: #b2ce6c;
  background: #252c1e;
}
.wide {
  width: 100%;
  font-size: 11px;
}
.assetFoot {
  font-size: 9px;
  color: #787f82;
  margin-top: 24px;
}
.liveDot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #95b958;
  margin-right: 4px;
}
main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #101214;
}
.canvasToolbar {
  height: 55px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 22px;
  font-size: 10px;
}
.canvasToolbar b {
  font-weight: 500;
}
.formats {
  display: flex;
  gap: 9px;
  align-items: center;
}
.formats select {
  font-size: 10px;
  background: #191c1f;
}
.formats button {
  background: none;
  font-size: 17px;
  padding: 2px 7px;
}
.zoom {
  font-size: 10px;
  color: #949ca3;
}
.canvasArea {
  flex: 1;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 30px 16px;
  background: radial-gradient(ellipse, #1a1d21, #101214);
  overflow: hidden;
}
.canvasWrap {
  position: relative;
  width: 100%;
  max-height: 100%;
  aspect-ratio: 16/9;
  align-self: center;
  box-shadow: 0 18px 55px #0005;
}
canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: move;
}
.safeGuide {
  position: absolute;
  inset: 7%;
  border: 1px dashed #ffffff15;
  pointer-events: none;
}
.canvasCaption {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 1px;
  color: #656d75;
  margin-top: 15px;
}
.transport {
  height: 54px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  gap: 10px;
}
.selectionLabel {
  font-size: 12px;
  color: #adbb96;
  display: flex;
  gap: 8px;
  align-items: center;
}
.selectionLabel b {
  font-size: 10px;
  color: #bfc5c9;
  font-weight: 500;
}
.playback {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 10px monospace;
}
.playback button {
  border: 0;
  background: transparent;
}
.playback .playbutton {
  border-radius: 50%;
  background: var(--accent);
  color: #1c2709;
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 11px;
}
.transportRight {
  display: flex;
  gap: 5px;
  align-items: center;
  color: #888f96;
  font-size: 9px;
}
.transportRight select {
  padding: 3px;
  border: 0;
  background: none;
}
.transportRight input {
  width: 34px;
  padding: 3px;
}
.timeline {
  height: 220px;
  border-top: 1px solid var(--line);
  padding: 13px 18px;
  overflow: auto;
  background: #15171a;
}
.timelineTop {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 11px;
  margin-bottom: 12px;
}
.timelineTop .hint {
  margin: 0;
}
.timelineTop button {
  margin-left: auto;
  padding: 0 7px;
  background: none;
  border: 0;
}
#ruler {
  margin-left: 100px;
  display: flex;
  justify-content: space-between;
  color: #727c85;
  font-size: 9px;
}
#scrub {
  width: calc(100% - 100px);
  margin-left: 100px;
  height: 8px;
  display: block;
}
.track {
  display: flex;
  align-items: center;
  height: 27px;
  font-size: 9px;
  border-bottom: 1px solid #23262a;
}
.trackLabel {
  width: 100px;
  flex-shrink: 0;
  color: #a2abb2;
}
.trackLane {
  position: relative;
  flex: 1;
  height: 18px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(12.5% - 1px),
    #292d31 calc(12.5% - 1px),
    #292d31 12.5%
  );
}
.block {
  position: absolute;
  top: 2px;
  height: 14px;
  min-width: 3px;
  background: #536935;
  border: 1px solid #71844e;
  border-radius: 3px;
  color: #d9eab8;
  font-size: 8px;
  padding-left: 5px;
  overflow: hidden;
  white-space: nowrap;
  cursor: ew-resize;
  touch-action: none;
}
.block.highlight {
  background: #706334;
  border-color: #92834a;
}
.block.exit {
  background: #594668;
  border-color: #806292;
}
.playhead {
  position: absolute;
  top: 0;
  height: 100%;
  width: 1px;
  background: #d4ff62;
  pointer-events: none;
}
.inspector {
  background: #181a1d;
  border-left: 1px solid var(--line);
  overflow: auto;
}
.inspectorTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 17px 12px;
}
.inspectorTop > div {
  display: flex;
  gap: 10px;
  align-items: center;
}
.inspectorTop b {
  font-size: 12px;
  font-weight: 600;
}
.inspectorTop button {
  border: 0;
  background: none;
  color: #8e969d;
}
.mode {
  margin: 0 17px 16px;
  padding: 3px;
  display: flex;
  background: #101214;
  border: 1px solid #2b2e31;
  border-radius: 7px;
}
.mode button {
  width: 50%;
  border: 0;
  background: none;
  padding: 6px;
  color: #828b92;
  font-size: 11px;
}
.mode button.active {
  background: #30352b;
  color: #d4ff62;
}
.group {
  border-top: 1px solid var(--line);
  padding: 0 17px;
}
.group summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}
.group summary::after {
  content: "⌄";
  margin-left: auto;
  color: #7b848c;
}
.group summary .groupicon {
  color: #838d94;
  font-size: 12px;
}
.group > div {
  padding-bottom: 15px;
}
.field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: #9ba3aa;
  font-size: 10px;
}
.field input:not([type="checkbox"]):not([type="color"]),
.field select {
  width: 135px;
  font-size: 10px;
}
.field input[type="range"] {
  width: 120px;
}
.field input[type="number"] {
  padding: 5px;
}
.field .pair {
  display: flex;
  gap: 4px;
  width: 150px;
}
.field .pair input {
  width: 73px !important;
}
.field label {
  max-width: 110px;
}
textarea {
  width: 100%;
  height: 82px;
  resize: vertical;
  font-size: 12px;
  line-height: 1.6;
}
.textMeta {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #777f87;
  margin: 6px 0 12px;
}
.linkbutton {
  border: 0;
  padding: 0;
  background: none;
  color: #c1d691;
  font-size: 9px;
}
.layoutButtons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 13px;
}
.layoutButtons button {
  font-size: 9px;
  padding: 6px;
}
.layoutButtons button.active {
  border-color: #879d54;
  color: #d4ff62;
}
.effectGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.effectCard {
  padding: 7px 4px;
  font-size: 8px;
  background: #202327;
  overflow: hidden;
}
.effectCard .glyph {
  display: block;
  font-size: 19px;
  line-height: 30px;
  color: #a1ad92;
}
.effectCard.active {
  border-color: #a8bf70;
  background: #2a3021;
  color: #d4ff62;
}
.effectCard:hover .glyph {
  animation: rise 0.7s infinite;
}
@keyframes rise {
  from {
    transform: translateY(5px);
    opacity: 0.3;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.groupNote {
  font-size: 9px;
  color: #777f87;
  margin-bottom: 12px;
}
.reset {
  margin-top: 8px;
  border: 0;
  padding: 0;
  background: none;
  color: #919a82;
  font-size: 9px;
}
.highlightItem {
  border: 1px solid #3b4034;
  padding: 9px;
  border-radius: 5px;
  margin-top: 10px;
}
.highlightItem .field {
  margin-bottom: 7px;
}
.highlightHeader {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin-bottom: 9px;
}
.highlightHeader button {
  padding: 0 5px;
  font-size: 10px;
}
.subhead {
  color: #b9c1c6;
  font-size: 10px;
  margin: 15px 0 9px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #313a26;
  border: 1px solid #738448;
  padding: 10px 20px;
  border-radius: 7px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  max-width: 70vw;
}
#toast.show {
  opacity: 1;
}
dialog {
  background: #1c2023;
  border: 1px solid #414b39;
  border-radius: 12px;
  padding: 25px;
  width: 390px;
  color: #e4e8e1;
}
dialog::backdrop {
  background: #0009;
}
dialog h2 {
  font-size: 18px;
}
dialog p {
  color: #a1abb0;
  font-size: 12px;
}
dialog input,
dialog select {
  width: 100%;
  margin: 8px 0;
}
dialog button {
  margin-top: 12px;
}
.exportProgress {
  height: 5px;
  background: #333;
  margin: 15px 0;
}
.exportProgress div {
  height: 100%;
  background: var(--accent);
  width: 0;
}
#customPresets button {
  display: block;
  width: 100%;
  margin-top: 6px;
  text-align: left;
  font-size: 10px;
}
@media (min-width: 1600px) {
  .app {
    grid-template-columns: 72px 260px minmax(500px, 1fr) 340px;
  }
  .canvasArea {
    padding: 35px 55px;
  }
  .timeline {
    height: 245px;
  }
}
@media (max-width: 1100px) {
  .app {
    grid-template-columns: 55px 180px minmax(300px, 1fr) 280px;
  }
  .crumb {
    display: none;
  }
  .assets {
    padding: 17px 12px;
  }
  .canvasArea {
    padding: 15px;
  }
  .transport {
    padding: 0 10px;
  }
  .selectionLabel {
    display: none;
  }
  .canvasToolbar {
    padding: 0 12px;
  }
  .canvasToolbar .muted {
    display: none;
  }
}
@media (max-width: 850px) {
  .app {
    grid-template-columns: 50px minmax(270px, 1fr) 270px;
  }
  .assets {
    display: none;
  }
  .headeractions #saveStatus {
    display: none;
  }
  header {
    padding: 0 12px;
    gap: 10px;
  }
  .brand {
    font-size: 15px;
  }
  .headeractions {
    gap: 4px;
  }
  .headeractions button {
    font-size: 10px;
    padding: 6px;
  }
  .timelineTop .hint {
    display: none;
  }
}
@media (max-width: 620px) {
  .app {
    grid-template-columns: 1fr;
    height: auto;
  }
  .rail {
    display: none;
  }
  main {
    min-height: 560px;
  }
  .inspector {
    border-top: 1px solid var(--line);
  }
  header {
    height: 58px;
  }
  .canvasArea {
    min-height: 280px;
  }
  .headeractions #saveProject {
    display: none;
  }
  .canvasToolbar {
    height: 45px;
  }
}
main {
  min-height: 0;
}
.canvasArea {
  min-height: 200px;
}
@font-face {
  font-family: "Noto Sans Devanagari";
  src: url("/fonts/NotoSansDevanagari.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
textarea,
input {
  font-family: Arial, "Noto Sans Devanagari", sans-serif;
}

[hidden] {
  display: none !important;
}
