*,
:before,
::before,
:after,
::after {
  box-sizing: border-box;
}

* {
  border: 0;
  border-radius: 0;
  margin: 0;
  outline: 0;
  padding: 0;
}

a,
button,
canvas,
div,
h1,
input,
p,
span,
video {
  color: var(--color-font);
}

a,
body,
button,
canvas,
div,
h1,
html,
input,
p,
span,
video {
  -webkit-appearance: none;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-size: 100%;
  vertical-align: baseline;
}

html,
body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  background: var(--color-body-background);
  font-family: BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDGothic", meiryo, sans-serif;
  font-size: 0;
  line-height: 1;
  -webkit-text-size-adjust: 100%;
}

img,
svg {
  border: 0;
  stroke-width: 0;
}

button {
  cursor: pointer;
  background-color: transparent;
  font-family: inherit;
}

[hidden] {
  display: none;
}

::-webkit-scrollbar {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
:root {
  --color-font: #e7eaef;
  --color-font-dim: #78818e;
  --color-body-background: #13161b;
  --color-stage: #0d1014;
  --color-surface: #1a1e25;
  --color-surface-hover: #242a33;
  --color-panel-background: #1a1e25;
  --color-panel-header-background: #151a21;
  --color-input-background: rgba(255, 255, 255, 0.06);
  --color-input-hover: rgba(255, 255, 255, 0.12);
  --color-track: rgba(255, 255, 255, 0.06);
  --color-item-selected: rgba(255, 255, 255, 0.055);
  --color-accent: #e0a458;
  --color-accent-soft: rgba(224, 164, 88, 0.14);
  --color-accent-strong: rgba(224, 164, 88, 0.24);
  --color-veil: rgba(255, 255, 255, 0.03);
  --color-player-backdrop: rgba(9, 11, 14, 0.92);
  --color-clip-action: rgba(10, 12, 16, 0.72);
  --color-clip-action-hover: rgba(10, 12, 16, 0.94);
  --color-clip-shadow: rgba(0, 0, 0, 0.9);
}

.Logo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 28px;
}
.Logo a {
  color: var(--color-font);
  font-family: "Rubik Iso", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDGothic", meiryo, sans-serif;
  font-size: 22px;
  line-height: 2;
  text-decoration: none;
}

.PanelControl {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 56px;
  padding: 0 32px;
}
.PanelControl-Item {
  display: flex;
  align-items: center;
  font-size: 13px;
  line-height: 21px;
  color: var(--color-font-dim);
  cursor: pointer;
  user-select: none;
}
.PanelControl-Item[data-open] {
  color: var(--color-font);
}

.PanelColumn {
  position: absolute;
  left: 0;
  top: 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.PanelColumn .Panel {
  width: 232px;
}

.Panel {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: max-content;
  background: var(--color-panel-background);
  border-radius: 2px;
  overflow: hidden;
}
.Panel[data-panel]:not([data-open]) {
  display: none;
}
.Panel[data-float] {
  position: fixed;
}
.Panel[data-edge-left] {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.Panel[data-edge-right] {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.Panel[data-edge-top] {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.Panel[data-edge-bottom] {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.Panel-Header {
  flex-shrink: 0;
  width: 100%;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: grab;
  user-select: none;
}
.Panel-Header:active {
  cursor: grabbing;
}
.Panel-Title {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  background: var(--color-panel-header-background);
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-font);
}
.Panel-CloseIcon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-font-dim);
  cursor: pointer;
}
.Panel-CloseIcon svg {
  width: 8px;
  height: 8px;
  visibility: hidden;
}
.Panel-Header:hover .Panel-CloseIcon svg {
  visibility: visible;
}
.Panel-Main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 6px 0 12px;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
.Panel-Handle {
  position: absolute;
  z-index: 1;
}
.Panel-Handle[data-direction=n] {
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  cursor: ns-resize;
}
.Panel-Handle[data-direction=s] {
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  cursor: ns-resize;
}
.Panel-Handle[data-direction=e] {
  top: 0;
  right: 0;
  bottom: 0;
  width: 6px;
  cursor: ew-resize;
}
.Panel-Handle[data-direction=w] {
  top: 0;
  left: 0;
  bottom: 0;
  width: 6px;
  cursor: ew-resize;
}
.Panel-Handle[data-direction=ne] {
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  cursor: nesw-resize;
  z-index: 2;
}
.Panel-Handle[data-direction=nw] {
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  cursor: nwse-resize;
  z-index: 2;
}
.Panel-Handle[data-direction=se] {
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  cursor: nwse-resize;
  z-index: 2;
}
.Panel-Handle[data-direction=sw] {
  bottom: 0;
  left: 0;
  width: 12px;
  height: 12px;
  cursor: nesw-resize;
  z-index: 2;
}

.ChildPanel,
.GrandChildPanel {
  position: fixed;
  z-index: 20;
  display: none;
  width: 232px;
  padding: 10px 0;
  background: var(--color-panel-background);
  border-radius: 2px;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
.ChildPanel[data-open],
.GrandChildPanel[data-open] {
  display: block;
}

.HintPanel {
  width: 320px;
  max-height: calc(100vh - 56px);
}
.HintPanel .TextBlock {
  padding: 12px 16px 16px;
}
.HintPanel h1 {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-font);
}
.HintPanel p {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--color-font-dim);
}

.FieldGroup {
  display: flex;
  flex-direction: column;
  padding: 6px 0;
}

.FieldRow {
  display: grid;
  grid-template-columns: 1fr auto 28px;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
}
.FieldRow-Label {
  font-size: 11px;
  color: var(--color-font-dim);
  white-space: nowrap;
}
.FieldRow-Value {
  width: 84px;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  text-align: center;
  color: var(--color-font);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.FieldRow-Unit {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  color: var(--color-font-dim);
}

.ActionList {
  display: flex;
  flex-direction: column;
  padding: 6px 0 0;
}

.ActionItem {
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  font-size: 12px;
  color: var(--color-font-dim);
  cursor: pointer;
  user-select: none;
}
.ActionItem:hover {
  color: var(--color-font);
}
.ActionItem[data-selected] {
  background: var(--color-item-selected);
  color: var(--color-font);
}
.ActionItem[data-disabled] {
  opacity: 0.3;
  pointer-events: none;
}

.SegmentControl {
  display: flex;
  gap: 4px;
  width: 84px;
}
.SegmentControl-Item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  background: var(--color-track);
  border-radius: 2px;
  font-size: 11px;
  color: var(--color-font-dim);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.SegmentControl-Item[data-selected] {
  background: var(--color-accent-soft);
  color: var(--color-font);
}

.QualityList {
  display: flex;
  flex-direction: column;
}
.QualityList-Item {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  font-size: 12px;
  color: var(--color-font-dim);
  cursor: pointer;
  user-select: none;
}
.QualityList-Item:hover {
  color: var(--color-font);
}
.QualityList-Item[data-selected] {
  background: var(--color-item-selected);
  color: var(--color-font);
}

.TextBlock {
  padding: 8px 14px 4px;
}
.TextBlock p {
  font-size: 12px;
  line-height: 1.72;
  color: var(--color-font-dim);
}

.NumberInput {
  display: flex;
  align-items: center;
  width: 84px;
  height: 24px;
  background: var(--color-input-background);
  border-radius: 12px;
}
.NumberInput-Previous {
  flex: 0 0 auto;
  width: 22px;
  height: 24px;
  border-radius: 12px 0 0 12px;
  cursor: pointer;
}
.NumberInput-Previous:hover {
  background: var(--color-input-hover);
}
.NumberInput-Next {
  flex: 0 0 auto;
  width: 22px;
  height: 24px;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
}
.NumberInput-Next:hover {
  background: var(--color-input-hover);
}
.NumberInput-Input {
  flex: 1;
  min-width: 0;
  height: 24px;
  background: transparent;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  text-align: center;
  color: var(--color-font);
  font-variant-numeric: tabular-nums;
}
.NumberInput-Input:focus {
  outline: none;
}

.VideoCut-Stage {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 110px;
  overflow: hidden;
  background: var(--color-stage);
}
.VideoCut-Preview {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.VideoCut-Source {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.VideoCut[data-dragging] .VideoCut-Stage {
  box-shadow: inset 0 0 0 2000px var(--color-accent-soft);
}
.VideoCut[data-loaded] .OpenPrompt {
  display: none;
}

.OpenPrompt {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--color-font-dim);
  transition: color 0.15s, background 0.15s;
}
.OpenPrompt:hover, .OpenPrompt:focus-visible {
  background: var(--color-veil);
  color: var(--color-font);
}
.OpenPrompt-Icon {
  display: flex;
  width: 26px;
  height: 26px;
  opacity: 0.8;
}
.OpenPrompt-Icon svg {
  width: 100%;
  height: 100%;
}
.OpenPrompt-Label {
  font-size: 12px;
  letter-spacing: 0.04em;
}

.ClipPlayer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: var(--color-player-backdrop);
}
.ClipPlayer[data-open] {
  display: flex;
}
.ClipPlayer-Video {
  max-width: 100%;
  max-height: 100%;
  border-radius: 2px;
}
.ClipPlayer-Close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--color-font-dim);
  cursor: pointer;
}
.ClipPlayer-Close:hover {
  color: var(--color-font);
}
.ClipPlayer-Close svg {
  width: 16px;
  height: 16px;
}

.Timeline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  height: 110px;
  background: var(--color-body-background);
}
.Timeline-Strip {
  display: block;
  width: 100%;
  height: 74px;
  background: var(--color-surface);
  touch-action: none;
  cursor: ew-resize;
}
.Timeline-Bar {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 36px;
  padding: 0 8px;
}
.Timeline-Button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 2px;
  color: var(--color-font-dim);
  transition: background 0.13s, color 0.13s;
}
.Timeline-Button svg {
  width: 15px;
  height: 15px;
}
.Timeline-Button:hover {
  background: var(--color-surface-hover);
  color: var(--color-font);
}
.Timeline-Button:disabled {
  background: transparent;
  color: var(--color-font-dim);
  opacity: 0.3;
  cursor: default;
}
.Timeline-Time {
  display: flex;
  align-items: baseline;
  margin-left: auto;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.Timeline-Value {
  color: var(--color-font);
}
.Timeline-Separator {
  margin: 0 5px;
  color: var(--color-font-dim);
}
.Timeline-Time .Timeline-Value:last-child {
  color: var(--color-font-dim);
}

.ClipList {
  display: flex;
  flex-direction: column;
  width: 232px;
}
.ClipList-Empty {
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  font-size: 12px;
  color: var(--color-font-dim);
}

.ClipItem {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  cursor: pointer;
}
.ClipItem:hover {
  background: var(--color-item-selected);
}
.ClipItem-Thumbnail {
  flex: 0 0 auto;
  display: block;
  width: 56px;
  height: 32px;
  object-fit: cover;
  border-radius: 2px;
  opacity: 0.85;
}
.ClipItem:hover .ClipItem-Thumbnail {
  opacity: 1;
}
.ClipItem-Text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.ClipItem-Length {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.2;
  color: var(--color-font);
  font-variant-numeric: tabular-nums;
}
.ClipItem-Size {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 1.2;
  color: var(--color-font-dim);
}
.ClipItem-Action {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.ClipItem-Button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 2px;
  color: var(--color-font-dim);
  cursor: pointer;
}
.ClipItem-Button svg {
  width: 12px;
  height: 12px;
}
.ClipItem-Button:hover {
  background: var(--color-surface-hover);
  color: var(--color-font);
}

.VideoCut {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--color-body-background);
  color: var(--color-font);
  font-family: BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDGothic", meiryo, sans-serif;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}