@font-face {
  font-family: Inter;
  src: url('/assets/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('/assets/inter-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  color-scheme: dark;
  font-family: Inter, Arial, sans-serif;
  --bg: #17191a;
  --panel: #212324;
  --line: #383a3b;
  --muted: #a6a7a7;
  --subtle: #888c8e;
  --ink: #f0f0ed;
  --accent: #ff985b;
  --mono: ui-monospace, Consolas, monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}
button,
select {
  font: inherit;
}
button {
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
button:focus-visible,
select:focus-visible,
canvas:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
button {
  transition:
    background-color 0.14s,
    color 0.14s,
    border-color 0.14s;
}
button:not(:disabled):active {
  filter: brightness(0.9);
}
button svg,
h2 svg,
label svg,
.scene-view svg,
.drag-tip svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.app-header {
  background: #1d1f20;
  border-bottom: 1px solid #343637;
}
.header-inner,
.workspace {
  width: min(100%, 1660px);
  margin: auto;
  padding-inline: clamp(20px, 3.1vw, 54px);
}
.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand,
.nav-actions,
.primary-button,
.shortcut-button,
.panel-header h2,
.timeline-title h2,
.setting-row label,
.scene-view,
.drag-tip {
  display: flex;
  align-items: center;
}
.brand {
  gap: 10px;
  font-size: 24px;
  font-weight: 710;
  letter-spacing: -1.25px;
}
.brand img {
  width: 29px;
  height: 32px;
}
.brand-light {
  font-weight: 400;
  color: #c5c5c1;
}
.nav-actions {
  gap: 16px;
}
.shortcut-button,
.primary-button {
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
}
.shortcut-button {
  color: #c4c6c5;
  padding: 9px 4px;
}
.shortcut-button:hover {
  color: white;
}
.game-link {
  text-decoration: none;
}
.nav-divider,
.tool-divider {
  height: 21px;
  width: 1px;
  background: var(--line);
}
.primary-button {
  background: var(--accent);
  color: #271a12;
  padding: 11px 16px;
  border: 1px solid #ffad78;
  border-radius: 7px;
}
.primary-button:hover {
  background: #ffab75;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 30px;
  border-radius: 5px;
  color: #b8bcbb;
  padding: 5px;
}
.icon-button:hover,
.icon-button.active {
  background: #393c3c;
  color: #f0f0ed;
}
.icon-button svg {
  width: 16px;
  height: 16px;
}
.mono,
.count,
.section-label,
.eyebrow,
.scene-tag {
  font-family: var(--mono);
}
.panel {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 51px;
  padding: 0 17px;
  border-bottom: 1px solid var(--line);
}
.panel-header h2,
.timeline-title h2 {
  gap: 9px;
  font-size: 15px;
  letter-spacing: -0.4px;
  font-weight: 620;
}
.panel-header h2 svg,
.timeline-title h2 svg {
  color: #b7bab9;
  width: 17px;
  height: 17px;
}
.count {
  font-size: 12px;
  border: 1px solid #434647;
  background: #2c2f30;
  color: #bcbfbd;
  border-radius: 4px;
  padding: 2px 5px;
}
.section-label,
.eyebrow,
.scene-tag {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 1.55px;
  text-transform: uppercase;
}
.section-label {
  color: #a5a7a5;
}
.status-light {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9bb792;
  box-shadow: 0 0 6px #a0bd7e18;
}
dialog {
  width: min(420px, 92vw);
  color: var(--ink);
  background: #232526;
  border: 1px solid #515452;
  border-radius: 12px;
  padding: 23px;
  box-shadow: 0 18px 72px #0007;
}
dialog::backdrop {
  background: #101313a6;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.dialog-heading h2 {
  font-size: 20px;
}
#dialog-body p {
  line-height: 1.6;
  font-size: 14px;
  color: #bfc1bf;
  margin: 0 0 20px;
}
#dialog-body dl div {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
kbd {
  font: 12px var(--mono);
  color: #f4d5bc;
  border: 1px solid #555451;
  border-radius: 4px;
  padding: 3px 6px;
  background: #313231;
}
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  padding: 13px 18px;
  background: #343735;
  border: 1px solid #66695f;
  border-radius: 8px;
  font-size: 14px;
  z-index: 4;
  box-shadow: 0 6px 18px #0004;
}
.export-confirm {
  margin-top: 18px;
}
@media (max-width: 580px) {
  .header-inner {
    min-height: 59px;
  }
  .brand {
    font-size: 21px;
  }
  .brand img {
    width: 25px;
  }
  .nav-actions {
    gap: 8px;
  }
  .nav-divider,
  .shortcut-button span {
    display: none;
  }
  .primary-button {
    padding: 9px 10px;
    font-size: 12px;
  }
  .primary-button svg {
    width: 15px;
  }
}
